Interface FieldMappingStrategy
- All Known Implementing Classes:
AutoMappingStrategy
public interface FieldMappingStrategy
Base interface for mapping strategy.
Mapping strategy defines the way of transformation of property metadata and content into index mapping and value.
-
Method Summary
Modifier and TypeMethodDescriptioncreateFieldConfiguration(MetaPropertyPath propertyPath, Map<String, Object> parameters) Creates field configuration as native json.createFieldConfiguration(MetaPropertyPath propertyPath, Map<String, Object> parameters, ExtendedSearchSettings extendedSearchSettings) intgetOrder()Defines the order of mapping strategy.getPropertyValueExtractor(MetaPropertyPath propertyPath) ProvidesPropertyValueExtractorto extract property value from entity instancesbooleanisSupported(MetaPropertyPath propertyPath) Checks is providedMetaPropertyPathis supported by this mapping strategy
-
Method Details
-
getOrder
int getOrder()Defines the order of mapping strategy. If several strategies match the same property strategy with the highest order value will be used This order also is used for setting theMappingFieldDescriptor.setOrder(int)but can be overridden with theAttributesGroupConfiguration.getOrder()- Returns:
- order
-
isSupported
Checks is providedMetaPropertyPathis supported by this mapping strategy- Parameters:
propertyPath- property to check- Returns:
- true if provided
MetaPropertyPathis supported, false otherwise
-
createFieldConfiguration
FieldConfiguration createFieldConfiguration(MetaPropertyPath propertyPath, Map<String, Object> parameters) Creates field configuration as native json.- Parameters:
propertyPath- property to generate configuration forparameters- input parameters- Returns:
FieldConfiguration
-
createFieldConfiguration
FieldConfiguration createFieldConfiguration(MetaPropertyPath propertyPath, Map<String, Object> parameters, ExtendedSearchSettings extendedSearchSettings) -
getPropertyValueExtractor
ProvidesPropertyValueExtractorto extract property value from entity instances- Parameters:
propertyPath- property- Returns:
PropertyValueExtractor
-