public class MappingMetaData extends AbstractDiffable<MappingMetaData>
| Modifier and Type | Class and Description |
|---|---|
static class |
MappingMetaData.Routing |
static class |
MappingMetaData.Timestamp |
Writeable.Reader<V>, Writeable.Writer<V>| Constructor and Description |
|---|
MappingMetaData(CompressedXContent mapping) |
MappingMetaData(DocumentMapper docMapper) |
MappingMetaData(java.util.Map<java.lang.String,java.lang.Object> mapping) |
MappingMetaData(StreamInput in) |
MappingMetaData(java.lang.String type,
CompressedXContent source,
MappingMetaData.Routing routing,
MappingMetaData.Timestamp timestamp,
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.
|
MappingMetaData.Timestamp |
timestamp() |
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.util.Map<java.lang.String,java.lang.Object> 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(java.lang.String type,
CompressedXContent source,
MappingMetaData.Routing routing,
MappingMetaData.Timestamp timestamp,
boolean hasParentField)
public 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 java.io.IOException
java.io.IOExceptionpublic java.util.Map<java.lang.String,java.lang.Object> getSourceAsMap()
throws java.io.IOException
java.io.IOExceptionpublic MappingMetaData.Routing routing()
public MappingMetaData.Timestamp timestamp()
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