org.elasticsearch.cluster.metadata
Interface IndexMetaData.Custom.Factory<T extends IndexMetaData.Custom>

All Known Implementing Classes:
IndexWarmersMetaData.Factory
Enclosing interface:
IndexMetaData.Custom

public static interface IndexMetaData.Custom.Factory<T extends IndexMetaData.Custom>


Method Summary
 T fromMap(Map<String,Object> map)
           
 T fromXContent(XContentParser parser)
           
 T merge(T first, T second)
          Merges from first to second, with first being more important, i.e., if something exists in first and second, first will prevail.
 T readFrom(StreamInput in)
           
 void toXContent(T customIndexMetaData, XContentBuilder builder, ToXContent.Params params)
           
 String type()
           
 void writeTo(T customIndexMetaData, StreamOutput out)
           
 

Method Detail

type

String type()

readFrom

T readFrom(StreamInput in)
                                        throws IOException
Throws:
IOException

writeTo

void writeTo(T customIndexMetaData,
             StreamOutput out)
             throws IOException
Throws:
IOException

fromMap

T fromMap(Map<String,Object> map)
                                       throws IOException
Throws:
IOException

fromXContent

T fromXContent(XContentParser parser)
                                            throws IOException
Throws:
IOException

toXContent

void toXContent(T customIndexMetaData,
                XContentBuilder builder,
                ToXContent.Params params)
                throws IOException
Throws:
IOException

merge

T merge(T first,
        T second)
Merges from first to second, with first being more important, i.e., if something exists in first and second, first will prevail.



Copyright © 2009-2012. All Rights Reserved.