Class MappingDefinitionElement
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final String[]protected final FieldConfigurationprotected final FieldMappingStrategyprotected final Class<? extends FieldMappingStrategy>protected final String[]protected final Integerprotected final PropertyValueExtractor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbuilder()String[]Provides full names of properties that should NOT be indexed.Provides explicit configuration for indexed fields.ProvidesFieldMappingStrategyinstance that should be used to map properties.Class<? extends FieldMappingStrategy>ProvidesFieldMappingStrategyimplementation 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
ProvidesFieldMappingStrategyimplementation 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:
FieldMappingStrategyimplementation class
-
getFieldMappingStrategy
ProvidesFieldMappingStrategyinstance 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:
FieldMappingStrategyinstance
-
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
FieldMapperduring mapping generation withinFieldMappingStrategy(e.g. analyzer) or byPropertyValueExtractorat runtime (e.g. enable\disable indexing file content).- Returns:
- Map with parameters
-
builder
-