public class MappingMetaData extends AbstractDiffable<MappingMetaData>
Modifier and Type | Class and Description |
---|---|
static class |
MappingMetaData.Routing |
Writeable.Reader<V>, Writeable.Writer<V>
Constructor and Description |
---|
MappingMetaData(CompressedXContent mapping) |
MappingMetaData(DocumentMapper docMapper) |
MappingMetaData(StreamInput in) |
MappingMetaData(java.lang.String type,
CompressedXContent source,
MappingMetaData.Routing routing,
boolean hasParentField) |
MappingMetaData(java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> mapping) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Map<java.lang.String,java.lang.Object> |
getSourceAsMap()
Converts the serialized compressed form of the mappings into a parsed map.
|
int |
hashCode() |
boolean |
hasParentField() |
static Diff<MappingMetaData> |
readDiffFrom(StreamInput in) |
MappingMetaData.Routing |
routing() |
CompressedXContent |
source() |
java.util.Map<java.lang.String,java.lang.Object> |
sourceAsMap()
Converts the serialized compressed form of the mappings into a parsed map.
|
java.lang.String |
type() |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
diff, get, readDiffFrom
public MappingMetaData(DocumentMapper docMapper)
public MappingMetaData(CompressedXContent mapping) throws java.io.IOException
java.io.IOException
public MappingMetaData(java.lang.String type, java.util.Map<java.lang.String,java.lang.Object> mapping) throws java.io.IOException
java.io.IOException
public MappingMetaData(java.lang.String type, CompressedXContent source, MappingMetaData.Routing routing, boolean hasParentField)
public MappingMetaData(StreamInput in) throws java.io.IOException
java.io.IOException
public java.lang.String type()
public CompressedXContent source()
public boolean hasParentField()
public java.util.Map<java.lang.String,java.lang.Object> sourceAsMap() throws ElasticsearchParseException
ElasticsearchParseException
public java.util.Map<java.lang.String,java.lang.Object> getSourceAsMap() throws ElasticsearchParseException
ElasticsearchParseException
public MappingMetaData.Routing routing()
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static Diff<MappingMetaData> readDiffFrom(StreamInput in) throws java.io.IOException
java.io.IOException