java.lang.Object
org.elasticsearch.cluster.metadata.MappingMetadata
- All Implemented Interfaces:
Diffable<MappingMetadata>,SimpleDiffable<MappingMetadata>,Writeable
Mapping configuration for a type.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.cluster.SimpleDiffable
SimpleDiffable.CompleteDiff<T extends Diffable<T>>Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.cluster.SimpleDiffable
EMPTY -
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()Converts the serialized compressed form of the mappings into a parsed map.static Diff<MappingMetadata> booleansource()Converts the serialized compressed form of the mappings into a parsed map.type()static voidwriteMappingMetadata(StreamOutput out, Map<String, MappingMetadata> mappings) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.cluster.SimpleDiffable
diff
-
Field Details
-
EMPTY_MAPPINGS
-
-
Constructor Details
-
MappingMetadata
-
MappingMetadata
-
MappingMetadata
-
MappingMetadata
- Throws:
IOException
-
-
Method Details
-
writeMappingMetadata
public static void writeMappingMetadata(StreamOutput out, Map<String, MappingMetadata> mappings) throws IOException- Throws:
IOException
-
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
-
rawSourceAsMap
Converts the serialized compressed form of the mappings into a parsed map. In contrast tosourceAsMap(), this does not remove the type- Throws:
ElasticsearchParseException
-
routingRequired
public boolean routingRequired() -
getSha256
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
readDiffFrom
- Throws:
IOException
-