public class ObjectMapper extends Object implements Mapper, AllFieldMapper.IncludeInAll
Modifier and Type | Class and Description |
---|---|
static class |
ObjectMapper.Builder<T extends ObjectMapper.Builder,Y extends ObjectMapper> |
static class |
ObjectMapper.Defaults |
static class |
ObjectMapper.Dynamic |
static class |
ObjectMapper.Nested |
static class |
ObjectMapper.TypeParser |
Mapper.BuilderContext
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE |
static String |
NESTED_CONTENT_TYPE |
EMPTY_ARRAY
EMPTY_PARAMS
public static final String CONTENT_TYPE
public static final String NESTED_CONTENT_TYPE
public void includeInAll(Boolean includeInAll)
includeInAll
in interface AllFieldMapper.IncludeInAll
public void includeInAllIfNotSet(Boolean includeInAll)
includeInAllIfNotSet
in interface AllFieldMapper.IncludeInAll
public void unsetIncludeInAll()
unsetIncludeInAll
in interface AllFieldMapper.IncludeInAll
public ObjectMapper.Nested nested()
public org.apache.lucene.search.Filter nestedTypeFilter()
public ObjectMapper putMapper(Mapper mapper)
public void traverse(FieldMapperListener fieldMapperListener)
public void traverse(ObjectMapperListener objectMapperListener)
public String fullPath()
public String nestedTypePathAsString()
public final ObjectMapper.Dynamic dynamic()
protected boolean allowValue()
public void parse(ParseContext context) throws IOException
parse
in interface Mapper
IOException
public void parseDynamicValue(ParseContext context, String currentFieldName, XContentParser.Token token) throws IOException
IOException
public void merge(Mapper mergeWith, MergeContext mergeContext) throws MergeMappingException
merge
in interface Mapper
MergeMappingException
protected void doMerge(ObjectMapper mergeWith, MergeContext mergeContext)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public void toXContent(XContentBuilder builder, ToXContent.Params params, ToXContent custom, Mapper... additionalMappers) throws IOException
IOException
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOException
Copyright © 2009–2015. All rights reserved.