@Value.Immutable(copy=false)
public abstract class ElasticDocConfig
extends java.lang.Object
| Constructor and Description |
|---|
ElasticDocConfig() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<Field> |
getFieldsTargetedBy(JsonSelector sourcePath) |
java.util.Set<java.lang.String> |
getIdentityFields()
Returns a list of field names that are mapped to identical source paths.
|
abstract Mapping |
getMapping() |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper()
Returns the
ObjectMapper used for parsing JSON documents. |
java.util.List<ElasticDocBuilderPlugin> |
getPlugins()
Returns a list of plugins configured for this mapping.
|
java.util.Set<JsonSelector> |
getSourcePaths() |
protected com.google.common.collect.Multimap<JsonSelector,Field> |
getSourcePathsMapping()
Returns a list of source paths and the
Fields to which it is indexed. |
com.google.common.collect.Multimap<java.lang.String,JsonSelector> |
getTargets()
Returns a list of source paths that should be mapped to each Elastic field.
|
ValueProducer |
getValueProducer() |
boolean |
isCompact() |
protected ElasticDocConfig |
normalizeTargets() |
public java.util.Collection<Field> getFieldsTargetedBy(JsonSelector sourcePath)
@Value.Default public java.util.Set<java.lang.String> getIdentityFields()
@Value.Auxiliary public abstract Mapping getMapping()
@Value.Default @Value.Auxiliary public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
ObjectMapper used for parsing JSON documents.ObjectMapper used for parsing JSON documents.@Value.Default @Value.Auxiliary public java.util.List<ElasticDocBuilderPlugin> getPlugins()
@Value.Derived public java.util.Set<JsonSelector> getSourcePaths()
@Value.Default public com.google.common.collect.Multimap<java.lang.String,JsonSelector> getTargets()
@Value.Default @Value.Auxiliary public ValueProducer getValueProducer()
@Value.Default @Value.Auxiliary public boolean isCompact()
@Value.Lazy protected com.google.common.collect.Multimap<JsonSelector,Field> getSourcePathsMapping()
Fields to which it is indexed.Fields to which it is indexed.@Value.Check protected ElasticDocConfig normalizeTargets()