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)
-
-
-
Constructor Detail
-
Builder
public Builder(IndexShardRoutingTable indexShard)
-
Builder
public Builder(ShardId shardId)
-
-
Method Detail
-
addShard
public IndexShardRoutingTable.Builder addShard(ShardRouting shardEntry)
-
removeShard
public IndexShardRoutingTable.Builder removeShard(ShardRouting shardEntry)
-
build
public IndexShardRoutingTable build()
-
readFrom
public static IndexShardRoutingTable readFrom(StreamInput in) throws java.io.IOException
- 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
-
-