org.elasticsearch.cluster.metadata
Class MappingMetaData
java.lang.Object
org.elasticsearch.cluster.metadata.MappingMetaData
public class MappingMetaData
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
MappingMetaData
public MappingMetaData(DocumentMapper docMapper)
MappingMetaData
public MappingMetaData(java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> mapping)
throws java.io.IOException
- Throws:
java.io.IOException
type
public java.lang.String type()
source
public CompressedString source()
sourceAsMap
public java.util.Map<java.lang.String,java.lang.Object> sourceAsMap()
throws java.io.IOException
- Converts the serialized compressed form of the mappings into a parsed map.
- Throws:
java.io.IOException
getSourceAsMap
public java.util.Map<java.lang.String,java.lang.Object> getSourceAsMap()
throws java.io.IOException
- Converts the serialized compressed form of the mappings into a parsed map.
- Throws:
java.io.IOException
id
public MappingMetaData.Id id()
routing
public MappingMetaData.Routing routing()
timestamp
public MappingMetaData.Timestamp timestamp()
createParseContext
public MappingMetaData.ParseContext createParseContext(@Nullable
java.lang.String id,
@Nullable
java.lang.String routing,
@Nullable
java.lang.String timestamp)
parse
public void parse(XContentParser parser,
MappingMetaData.ParseContext parseContext)
throws java.io.IOException
- Throws:
java.io.IOException
writeTo
public static void writeTo(MappingMetaData mappingMd,
StreamOutput out)
throws java.io.IOException
- Throws:
java.io.IOException
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
readFrom
public static MappingMetaData readFrom(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException