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, CollectionAdminRequest.UtilizeNode
SolrRequest.METHOD
MapWriter.EntryWriter
Modifier and Type | Field and Description |
---|---|
protected Boolean |
autoAddReplicas |
protected String |
configName |
protected String |
createNodeSet |
protected Integer |
maxShardsPerNode |
protected Integer |
nrtReplicas |
protected Integer |
numShards |
protected String |
policy |
protected Integer |
pullReplicas |
protected String |
routerField |
protected String |
routerName |
protected String |
shards |
protected Integer |
stateFormat |
protected Integer |
tlogReplicas |
collection
asyncId, waitForFinalState
action
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
createResponse, getAsyncId, processAndWait, processAndWait, processAsync, processAsync, setAsyncId, setWaitForFinalState
addProperties, addReplicaByRouteKey, addReplicaProperty, addReplicaToShard, addReplicaToShard, addRole, backupCollection, balanceReplicaProperty, createAlias, createCollection, createCollection, createCollection, createCollectionWithImplicitRouter, createCollectionWithImplicitRouter, createShard, deleteAlias, deleteAllAsyncIds, deleteAsyncId, deleteCollection, deleteReplica, deleteReplicaProperty, deleteReplicasFromAllShards, deleteReplicasFromShard, deleteShard, forceLeaderElection, getClusterStatus, getOverseerStatus, getV2Request, listCollections, migrateCollectionFormat, migrateData, rebalanceLeaders, reloadCollection, removeRole, requestStatus, restoreCollection, setClusterProperty, splitShard, waitForAsyncRequest, writeMap
getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, process, process, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUseV2
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 autoAddReplicas
protected Integer stateFormat
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 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 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)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.