org.elasticsearch.index.mapper.internal
Class AnalyzerMapper

java.lang.Object
  extended by org.elasticsearch.index.mapper.internal.AnalyzerMapper
All Implemented Interfaces:
ToXContent, InternalMapper, Mapper, RootMapper

public class AnalyzerMapper
extends Object
implements Mapper, InternalMapper, RootMapper


Nested Class Summary
static class AnalyzerMapper.Builder
           
static class AnalyzerMapper.Defaults
           
static class AnalyzerMapper.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 NAME
           
 
Fields inherited from interface org.elasticsearch.index.mapper.Mapper
EMPTY_ARRAY
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
AnalyzerMapper()
           
AnalyzerMapper(String path)
           
 
Method Summary
 void close()
           
 boolean includeInObject()
          Should the mapper be included in the root ObjectMapper.
 void merge(Mapper mergeWith, MergeContext mergeContext)
           
 String name()
           
 void parse(ParseContext context)
           
 void postParse(ParseContext context)
           
 void preParse(ParseContext context)
           
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 void traverse(FieldMapperListener fieldMapperListener)
           
 void traverse(ObjectMapperListener objectMapperListener)
           
 void validate(ParseContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

CONTENT_TYPE

public static final String CONTENT_TYPE
See Also:
Constant Field Values
Constructor Detail

AnalyzerMapper

public AnalyzerMapper()

AnalyzerMapper

public AnalyzerMapper(String path)
Method Detail

name

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

preParse

public void preParse(ParseContext context)
              throws IOException
Specified by:
preParse in interface RootMapper
Throws:
IOException

postParse

public void postParse(ParseContext context)
               throws IOException
Specified by:
postParse in interface RootMapper
Throws:
IOException

validate

public void validate(ParseContext context)
              throws MapperParsingException
Specified by:
validate in interface RootMapper
Throws:
MapperParsingException

includeInObject

public boolean includeInObject()
Description copied from interface: RootMapper
Should the mapper be included in the root ObjectMapper.

Specified by:
includeInObject in interface RootMapper

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

traverse

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

traverse

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

toXContent

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

close

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


Copyright © 2009-2012. All Rights Reserved.