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 classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
ConstructorDescriptionMappingMetadata(String type, Map<String,Object> mapping)
MappingMetadata(CompressedXContent mapping)
MappingMetadata(DocumentMapper docMapper)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Converts the serialized compressed form of the mappings into a parsed map.int
hashCode()
static Diff<MappingMetadata>
routing()
source()
Converts the serialized compressed form of the mappings into a parsed map.type()
void
writeTo(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:Writeable
Write this into the StreamOutput.- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
readDiffFrom
- Throws:
IOException
-