Diffable<MappingMetaData>, Writeablepublic 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, readDiffFrompublic MappingMetaData(DocumentMapper docMapper)
public MappingMetaData(CompressedXContent mapping) throws java.io.IOException
java.io.IOExceptionpublic MappingMetaData(java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> mapping)
throws java.io.IOException
java.io.IOExceptionpublic MappingMetaData(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String type()
public CompressedXContent source()
public boolean hasParentField()
public java.util.Map<java.lang.String,java.lang.Object> sourceAsMap()
throws ElasticsearchParseException
ElasticsearchParseExceptionpublic java.util.Map<java.lang.String,java.lang.Object> getSourceAsMap()
throws ElasticsearchParseException
ElasticsearchParseExceptionpublic MappingMetaData.Routing routing()
public void writeTo(StreamOutput out) throws java.io.IOException
Writeablejava.io.IOExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static Diff<MappingMetaData> readDiffFrom(StreamInput in) throws java.io.IOException
java.io.IOException