public class MappingMetaData extends AbstractDiffable<MappingMetaData>
Modifier and Type | Class and Description |
---|---|
static class |
MappingMetaData.Id |
static class |
MappingMetaData.ParseContext |
static class |
MappingMetaData.Routing |
static class |
MappingMetaData.Timestamp |
Modifier and Type | Field and Description |
---|---|
static MappingMetaData |
PROTO |
Constructor and Description |
---|
MappingMetaData(CompressedXContent mapping) |
MappingMetaData(DocumentMapper docMapper) |
MappingMetaData(Map<String,Object> mapping) |
MappingMetaData(String type,
CompressedXContent source,
MappingMetaData.Id id,
MappingMetaData.Routing routing,
MappingMetaData.Timestamp timestamp,
boolean hasParentField) |
MappingMetaData(String type,
Map<String,Object> mapping) |
Modifier and Type | Method and Description |
---|---|
MappingMetaData.ParseContext |
createParseContext(String id,
String routing,
String timestamp) |
boolean |
equals(Object o) |
Map<String,Object> |
getSourceAsMap()
Converts the serialized compressed form of the mappings into a parsed map.
|
int |
hashCode() |
boolean |
hasParentField() |
MappingMetaData.Id |
id() |
void |
parse(XContentParser parser,
MappingMetaData.ParseContext parseContext) |
MappingMetaData |
readFrom(StreamInput in)
Reads a copy of an object with the same type form the stream input
The caller object remains unchanged.
|
MappingMetaData.Routing |
routing() |
CompressedXContent |
source() |
Map<String,Object> |
sourceAsMap()
Converts the serialized compressed form of the mappings into a parsed map.
|
MappingMetaData.Timestamp |
timestamp() |
String |
type() |
void |
writeTo(StreamOutput out)
Writes the current object into the output stream out
|
diff, get, readDiffFrom, readDiffFrom
public static final MappingMetaData PROTO
public MappingMetaData(DocumentMapper docMapper)
public MappingMetaData(CompressedXContent mapping) throws IOException
IOException
public MappingMetaData(Map<String,Object> mapping) throws IOException
IOException
public MappingMetaData(String type, Map<String,Object> mapping) throws IOException
IOException
public MappingMetaData(String type, CompressedXContent source, MappingMetaData.Id id, MappingMetaData.Routing routing, MappingMetaData.Timestamp timestamp, boolean hasParentField)
public String type()
public CompressedXContent source()
public boolean hasParentField()
public Map<String,Object> sourceAsMap() throws IOException
IOException
public Map<String,Object> getSourceAsMap() throws IOException
IOException
public MappingMetaData.Id id()
public MappingMetaData.Routing routing()
public MappingMetaData.Timestamp timestamp()
public MappingMetaData.ParseContext createParseContext(@Nullable String id, @Nullable String routing, @Nullable String timestamp)
public void parse(XContentParser parser, MappingMetaData.ParseContext parseContext) throws IOException
IOException
public void writeTo(StreamOutput out) throws IOException
Writeable
IOException
public MappingMetaData readFrom(StreamInput in) throws IOException
StreamableReader
IOException
Copyright © 2009–2016. All rights reserved.