org.elasticsearch.index.mapper.xcontent
Class MultiFieldMapper

java.lang.Object
  extended by org.elasticsearch.index.mapper.xcontent.MultiFieldMapper
All Implemented Interfaces:
ToXContent, IncludeInAllMapper, XContentMapper

public class MultiFieldMapper
extends java.lang.Object
implements XContentMapper, IncludeInAllMapper


Nested Class Summary
static class MultiFieldMapper.Builder
           
static class MultiFieldMapper.Defaults
           
static class MultiFieldMapper.TypeParser
           
 
Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.xcontent.XContentMapper
XContentMapper.BuilderContext
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
static java.lang.String CONTENT_TYPE
           
 
Fields inherited from interface org.elasticsearch.index.mapper.xcontent.XContentMapper
EMPTY_ARRAY
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
MultiFieldMapper(java.lang.String name, ContentPath.Type pathType, java.util.Map<java.lang.String,XContentMapper> mappers, XContentMapper defaultMapper)
           
MultiFieldMapper(java.lang.String name, ContentPath.Type pathType, XContentMapper defaultMapper)
           
 
Method Summary
 XContentMapper defaultMapper()
           
 void includeInAll(java.lang.Boolean includeInAll)
           
 org.elasticsearch.common.collect.ImmutableMap<java.lang.String,XContentMapper> mappers()
           
 void merge(XContentMapper mergeWith, MergeContext mergeContext)
           
 java.lang.String name()
           
 void parse(ParseContext context)
           
 ContentPath.Type pathType()
           
 void toXContent(XContentBuilder builder, ToXContent.Params params)
           
 void traverse(FieldMapperListener fieldMapperListener)
           
 
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 java.lang.String CONTENT_TYPE
See Also:
Constant Field Values
Constructor Detail

MultiFieldMapper

public MultiFieldMapper(java.lang.String name,
                        ContentPath.Type pathType,
                        XContentMapper defaultMapper)

MultiFieldMapper

public MultiFieldMapper(java.lang.String name,
                        ContentPath.Type pathType,
                        java.util.Map<java.lang.String,XContentMapper> mappers,
                        XContentMapper defaultMapper)
Method Detail

name

public java.lang.String name()
Specified by:
name in interface XContentMapper

includeInAll

public void includeInAll(java.lang.Boolean includeInAll)
Specified by:
includeInAll in interface IncludeInAllMapper

pathType

public ContentPath.Type pathType()

defaultMapper

public XContentMapper defaultMapper()

mappers

public org.elasticsearch.common.collect.ImmutableMap<java.lang.String,XContentMapper> mappers()

parse

public void parse(ParseContext context)
           throws java.io.IOException
Specified by:
parse in interface XContentMapper
Throws:
java.io.IOException

merge

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

traverse

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

toXContent

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