org.elasticsearch.cluster.metadata
Class MappingMetaData
java.lang.Object
org.elasticsearch.cluster.metadata.MappingMetaData
public class MappingMetaData
- extends Object
MappingMetaData
public MappingMetaData(DocumentMapper docMapper)
MappingMetaData
public MappingMetaData(CompressedString mapping)
throws IOException
- Throws:
IOException
MappingMetaData
public MappingMetaData(Map<String,Object> mapping)
throws IOException
- Throws:
IOException
MappingMetaData
public MappingMetaData(String type,
Map<String,Object> mapping)
throws IOException
- Throws:
IOException
MappingMetaData
public MappingMetaData(String type,
CompressedString source,
MappingMetaData.Id id,
MappingMetaData.Routing routing,
MappingMetaData.Timestamp timestamp)
type
public String type()
source
public CompressedString source()
sourceAsMap
public Map<String,Object> sourceAsMap()
throws IOException
- Converts the serialized compressed form of the mappings into a parsed map.
- Throws:
IOException
getSourceAsMap
public Map<String,Object> getSourceAsMap()
throws IOException
- Converts the serialized compressed form of the mappings into a parsed map.
- Throws:
IOException
id
public MappingMetaData.Id id()
routing
public MappingMetaData.Routing routing()
timestamp
public MappingMetaData.Timestamp timestamp()
createParseContext
public MappingMetaData.ParseContext createParseContext(@Nullable
String id,
@Nullable
String routing,
@Nullable
String timestamp)
parse
public void parse(XContentParser parser,
MappingMetaData.ParseContext parseContext)
throws IOException
- Throws:
IOException
writeTo
public static void writeTo(MappingMetaData mappingMd,
StreamOutput out)
throws IOException
- Throws:
IOException
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
readFrom
public static MappingMetaData readFrom(StreamInput in)
throws IOException
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.