Package org.opensearch.cluster.metadata
Class MappingMetadata
java.lang.Object
org.opensearch.cluster.AbstractDiffable<MappingMetadata>
org.opensearch.cluster.metadata.MappingMetadata
- All Implemented Interfaces:
Diffable<MappingMetadata>
,Writeable
Mapping configuration for a type.
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMappingMetadata
(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>
boolean
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.opensearch.cluster.AbstractDiffable
diff, readDiffFrom
-
Field Details
-
EMPTY_MAPPINGS
-
-
Constructor Details
-
MappingMetadata
-
MappingMetadata
-
MappingMetadata
-
MappingMetadata
- Throws:
IOException
-
-
Method Details
-
type
-
source
-
sourceAsMap
Converts the serialized compressed form of the mappings into a parsed map.- Throws:
OpenSearchParseException
-
getSourceAsMap
Converts the serialized compressed form of the mappings into a parsed map.- Throws:
OpenSearchParseException
-
routingRequired
public boolean routingRequired() -
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
readDiffFrom
- Throws:
IOException
-