Class FieldMappingConfig
java.lang.Object
com.lucidworks.apollo.pipeline.StageConfig
com.lucidworks.apollo.pipeline.index.config.transform.FieldMappingConfig
- All Implemented Interfaces:
com.lucidworks.apollo.common.JsonConfig,com.lucidworks.apollo.common.WithAdditionalProperties
-
Nested Class Summary
Nested classes/interfaces inherited from class com.lucidworks.apollo.pipeline.StageConfig
StageConfig.Category -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFieldMappingConfig(String id, List<FieldMappingRule> mappings, FieldMappingRule unmapped) FieldMappingConfig(String id, List<FieldMappingRule> mappings, FieldMappingRule unmapped, Boolean reservedFieldsMappingAllowed) FieldMappingConfig(String id, List<FieldMappingRule> mappings, FieldMappingRule unmapped, List<FieldTranslationMapping> translationMappings, List<FieldRetentionMapping> retentionMappings, List<FieldUpdateValueMapping> updateMappings, UnmappedFieldMappingRule unmappedRule, Boolean reservedFieldsMappingAllowed) This constructor handles both the older style of mapping fields when all operations were dealt with using the same list ofFieldMappingRules (mappings) as well as the unmapped fields (unmapped). -
Method Summary
Modifier and TypeMethodDescriptionvoidsetMappings(List<FieldMappingRule> mappings) voidsetUnmapped(FieldMappingRule unmapped) Methods inherited from class com.lucidworks.apollo.pipeline.StageConfig
equals, getAdditionalProperties, getCondition, getId, getLabel, getType, hashCode, isSkip, newId, setAdditionalProperty, setCondition, setLabel, setSkip
-
Field Details
-
TYPE
- See Also:
-
CONFIG_ID
- See Also:
-
FIELD_MAPPINGS
- See Also:
-
UNMAPPED_FIELD_MAPPING
- See Also:
-
FIELD_RETENTION_MAPPINGS
- See Also:
-
FIELD_TRANSLATION_MAPPINGS
- See Also:
-
FIELD_UPDATE_MAPPINGS
- See Also:
-
UNMAPPED_FIELD_RULE
- See Also:
-
RESERVED_FIELDS_MAPPING_ALLOWED_FLAG
- See Also:
-
-
Constructor Details
-
FieldMappingConfig
-
FieldMappingConfig
public FieldMappingConfig(String id, List<FieldMappingRule> mappings, FieldMappingRule unmapped, Boolean reservedFieldsMappingAllowed) -
FieldMappingConfig
public FieldMappingConfig(String id, List<FieldMappingRule> mappings, FieldMappingRule unmapped, List<FieldTranslationMapping> translationMappings, List<FieldRetentionMapping> retentionMappings, List<FieldUpdateValueMapping> updateMappings, UnmappedFieldMappingRule unmappedRule, Boolean reservedFieldsMappingAllowed) This constructor handles both the older style of mapping fields when all operations were dealt with using the same list ofFieldMappingRules (mappings) as well as the unmapped fields (unmapped). These will continue to be used internally alongside the newer style of mappings (translationMappings, retentionMappings, updateMappings, unmappedRule) before the older style is removed at some later date.- Parameters:
id- the configuration IDmappings- mappings used previously to cover all operationsunmapped- mapping used previously to cover unmapped fieldstranslationMappings- mappings for move and copy operationsretentionMappings- mappings for keep and delete operationsupdateMappings- mappings for set and add operationsunmappedRule- mapping for any unmapped fieldsreservedFieldsMappingAllowed- whether to allow mapping on reserved fields
-
-
Method Details
-
getMappings
-
setMappings
-
getUnmapped
-
setUnmapped
-
getRetentionMappings
-
getUpdateMappings
-
getTranslationMappings
-
getUnmappedRule
-
isReservedFieldsMappingAllowed
-