Class IndexShardRoutingTable.Builder
java.lang.Object
org.elasticsearch.cluster.routing.IndexShardRoutingTable.Builder
- Enclosing class:
- IndexShardRoutingTable
public static class IndexShardRoutingTable.Builder
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Builder(IndexShardRoutingTable indexShard)
Builder(ShardId shardId)
-
Method Summary
Modifier and Type Method Description IndexShardRoutingTable.Builder
addShard(ShardRouting shardEntry)
IndexShardRoutingTable
build()
static IndexShardRoutingTable
readFrom(StreamInput in)
static IndexShardRoutingTable
readFromThin(StreamInput in, Index 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 Details
-
Builder
-
Builder
-
-
Method Details
-
addShard
-
removeShard
-
build
-
readFrom
- Throws:
java.io.IOException
-
readFromThin
public static IndexShardRoutingTable readFromThin(StreamInput in, Index index) throws java.io.IOException- Throws:
java.io.IOException
-
writeTo
public static void writeTo(IndexShardRoutingTable indexShard, StreamOutput out) throws java.io.IOException- Throws:
java.io.IOException
-
writeToThin
public static void writeToThin(IndexShardRoutingTable indexShard, StreamOutput out) throws java.io.IOException- Throws:
java.io.IOException
-