Class AbstractAttributesGroupConfiguration
- All Implemented Interfaces:
AttributesGroupConfiguration
- Direct Known Subclasses:
DynamicAttributesGroupConfiguration,StaticAttributesGroupConfiguration
Provides common functionality and properties for configuring attribute mappings and value extraction. Enables specifying the field mapping strategy and related configurations used to index properties.
Subclasses should provide specific implementations or extensions as required for dynamic or static attribute configurations.
Implements AttributesGroupConfiguration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FieldConfigurationprotected final FieldMappingStrategyprotected final Class<? extends FieldMappingStrategy>protected final Integerprotected final PropertyValueExtractor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractAttributesGroupConfiguration(Class<? extends FieldMappingStrategy> fieldMappingStrategyClass, FieldMappingStrategy fieldMappingStrategy, FieldConfiguration fieldConfiguration, PropertyValueExtractor propertyValueExtractor, Map<String, Object> parameters, Integer order) -
Method Summary
Modifier and TypeMethodDescriptionProvides 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.getOrder()Provides explicit order.Provides additional parameters related to this element.Provides explicit property value extractor.
-
Field Details
-
fieldMappingStrategyClass
-
fieldMappingStrategy
-
fieldConfiguration
-
propertyValueExtractor
-
parameters
-
order
-
-
Constructor Details
-
AbstractAttributesGroupConfiguration
protected AbstractAttributesGroupConfiguration(Class<? extends FieldMappingStrategy> fieldMappingStrategyClass, FieldMappingStrategy fieldMappingStrategy, FieldConfiguration fieldConfiguration, PropertyValueExtractor propertyValueExtractor, Map<String, Object> parameters, Integer order)
-
-
Method Details
-
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())- Specified by:
getFieldMappingStrategyClassin interfaceAttributesGroupConfiguration- 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.- Specified by:
getFieldMappingStrategyin interfaceAttributesGroupConfiguration- 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.
- Specified by:
getFieldConfigurationin interfaceAttributesGroupConfiguration- 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.
- Specified by:
getPropertyValueExtractorin interfaceAttributesGroupConfiguration- Returns:
- property value extractor
-
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).- Specified by:
getParametersin interfaceAttributesGroupConfiguration- Returns:
- Map with parameters
-
getOrder
Provides explicit order.- Specified by:
getOrderin interfaceAttributesGroupConfiguration- Returns:
- order
-