org.elasticsearch.index.mapper
Class MapperService.SmartNameFieldMappers

java.lang.Object
  extended by org.elasticsearch.index.mapper.MapperService.SmartNameFieldMappers
Enclosing class:
MapperService

public static class MapperService.SmartNameFieldMappers
extends java.lang.Object


Constructor Summary
MapperService.SmartNameFieldMappers(FieldMappers fieldMappers, DocumentMapper docMapper)
           
 
Method Summary
 DocumentMapper docMapper()
          If the smart name was a typed field, with a type that we resolved, will return the document mapper for it.
 FieldMappers fieldMappers()
          All the field mappers for the smart name field.
 boolean hasDocMapper()
          If the smart name was a typed field, with a type that we resolved, will return true.
 boolean hasMapper()
          Has at least one mapper for the field.
 FieldMapper mapper()
          The first mapper for the smart named field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapperService.SmartNameFieldMappers

public MapperService.SmartNameFieldMappers(FieldMappers fieldMappers,
                                           @Nullable
                                           DocumentMapper docMapper)
Method Detail

hasMapper

public boolean hasMapper()
Has at least one mapper for the field.


mapper

public FieldMapper mapper()
The first mapper for the smart named field.


fieldMappers

public FieldMappers fieldMappers()
All the field mappers for the smart name field.


hasDocMapper

public boolean hasDocMapper()
If the smart name was a typed field, with a type that we resolved, will return true.


docMapper

public DocumentMapper docMapper()
If the smart name was a typed field, with a type that we resolved, will return the document mapper for it.