Class MappingDefinitionElement
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String[]
protected final FieldConfiguration
protected final FieldMappingStrategy
protected final Class<? extends FieldMappingStrategy>
protected final String[]
protected final Integer
protected final PropertyValueExtractor
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
String[]
Provides full names of properties that should NOT be indexed.Provides explicit configuration for indexed fields.ProvidesFieldMappingStrategy
instance that should be used to map properties.Class<? extends FieldMappingStrategy>
ProvidesFieldMappingStrategy
implementation class that should be used to map properties.String[]
Provides full names of properties that should be indexed.getOrder()
Provides explicit order.Provides additional parameters related to this element.Provides explicit property value extractor.
-
Field Details
-
includedProperties
-
excludedProperties
-
fieldMappingStrategyClass
-
fieldMappingStrategy
-
fieldConfiguration
-
propertyValueExtractor
-
order
-
parameters
-
-
Constructor Details
-
MappingDefinitionElement
protected MappingDefinitionElement(MappingDefinitionElement.MappingDefinitionElementBuilder builder)
-
-
Method Details
-
getIncludedProperties
Provides full names of properties that should be indexed.- Returns:
- property names
-
getExcludedProperties
Provides full names of properties that should NOT be indexed.- Returns:
- property names
-
getFieldMappingStrategyClass
ProvidesFieldMappingStrategy
implementation class that should be used to map properties.Can be null if strategy is defined as instance (see
getFieldMappingStrategy()
) or configuration is specified explicitly (seegetFieldConfiguration()
)- Returns:
FieldMappingStrategy
implementation class
-
getFieldMappingStrategy
ProvidesFieldMappingStrategy
instance that should be used to map properties.Can be null if strategy is defined as class (see
getFieldMappingStrategyClass()
) or configuration is specified explicitly (seegetFieldConfiguration()
)getFieldMappingStrategyClass()
is ignored if this instance is set.- Returns:
FieldMappingStrategy
instance
-
getFieldConfiguration
Provides explicit configuration for indexed fields.Can be null if strategy is defined as class (see
getFieldMappingStrategyClass()
) or instance (seegetFieldMappingStrategy()
).If strategy (as class or instance) and explicit configuration are both set then explicit configuration will override matching parameters of configuration generated by strategy.
- Returns:
- field configuration
-
getPropertyValueExtractor
Provides explicit property value extractor.Can be null if strategy is defined as class (see
getFieldMappingStrategyClass()
) or instance (seegetFieldMappingStrategy()
).Property value extractor got from strategy will be ignored if explicit one is set.
- Returns:
- property value extractor
-
getOrder
Provides explicit order.- Returns:
- order
-
getParameters
Provides additional parameters related to this element.Parameters are used by
FieldMapper
during mapping generation withinFieldMappingStrategy
(e.g. analyzer) or byPropertyValueExtractor
at runtime (e.g. enable\disable indexing file content).- Returns:
- Map with parameters
-
builder
-