Class CollectionsApi.CreateCollection
- java.lang.Object
-
- org.apache.solr.client.solrj.SolrRequest<CollectionsApi.CreateCollectionResponse>
-
- org.apache.solr.client.solrj.request.CollectionsApi.CreateCollection
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- CollectionsApi
public static class CollectionsApi.CreateCollection extends SolrRequest<CollectionsApi.CreateCollectionResponse>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequest
SolrRequest.METHOD, SolrRequest.SolrClientContext, SolrRequest.SolrRequestType
-
-
Field Summary
-
Fields inherited from class org.apache.solr.client.solrj.SolrRequest
SUPPORTED_METHODS, useBinaryV2, usev2
-
-
Constructor Summary
Constructors Constructor Description CreateCollection()
Create a CreateCollection request object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CollectionsApi.CreateCollectionResponse
createResponse(SolrClient client)
Create a new SolrResponse to hold the response from the serverRequestWriter.ContentWriter
getContentWriter(String expectedType)
If a request object wants to do a push write, implement this method.SolrParams
getParams()
String
getRequestType()
This method defines the type of this Solr request.ResponseParser
getResponseParser()
void
setAlias(String alias)
void
setAsync(String async)
void
setConfig(String config)
void
setCreateReplicas(Boolean createReplicas)
void
setName(String name)
void
setNodeSet(List<String> nodeSet)
void
setNrtReplicas(Integer nrtReplicas)
void
setNumShards(Integer numShards)
void
setPerReplicaState(Boolean perReplicaState)
void
setProperties(Map<String,String> properties)
void
setPullReplicas(Integer pullReplicas)
void
setReplicationFactor(Integer replicationFactor)
void
setRouter(CreateCollectionRouterProperties router)
void
setShardNames(List<String> shardNames)
void
setShuffleNodes(Boolean shuffleNodes)
void
setTlogReplicas(Integer tlogReplicas)
void
setWaitForFinalState(Boolean waitForFinalState)
-
Methods inherited from class org.apache.solr.client.solrj.SolrRequest
addHeader, addHeaders, getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getHeaders, getMethod, getPath, getPreferredNodes, getQueryParams, getStreamingResponseCallback, getUserPrincipal, process, process, requiresCollection, setBasePath, setBasicAuthCredentials, setMethod, setPath, setPreferredNodes, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2
-
-
-
-
Method Detail
-
setName
public void setName(String name)
-
setReplicationFactor
public void setReplicationFactor(Integer replicationFactor)
-
setConfig
public void setConfig(String config)
-
setNumShards
public void setNumShards(Integer numShards)
-
setPullReplicas
public void setPullReplicas(Integer pullReplicas)
-
setTlogReplicas
public void setTlogReplicas(Integer tlogReplicas)
-
setNrtReplicas
public void setNrtReplicas(Integer nrtReplicas)
-
setWaitForFinalState
public void setWaitForFinalState(Boolean waitForFinalState)
-
setPerReplicaState
public void setPerReplicaState(Boolean perReplicaState)
-
setAlias
public void setAlias(String alias)
-
setAsync
public void setAsync(String async)
-
setRouter
public void setRouter(CreateCollectionRouterProperties router)
-
setCreateReplicas
public void setCreateReplicas(Boolean createReplicas)
-
setShuffleNodes
public void setShuffleNodes(Boolean shuffleNodes)
-
getContentWriter
public RequestWriter.ContentWriter getContentWriter(String expectedType)
Description copied from class:SolrRequest
If a request object wants to do a push write, implement this method.- Overrides:
getContentWriter
in classSolrRequest<CollectionsApi.CreateCollectionResponse>
- Parameters:
expectedType
- This is the type that the RequestWriter would like to get. But, it is OK to send any format
-
getRequestType
public String getRequestType()
Description copied from class:SolrRequest
This method defines the type of this Solr request.- Specified by:
getRequestType
in classSolrRequest<CollectionsApi.CreateCollectionResponse>
-
getParams
public SolrParams getParams()
- Specified by:
getParams
in classSolrRequest<CollectionsApi.CreateCollectionResponse>
-
createResponse
protected CollectionsApi.CreateCollectionResponse createResponse(SolrClient client)
Description copied from class:SolrRequest
Create a new SolrResponse to hold the response from the server- Specified by:
createResponse
in classSolrRequest<CollectionsApi.CreateCollectionResponse>
- Parameters:
client
- theSolrClient
the request will be sent to
-
getResponseParser
public ResponseParser getResponseParser()
- Overrides:
getResponseParser
in classSolrRequest<CollectionsApi.CreateCollectionResponse>
- Returns:
- The
ResponseParser
-
-