Class MappingMetadata
java.lang.Object
org.elasticsearch.cluster.AbstractDiffable<MappingMetadata>
org.elasticsearch.cluster.metadata.MappingMetadata
- All Implemented Interfaces:
Diffable<MappingMetadata>,Writeable
Mapping configuration for a type.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionMappingMetadata(String type, Map<String,Object> mapping)MappingMetadata(CompressedXContent mapping)MappingMetadata(DocumentMapper docMapper) -
Method Summary
Modifier and TypeMethodDescriptionbooleanConverts the serialized compressed form of the mappings into a parsed map.inthashCode()static Diff<MappingMetadata>routing()source()Converts the serialized compressed form of the mappings into a parsed map.type()voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.cluster.AbstractDiffable
diff, readDiffFrom
-
Constructor Details
-
MappingMetadata
-
MappingMetadata
-
MappingMetadata
- Throws:
IOException
-
MappingMetadata
- Throws:
IOException
-
-
Method Details
-
type
-
source
-
sourceAsMap
Converts the serialized compressed form of the mappings into a parsed map.- Throws:
ElasticsearchParseException
-
getSourceAsMap
Converts the serialized compressed form of the mappings into a parsed map.- Throws:
ElasticsearchParseException
-
routing
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
readDiffFrom
- Throws:
IOException
-