org.elasticsearch.cluster.routing
Class IndexShardRoutingTable.Builder

java.lang.Object
  extended by org.elasticsearch.cluster.routing.IndexShardRoutingTable.Builder
Enclosing class:
IndexShardRoutingTable

public static class IndexShardRoutingTable.Builder
extends Object


Constructor Summary
IndexShardRoutingTable.Builder(IndexShardRoutingTable indexShard)
           
IndexShardRoutingTable.Builder(ShardId shardId, boolean allocatedPostApi)
           
 
Method Summary
 IndexShardRoutingTable.Builder addShard(ImmutableShardRouting shardEntry)
           
 IndexShardRoutingTable build()
           
static IndexShardRoutingTable readFrom(StreamInput in)
           
static IndexShardRoutingTable readFromThin(StreamInput in, String index)
           
 IndexShardRoutingTable.Builder removeShard(ShardRouting shardEntry)
           
static void writeTo(IndexShardRoutingTable indexShard, StreamOutput out)
           
static void writeToThin(IndexShardRoutingTable indexShard, StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexShardRoutingTable.Builder

public IndexShardRoutingTable.Builder(IndexShardRoutingTable indexShard)

IndexShardRoutingTable.Builder

public IndexShardRoutingTable.Builder(ShardId shardId,
                                      boolean allocatedPostApi)
Method Detail

addShard

public IndexShardRoutingTable.Builder addShard(ImmutableShardRouting shardEntry)

removeShard

public IndexShardRoutingTable.Builder removeShard(ShardRouting shardEntry)

build

public IndexShardRoutingTable build()

readFrom

public static IndexShardRoutingTable readFrom(StreamInput in)
                                       throws IOException
Throws:
IOException

readFromThin

public static IndexShardRoutingTable readFromThin(StreamInput in,
                                                  String index)
                                           throws IOException
Throws:
IOException

writeTo

public static void writeTo(IndexShardRoutingTable indexShard,
                           StreamOutput out)
                    throws IOException
Throws:
IOException

writeToThin

public static void writeToThin(IndexShardRoutingTable indexShard,
                               StreamOutput out)
                        throws IOException
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.