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.BuilderaddShard(ShardRouting shardEntry)IndexShardRoutingTablebuild()static IndexShardRoutingTablereadFrom(StreamInput in)static IndexShardRoutingTablereadFromThin(StreamInput in, Index index)IndexShardRoutingTable.BuilderremoveShard(ShardRouting shardEntry)static voidwriteTo(IndexShardRoutingTable indexShard, StreamOutput out)static voidwriteToThin(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
-