Diffable<MappingMetaData>
, Writeable
public class MappingMetaData extends AbstractDiffable<MappingMetaData>
Modifier and Type | Class | Description |
---|---|---|
static class |
MappingMetaData.Routing |
Writeable.Reader<V>, Writeable.Writer<V>
Constructor | Description |
---|---|
MappingMetaData(java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> mapping) |
|
MappingMetaData(CompressedXContent mapping) |
|
MappingMetaData(StreamInput in) |
|
MappingMetaData(DocumentMapper docMapper) |
Modifier and Type | Method | 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(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