public static class IndexShardRoutingTable.Builder extends Object
Constructor and Description |
---|
Builder(IndexShardRoutingTable indexShard) |
Builder(ShardId shardId,
boolean primaryAllocatedPostApi) |
Modifier and Type | Method and Description |
---|---|
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) |
public Builder(IndexShardRoutingTable indexShard)
public Builder(ShardId shardId, boolean primaryAllocatedPostApi)
public IndexShardRoutingTable.Builder addShard(ImmutableShardRouting shardEntry)
public IndexShardRoutingTable.Builder removeShard(ShardRouting shardEntry)
public IndexShardRoutingTable build()
public static IndexShardRoutingTable readFrom(StreamInput in) throws IOException
IOException
public static IndexShardRoutingTable readFromThin(StreamInput in, String index) throws IOException
IOException
public static void writeTo(IndexShardRoutingTable indexShard, StreamOutput out) throws IOException
IOException
public static void writeToThin(IndexShardRoutingTable indexShard, StreamOutput out) throws IOException
IOException
Copyright © 2009–2015. All rights reserved.