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
IOExceptionpublic MappingMetaData(Map<String,Object> mapping) throws IOException
IOExceptionpublic MappingMetaData(String type, Map<String,Object> mapping) throws IOException
IOExceptionpublic 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
IOExceptionpublic Map<String,Object> getSourceAsMap() throws IOException
IOExceptionpublic 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
IOExceptionpublic static void writeTo(MappingMetaData mappingMd, StreamOutput out) throws IOException
IOExceptionpublic static MappingMetaData readFrom(StreamInput in) throws IOException
IOExceptionCopyright © 2009–2016. All rights reserved.