org.elasticsearch.cluster.metadata
Class MappingMetaData
java.lang.Object
org.elasticsearch.cluster.metadata.MappingMetaData
public class MappingMetaData
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MappingMetaData
public MappingMetaData(DocumentMapper docMapper)
MappingMetaData
public MappingMetaData(java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> mapping)
throws java.io.IOException
- Throws:
java.io.IOException
type
public java.lang.String type()
source
public CompressedString source()
routing
public MappingMetaData.Routing routing()
parseRouting
public java.lang.String parseRouting(XContentParser parser)
throws java.io.IOException
- Throws:
java.io.IOException
writeTo
public static void writeTo(MappingMetaData mappingMd,
StreamOutput out)
throws java.io.IOException
- Throws:
java.io.IOException
readFrom
public static MappingMetaData readFrom(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException