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 Elasticsearch-native json.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 latest order will be used- 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 Elasticsearch-native json.- Parameters:
 propertyPath- property to generate configuration forparameters- input parameters- Returns:
 FieldConfiguration
 - 
getPropertyValueExtractor
ProvidesPropertyValueExtractorto extract property value from entity instances- Parameters:
 propertyPath- property- Returns:
 PropertyValueExtractor
 
 -