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) int
getOrder()
Defines the order of mapping strategy.getPropertyValueExtractor
(MetaPropertyPath propertyPath) ProvidesPropertyValueExtractor
to extract property value from entity instancesboolean
isSupported
(MetaPropertyPath propertyPath) Checks is providedMetaPropertyPath
is 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 latest order will be used- Returns:
- order
-
isSupported
Checks is providedMetaPropertyPath
is supported by this mapping strategy- Parameters:
propertyPath
- property to check- Returns:
- true if provided
MetaPropertyPath
is 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
ProvidesPropertyValueExtractor
to extract property value from entity instances- Parameters:
propertyPath
- property- Returns:
PropertyValueExtractor
-