public class MappingMetaData extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MappingMetaData.Id |
static class |
MappingMetaData.ParseContext |
static class |
MappingMetaData.Routing |
static class |
MappingMetaData.Timestamp |
Constructor and Description |
---|
MappingMetaData(CompressedString mapping) |
MappingMetaData(DocumentMapper docMapper) |
MappingMetaData(Map<String,Object> mapping) |
MappingMetaData(String type,
CompressedString 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) |
static MappingMetaData |
readFrom(StreamInput in) |
MappingMetaData.Routing |
routing() |
CompressedString |
source() |
Map<String,Object> |
sourceAsMap()
Converts the serialized compressed form of the mappings into a parsed map.
|
MappingMetaData.Timestamp |
timestamp() |
String |
type() |
static void |
writeTo(MappingMetaData mappingMd,
StreamOutput out) |
public MappingMetaData(DocumentMapper docMapper)
public MappingMetaData(CompressedString 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, CompressedString source, MappingMetaData.Id id, MappingMetaData.Routing routing, MappingMetaData.Timestamp timestamp, boolean hasParentField)
public String type()
public CompressedString 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 static void writeTo(MappingMetaData mappingMd, StreamOutput out) throws IOException
IOException
public static MappingMetaData readFrom(StreamInput in) throws IOException
IOException
Copyright © 2009–2015. All rights reserved.