public class CustomIndexMapping extends AbstractIndexMapping
Modifier and Type | Field and Description |
---|---|
protected CustomIndexConfiguration |
customIndexConfiguration |
protected List<IndexMappingVariableExtractor> |
extractors |
protected String |
indexMappingJson |
protected com.fasterxml.jackson.databind.JsonNode |
metaData |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
mappingFilter
Constructor and Description |
---|
CustomIndexMapping(CustomIndexConfiguration customIndexConfiguration,
String indexMappingJson,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
getMappingFilter, setMappingFilter
protected CustomIndexConfiguration customIndexConfiguration
protected String indexMappingJson
protected com.fasterxml.jackson.databind.JsonNode metaData
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected List<IndexMappingVariableExtractor> extractors
public CustomIndexMapping(CustomIndexConfiguration customIndexConfiguration, String indexMappingJson, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected MappingFilter createMappingFilter(CustomIndexConfiguration customIndexConfiguration)
public String getIndexMappingName()
public void addExtractor(IndexMappingVariableExtractor extractor)
public void addExtractors(List<? extends IndexMappingVariableExtractor> extractors)
public List<IndexMappingVariableExtractor> getExtractors()
public void setExtractors(List<IndexMappingVariableExtractor> extractors)
public com.fasterxml.jackson.databind.JsonNode getMetaData()
public void setMetaData(com.fasterxml.jackson.databind.JsonNode metaData)
public CustomIndexConfiguration getCustomIndexConfiguration()
public String getIndexMapping()
public boolean isCustomAlias()
public String getCustomIndexName()
public boolean hasExtractors()
public boolean isApplicable(com.fasterxml.jackson.databind.node.ObjectNode objectNode)
public boolean isApplicable(String mappingType)
public IndexedDataObject createIndexedDataObject(com.fasterxml.jackson.databind.node.ObjectNode objectNode)
public IndexedDataObject createIndexedDataObject(com.fasterxml.jackson.databind.node.ObjectNode objectNode, String idFieldName)