Package org.elasticsearch.index.mapper
Class Mapping
java.lang.Object
org.elasticsearch.index.mapper.Mapping
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentFragment
Wrapper around everything that defines a mapping, without references to
utility classes like MapperService, ...
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
-
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionMapping
(RootObjectMapper rootObjectMapper, MetadataFieldMapper[] metadataMappers, Map<String, Object> meta) -
Method Summary
Modifier and TypeMethodDescriptiongetMeta()
Returns the meta section for the current mapping<T extends MetadataFieldMapper>
TgetMetadataMapperByClass
(Class<T> clazz) Get the metadata mapper with the given class.Outputs this mapping instance and returns it inCompressedXContent
formattoString()
org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Mapping
public Mapping(RootObjectMapper rootObjectMapper, MetadataFieldMapper[] metadataMappers, Map<String, Object> meta)
-
-
Method Details
-
toCompressedXContent
Outputs this mapping instance and returns it inCompressedXContent
format- Returns:
- the
CompressedXContent
representation of this mapping instance
-
getMeta
Returns the meta section for the current mapping -
getMetadataMapperByClass
Get the metadata mapper with the given class. -
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.elasticsearch.xcontent.ToXContent
- Throws:
IOException
-
toString
-