org.elasticsearch.cluster.metadata
Class MappingMetaData

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

public class MappingMetaData
extends Object


Nested Class Summary
static class MappingMetaData.Id
           
static class MappingMetaData.ParseContext
           
static class MappingMetaData.Routing
           
static class MappingMetaData.Timestamp
           
 
Constructor Summary
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)
           
MappingMetaData(String type, Map<String,Object> mapping)
           
 
Method Summary
 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()
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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

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.