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.Create, CollectionAdminRequest.CreateAlias, CollectionAdminRequest.CreateShard, CollectionAdminRequest.CreateSnapshot, CollectionAdminRequest.Delete, CollectionAdminRequest.DeleteAlias, CollectionAdminRequest.DeleteNode, CollectionAdminRequest.DeleteReplica, CollectionAdminRequest.DeleteReplicaProp, CollectionAdminRequest.DeleteShard, CollectionAdminRequest.DeleteSnapshot, CollectionAdminRequest.DeleteStatus, CollectionAdminRequest.ForceLeader, CollectionAdminRequest.List, CollectionAdminRequest.ListAliases, CollectionAdminRequest.ListSnapshots, CollectionAdminRequest.Migrate, CollectionAdminRequest.MigrateClusterState, CollectionAdminRequest.MoveReplica, CollectionAdminRequest.OverseerStatus, CollectionAdminRequest.RebalanceLeaders, CollectionAdminRequest.Reload, CollectionAdminRequest.RemoveRole, CollectionAdminRequest.ReplaceNode, CollectionAdminRequest.RequestStatus, CollectionAdminRequest.RequestStatusResponse, CollectionAdminRequest.Restore, CollectionAdminRequest.ShardSpecificAdminRequest, CollectionAdminRequest.SplitShard
SolrRequest.METHOD
Modifier and Type | Field and Description |
---|---|
protected Boolean |
autoAddReplicas |
protected String |
configName |
protected String |
createNodeSet |
protected Integer |
maxShardsPerNode |
protected Integer |
numShards |
protected Integer |
replicationFactor |
protected String |
routerField |
protected String |
routerName |
protected String |
shards |
protected Integer |
stateFormat |
collection
asyncId
action
SUPPORTED_METHODS
Constructor and Description |
---|
Create()
|
getCollectionName
createResponse, getAsyncId, processAndWait, processAndWait, processAsync, processAsync
addProperties, addReplicaByRouteKey, addReplicaProperty, addReplicaToShard, addRole, backupCollection, balanceReplicaProperty, createAlias, createCollection, createCollection, createCollectionWithImplicitRouter, createShard, deleteAlias, deleteAllAsyncIds, deleteAsyncId, deleteCollection, deleteReplica, deleteReplicaProperty, deleteReplicasFromAllShards, deleteReplicasFromShard, deleteShard, forceLeaderElection, getClusterStatus, getContentStreams, getOverseerStatus, listCollections, migrateCollectionFormat, migrateData, rebalanceLeaders, reloadCollection, removeRole, requestStatus, restoreCollection, setClusterProperty, splitShard, waitForAsyncRequest
getBasicAuthPassword, getBasicAuthUser, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, process, process, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback
protected String configName
protected String createNodeSet
protected String routerName
protected String shards
protected String routerField
protected Integer numShards
protected Integer maxShardsPerNode
protected Integer replicationFactor
protected Boolean autoAddReplicas
protected Integer stateFormat
@Deprecated public Create()
@Deprecated public CollectionAdminRequest.Create setConfigName(String config)
public CollectionAdminRequest.Create setCreateNodeSet(String nodeSet)
public CollectionAdminRequest.Create setRouterName(String routerName)
public CollectionAdminRequest.Create setRouterField(String routerField)
@Deprecated public CollectionAdminRequest.Create setNumShards(Integer numShards)
public CollectionAdminRequest.Create setMaxShardsPerNode(Integer numShards)
public CollectionAdminRequest.Create setAutoAddReplicas(boolean autoAddReplicas)
@Deprecated 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 String getConfigName()
public String getCreateNodeSet()
public String getRouterName()
public String getShards()
public Integer getNumShards()
public Integer getMaxShardsPerNode()
public Integer getReplicationFactor()
public Boolean getAutoAddReplicas()
public Integer getStateFormat()
public CollectionAdminRequest.Create setShards(String shards)
IllegalArgumentException
- if any of the shard names contain invalid characters.@Deprecated public CollectionAdminRequest.Create setCollectionName(String collectionName) throws SolrException
setCollectionName
in class CollectionAdminRequest.AsyncCollectionSpecificAdminRequest
IllegalArgumentException
- if the collection name contains invalid characters.SolrException
@Deprecated public CollectionAdminRequest.Create setAsyncId(String id)
setAsyncId
in class CollectionAdminRequest.AsyncCollectionAdminRequest
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
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.