org.elasticsearch.cluster.metadata
Class MappingMetaData

java.lang.Object
  extended by org.elasticsearch.cluster.metadata.MappingMetaData

public class MappingMetaData
extends java.lang.Object


Nested Class Summary
static class MappingMetaData.Routing
           
 
Constructor Summary
MappingMetaData(DocumentMapper docMapper)
           
MappingMetaData(java.lang.String type, java.util.Map<java.lang.String,java.lang.Object> mapping)
           
 
Method Summary
 java.lang.String parseRouting(XContentParser parser)
           
static MappingMetaData readFrom(StreamInput in)
           
 MappingMetaData.Routing routing()
           
 CompressedString source()
           
 java.lang.String type()
           
static void writeTo(MappingMetaData mappingMd, StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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