Class IndexRoutingTable.Builder
java.lang.Object
org.elasticsearch.cluster.routing.IndexRoutingTable.Builder
- Enclosing class:
- IndexRoutingTable
public static class IndexRoutingTable.Builder
extends java.lang.Object
-
Constructor Summary
-
Method Summary
Modifier and Type Method 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
initializeAsFromOpenToClose(IndexMetaData indexMetaData)
Initializes a new empty index, as as a result of closing an opened index.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 snapshotIndexRoutingTable.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 snapshotIndexRoutingTable.Builder
removeReplica()
-
Constructor Details
-
Method Details
-
initializeAsNew
Initializes a new empty index, as if it was created from an API. -
initializeAsRecovery
Initializes an existing index. -
initializeAsFromDangling
Initializes a new index caused by dangling index imported. -
initializeAsFromCloseToOpen
Initializes a new empty index, as as a result of opening a closed index. -
initializeAsFromOpenToClose
Initializes a new empty index, as as a result of closing an opened index. -
initializeAsNewRestore
public IndexRoutingTable.Builder initializeAsNewRestore(IndexMetaData indexMetaData, RecoverySource.SnapshotRecoverySource recoverySource, com.carrotsearch.hppc.IntSet ignoreShards)Initializes a new empty index, to be restored from a snapshot -
initializeAsRestore
public IndexRoutingTable.Builder initializeAsRestore(IndexMetaData indexMetaData, RecoverySource.SnapshotRecoverySource recoverySource)Initializes an existing index, to be restored from a snapshot -
addReplica
-
removeReplica
-
addIndexShard
-
addShard
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. -
build
-