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>
,org.opensearch.core.common.io.stream.Writeable
Mapping configuration for a type.
- Opensearch.api:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMappingMetadata
(String type, Map<String, Object> mapping) MappingMetadata
(CompressedXContent mapping) MappingMetadata
(org.opensearch.core.common.io.stream.StreamInput in) 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> readDiffFrom
(org.opensearch.core.common.io.stream.StreamInput in) boolean
source()
Converts the serialized compressed form of the mappings into a parsed map.type()
void
writeTo
(org.opensearch.core.common.io.stream.StreamOutput out) 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:
org.opensearch.OpenSearchParseException
-
getSourceAsMap
Converts the serialized compressed form of the mappings into a parsed map.- Throws:
org.opensearch.OpenSearchParseException
-
routingRequired
public boolean routingRequired() -
writeTo
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
readDiffFrom
public static Diff<MappingMetadata> readDiffFrom(org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-