public class MappingMetaData extends AbstractDiffable<MappingMetaData>
Modifier and Type | Class and Description |
---|---|
static class |
MappingMetaData.Routing |
static class |
MappingMetaData.Timestamp |
Writeable.Reader<R>
Modifier and Type | Field and Description |
---|---|
static MappingMetaData |
PROTO |
Constructor and Description |
---|
MappingMetaData(CompressedXContent mapping) |
MappingMetaData(DocumentMapper docMapper) |
MappingMetaData(java.util.Map<java.lang.String,java.lang.Object> mapping) |
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() |
MappingMetaData |
readFrom(StreamInput in)
Reads an object of this type from the provided StreamInput.
|
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, readDiffFrom, readDiffFrom
public static final MappingMetaData PROTO
public MappingMetaData(DocumentMapper docMapper)
public MappingMetaData(CompressedXContent mapping) throws java.io.IOException
java.io.IOException
public MappingMetaData(java.util.Map<java.lang.String,java.lang.Object> 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, MappingMetaData.Timestamp timestamp, boolean hasParentField)
public 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.IOException
public java.util.Map<java.lang.String,java.lang.Object> getSourceAsMap() throws java.io.IOException
java.io.IOException
public MappingMetaData.Routing routing()
public MappingMetaData.Timestamp timestamp()
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 MappingMetaData readFrom(StreamInput in) throws java.io.IOException
Diffable
java.io.IOException