org.elasticsearch.index.mapper.object
Class ObjectMapper

java.lang.Object
  extended by org.elasticsearch.index.mapper.object.ObjectMapper
All Implemented Interfaces:
ToXContent, AllFieldMapper.IncludeInAll, Mapper
Direct Known Subclasses:
RootObjectMapper

public class ObjectMapper
extends Object
implements Mapper, AllFieldMapper.IncludeInAll


Nested Class Summary
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
           
 
Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.Mapper
Mapper.BuilderContext
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
static String CONTENT_TYPE
           
static String NESTED_CONTENT_TYPE
           
 
Fields inherited from interface org.elasticsearch.index.mapper.Mapper
EMPTY_ARRAY
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Method Summary
protected  boolean allowValue()
           
 void close()
           
protected  void doMerge(ObjectMapper mergeWith, MergeContext mergeContext)
           
protected  void doXContent(XContentBuilder builder, ToXContent.Params params)
           
 ObjectMapper.Dynamic dynamic()
           
 String fullPath()
           
 void includeInAll(Boolean includeInAll)
           
 void includeInAllIfNotSet(Boolean includeInAll)
           
 void merge(Mapper mergeWith, MergeContext mergeContext)
           
 String name()
           
 ObjectMapper.Nested nested()
           
 org.apache.lucene.search.Filter nestedTypeFilter()
           
 String nestedTypePath()
           
 void parse(ParseContext context)
           
 ObjectMapper putMapper(Mapper mapper)
           
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 void toXContent(XContentBuilder builder, ToXContent.Params params, ToXContent custom, Mapper... additionalMappers)
           
 void traverse(FieldMapperListener fieldMapperListener)
           
 void traverse(ObjectMapperListener objectMapperListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_TYPE

public static final String CONTENT_TYPE
See Also:
Constant Field Values

NESTED_CONTENT_TYPE

public static final String NESTED_CONTENT_TYPE
See Also:
Constant Field Values
Method Detail

name

public String name()
Specified by:
name in interface Mapper

includeInAll

public void includeInAll(Boolean includeInAll)
Specified by:
includeInAll in interface AllFieldMapper.IncludeInAll

includeInAllIfNotSet

public void includeInAllIfNotSet(Boolean includeInAll)
Specified by:
includeInAllIfNotSet in interface AllFieldMapper.IncludeInAll

nested

public ObjectMapper.Nested nested()

nestedTypeFilter

public org.apache.lucene.search.Filter nestedTypeFilter()

putMapper

public ObjectMapper putMapper(Mapper mapper)

traverse

public void traverse(FieldMapperListener fieldMapperListener)
Specified by:
traverse in interface Mapper

traverse

public void traverse(ObjectMapperListener objectMapperListener)
Specified by:
traverse in interface Mapper

fullPath

public String fullPath()

nestedTypePath

public String nestedTypePath()

dynamic

public final ObjectMapper.Dynamic dynamic()

allowValue

protected boolean allowValue()

parse

public void parse(ParseContext context)
           throws IOException
Specified by:
parse in interface Mapper
Throws:
IOException

merge

public void merge(Mapper mergeWith,
                  MergeContext mergeContext)
           throws MergeMappingException
Specified by:
merge in interface Mapper
Throws:
MergeMappingException

doMerge

protected void doMerge(ObjectMapper mergeWith,
                       MergeContext mergeContext)

close

public void close()
Specified by:
close in interface Mapper

toXContent

public XContentBuilder toXContent(XContentBuilder builder,
                                  ToXContent.Params params)
                           throws IOException
Specified by:
toXContent in interface ToXContent
Throws:
IOException

toXContent

public void toXContent(XContentBuilder builder,
                       ToXContent.Params params,
                       ToXContent custom,
                       Mapper... additionalMappers)
                throws IOException
Throws:
IOException

doXContent

protected void doXContent(XContentBuilder builder,
                          ToXContent.Params params)
                   throws IOException
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.