public static class IndexRoutingTable.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
IndexRoutingTable.Builder |
addIndexShard(IndexShardRoutingTable indexShard) |
IndexRoutingTable.Builder |
addReplica() |
IndexRoutingTable.Builder |
addShard(ShardRouting shard)
Adds a new shard routing (makes a copy of it), with reference data used from the index shard routing table
if it needs to be created.
|
IndexRoutingTable |
build() |
IndexRoutingTable.Builder |
initializeAsFromCloseToOpen(IndexMetaData indexMetaData)
Initializes a new empty index, as as a result of opening a closed index.
|
IndexRoutingTable.Builder |
initializeAsFromDangling(IndexMetaData indexMetaData)
Initializes a new index caused by dangling index imported.
|
IndexRoutingTable.Builder |
initializeAsNew(IndexMetaData indexMetaData)
Initializes a new empty index, as if it was created from an API.
|
IndexRoutingTable.Builder |
initializeAsNewRestore(IndexMetaData indexMetaData,
RecoverySource.SnapshotRecoverySource recoverySource,
com.carrotsearch.hppc.IntSet ignoreShards)
Initializes a new empty index, to be restored from a snapshot
|
IndexRoutingTable.Builder |
initializeAsRecovery(IndexMetaData indexMetaData)
Initializes an existing index.
|
IndexRoutingTable.Builder |
initializeAsRestore(IndexMetaData indexMetaData,
RecoverySource.SnapshotRecoverySource recoverySource)
Initializes an existing index, to be restored from a snapshot
|
IndexRoutingTable.Builder |
removeReplica() |
public Builder(Index index)
public IndexRoutingTable.Builder initializeAsNew(IndexMetaData indexMetaData)
public IndexRoutingTable.Builder initializeAsRecovery(IndexMetaData indexMetaData)
public IndexRoutingTable.Builder initializeAsFromDangling(IndexMetaData indexMetaData)
public IndexRoutingTable.Builder initializeAsFromCloseToOpen(IndexMetaData indexMetaData)
public IndexRoutingTable.Builder initializeAsNewRestore(IndexMetaData indexMetaData, RecoverySource.SnapshotRecoverySource recoverySource, com.carrotsearch.hppc.IntSet ignoreShards)
public IndexRoutingTable.Builder initializeAsRestore(IndexMetaData indexMetaData, RecoverySource.SnapshotRecoverySource recoverySource)
public IndexRoutingTable.Builder addReplica()
public IndexRoutingTable.Builder removeReplica()
public IndexRoutingTable.Builder addIndexShard(IndexShardRoutingTable indexShard)
public IndexRoutingTable.Builder addShard(ShardRouting shard)
public IndexRoutingTable build()