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.BuilderContextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE |
static String |
NESTED_CONTENT_TYPE |
EMPTY_ARRAYEMPTY_PARAMSpublic static final String CONTENT_TYPE
public static final String NESTED_CONTENT_TYPE
public void includeInAll(Boolean includeInAll)
includeInAll in interface AllFieldMapper.IncludeInAllpublic void includeInAllIfNotSet(Boolean includeInAll)
includeInAllIfNotSet in interface AllFieldMapper.IncludeInAllpublic void unsetIncludeInAll()
unsetIncludeInAll in interface AllFieldMapper.IncludeInAllpublic 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 MapperIOExceptionpublic void parseDynamicValue(ParseContext context, String currentFieldName, XContentParser.Token token) throws IOException
IOExceptionpublic void merge(Mapper mergeWith, MergeContext mergeContext) throws MergeMappingException
merge in interface MapperMergeMappingExceptionprotected void doMerge(ObjectMapper mergeWith, MergeContext mergeContext)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic void toXContent(XContentBuilder builder, ToXContent.Params params, ToXContent custom, Mapper... additionalMappers) throws IOException
IOExceptionprotected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionCopyright © 2009–2016. All rights reserved.