public static class CollectionAdminRequest.Create extends CollectionAdminRequest.AsyncCollectionSpecificAdminRequest
CollectionAdminRequest.AddReplica, CollectionAdminRequest.AddReplicaProp, CollectionAdminRequest.AddRole, CollectionAdminRequest.AsyncCollectionAdminRequest, CollectionAdminRequest.AsyncCollectionSpecificAdminRequest, CollectionAdminRequest.AsyncShardSpecificAdminRequest, CollectionAdminRequest.Backup, CollectionAdminRequest.BalanceShardUnique, CollectionAdminRequest.ClusterProp, CollectionAdminRequest.ClusterStatus, CollectionAdminRequest.CollectionAdminRoleRequest, CollectionAdminRequest.CollectionProp, CollectionAdminRequest.ColStatus, CollectionAdminRequest.Create, CollectionAdminRequest.CreateAlias, CollectionAdminRequest.CreateCategoryRoutedAlias, CollectionAdminRequest.CreateShard, CollectionAdminRequest.CreateSnapshot, CollectionAdminRequest.CreateTimeRoutedAlias, CollectionAdminRequest.Delete, CollectionAdminRequest.DeleteAlias, CollectionAdminRequest.DeleteNode, CollectionAdminRequest.DeleteReplica, CollectionAdminRequest.DeleteReplicaProp, CollectionAdminRequest.DeleteShard, CollectionAdminRequest.DeleteSnapshot, CollectionAdminRequest.DeleteStatus, CollectionAdminRequest.DimensionalRoutedAlias, CollectionAdminRequest.ForceLeader, CollectionAdminRequest.List, CollectionAdminRequest.ListAliases, CollectionAdminRequest.ListSnapshots, CollectionAdminRequest.Migrate, CollectionAdminRequest.MigrateClusterState, CollectionAdminRequest.Modify, CollectionAdminRequest.MoveReplica, CollectionAdminRequest.OverseerStatus, CollectionAdminRequest.RebalanceLeaders, CollectionAdminRequest.ReindexCollection, CollectionAdminRequest.Reload, CollectionAdminRequest.RemoveRole, CollectionAdminRequest.Rename, CollectionAdminRequest.ReplaceNode, CollectionAdminRequest.RequestStatus, CollectionAdminRequest.RequestStatusResponse, CollectionAdminRequest.Restore, CollectionAdminRequest.RoutedAliasAdminRequest, CollectionAdminRequest.SetAliasProperty, CollectionAdminRequest.ShardSpecificAdminRequest, CollectionAdminRequest.SplitShard, CollectionAdminRequest.UtilizeNode
SolrRequest.METHOD
MapWriter.EntryWriter
Modifier and Type | Field and Description |
---|---|
protected String |
alias |
protected Boolean |
autoAddReplicas |
protected String |
configName |
protected String |
createNodeSet |
protected Integer |
maxShardsPerNode |
protected Integer |
nrtReplicas |
protected Integer |
numShards |
protected Boolean |
perReplicaState |
protected String |
policy |
protected Properties |
properties |
protected Integer |
pullReplicas |
protected String |
routerField |
protected String |
routerName |
protected String[] |
rule |
protected String |
shards |
protected String[] |
snitch |
protected Integer |
stateFormat |
protected Integer |
tlogReplicas |
protected String |
withCollection |
collection, followAliases
asyncId, waitForFinalState
action, MODIFIABLE_COLLECTION_PROPERTIES, PROPERTY_PREFIX
SUPPORTED_METHODS, useBinaryV2, usev2
Modifier | Constructor and Description |
---|---|
protected |
Create(String collection,
String config,
Integer numShards,
Integer numNrtReplicas,
Integer numTlogReplicas,
Integer numPullReplicas)
Constructor intended for typical use cases
|
protected |
Create(String collection,
String config,
String shards,
int numNrtReplicas)
Constructor that assumes
ImplicitDocRouter.NAME and an explicit list of shards |
getCollectionName, setFollowAliases
createResponse, getAsyncId, processAndWait, processAndWait, processAsync, processAsync, setAsyncId, setWaitForFinalState
addProperties, addReplicaByRouteKey, addReplicaProperty, addReplicaToShard, addReplicaToShard, addRole, backupCollection, balanceReplicaProperty, collectionStatus, collectionStatuses, createAlias, createCategoryRoutedAlias, createCollection, createCollection, createCollection, createCollectionWithImplicitRouter, createCollectionWithImplicitRouter, createDimensionalRoutedAlias, createShard, createTimeRoutedAlias, deleteAlias, deleteAllAsyncIds, deleteAsyncId, deleteCollection, deleteNode, deleteReplica, deleteReplica, deleteReplicaProperty, deleteReplicasFromAllShards, deleteReplicasFromShard, deleteShard, forceLeaderElection, getClusterStatus, getOverseerStatus, getV2Request, listCollections, migrateCollectionFormat, migrateData, modifyCollection, moveReplica, rebalanceLeaders, reindexCollection, reloadCollection, removeRole, renameCollection, requestStatus, restoreCollection, setAliasProperty, setClusterProperty, setCollectionProperty, splitShard, toString, waitForAsyncRequest, writeMap
addHeader, getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getHeaders, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
protected String configName
protected String createNodeSet
protected String routerName
protected String policy
protected String shards
protected String routerField
protected Integer numShards
protected Integer maxShardsPerNode
protected Integer nrtReplicas
protected Integer pullReplicas
protected Integer tlogReplicas
protected Boolean perReplicaState
protected Properties properties
protected Boolean autoAddReplicas
protected String alias
protected Integer stateFormat
protected String[] rule
protected String[] snitch
protected String withCollection
protected Create(String collection, String config, Integer numShards, Integer numNrtReplicas, Integer numTlogReplicas, Integer numPullReplicas)
protected Create(String collection, String config, String shards, int numNrtReplicas)
ImplicitDocRouter.NAME
and an explicit list of shards
public CollectionAdminRequest.Create setCreateNodeSet(String nodeSet)
public CollectionAdminRequest.Create setRouterName(String routerName)
public CollectionAdminRequest.Create setRouterField(String routerField)
public CollectionAdminRequest.Create setMaxShardsPerNode(Integer numShards)
public CollectionAdminRequest.Create setAutoAddReplicas(boolean autoAddReplicas)
public CollectionAdminRequest.Create setNrtReplicas(Integer nrtReplicas)
public CollectionAdminRequest.Create setTlogReplicas(Integer tlogReplicas)
public CollectionAdminRequest.Create setPullReplicas(Integer pullReplicas)
public CollectionAdminRequest.Create setReplicationFactor(Integer repl)
public CollectionAdminRequest.Create setStateFormat(Integer stateFormat)
public CollectionAdminRequest.Create setRule(String... s)
public CollectionAdminRequest.Create setSnitch(String... s)
public CollectionAdminRequest.Create setPerReplicaState(Boolean b)
public CollectionAdminRequest.Create setAlias(String alias)
public String getConfigName()
public String getCreateNodeSet()
public String getRouterName()
public String getShards()
public Integer getNumShards()
public Integer getMaxShardsPerNode()
public Integer getReplicationFactor()
public Integer getNumNrtReplicas()
public Boolean getAutoAddReplicas()
public Integer getNumTlogReplicas()
public Integer getNumPullReplicas()
public Boolean getPerReplicaState()
public Integer getStateFormat()
public CollectionAdminRequest.Create setShards(String shards)
IllegalArgumentException
- if any of the shard names contain invalid characters.public Properties getProperties()
public CollectionAdminRequest.Create setProperties(Properties properties)
public CollectionAdminRequest.Create setProperties(Map<String,String> properties)
public CollectionAdminRequest.Create withProperty(String key, String value)
public SolrParams getParams()
getParams
in class CollectionAdminRequest.AsyncCollectionSpecificAdminRequest
public CollectionAdminRequest.Create setPolicy(String policy)
public String getWithCollection()
public CollectionAdminRequest.Create setWithCollection(String withCollection)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.