public class CreateIndexRequest
extends java.lang.Object
| Constructor and Description |
|---|
CreateIndexRequest() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getDimension()
The dimensions of the vectors to be inserted in the index
|
java.lang.String |
getIndexName()
The name of the index to be created.
|
IndexMetadataConfig |
getMetadataConfig()
Get metadataConfig
|
java.lang.String |
getMetric()
The distance metric to be used for similarity search.
|
java.lang.Integer |
getPods()
The number of pods for the index to use,including replicas.
|
java.lang.String |
getPodType()
The type of pod to use.
|
java.lang.Integer |
getReplicas()
The number of replicas.
|
java.lang.String |
getSourceCollection()
The name of the collection to create an index from
|
void |
setDimension(java.lang.Integer dimension) |
void |
setIndexName(java.lang.String indexName) |
void |
setMetadataConfig(IndexMetadataConfig metadataConfig) |
void |
setMetric(java.lang.String metric) |
void |
setPods(java.lang.Integer pods) |
void |
setPodType(java.lang.String podType) |
void |
setReplicas(java.lang.Integer replicas) |
void |
setSourceCollection(java.lang.String sourceCollection) |
java.lang.String |
toJson() |
static void |
validateJsonObject(com.fasterxml.jackson.databind.JsonNode jsonNode) |
CreateIndexRequest |
withDimension(java.lang.Integer dimension) |
CreateIndexRequest |
withIndexName(java.lang.String name) |
CreateIndexRequest |
withMetadataConfig(IndexMetadataConfig metadataConfig) |
CreateIndexRequest |
withMetric(java.lang.String metric) |
CreateIndexRequest |
withPods(java.lang.Integer pods) |
CreateIndexRequest |
withPodType(java.lang.String podType) |
CreateIndexRequest |
withReplicas(java.lang.Integer replicas) |
CreateIndexRequest |
withSourceCollection(java.lang.String sourceCollection) |
public CreateIndexRequest withIndexName(java.lang.String name)
@Nonnull public java.lang.String getIndexName()
public void setIndexName(java.lang.String indexName)
public CreateIndexRequest withDimension(java.lang.Integer dimension)
@Nonnull public java.lang.Integer getDimension()
public void setDimension(java.lang.Integer dimension)
public CreateIndexRequest withMetric(java.lang.String metric)
public java.lang.String getMetric()
public void setMetric(java.lang.String metric)
public CreateIndexRequest withPods(java.lang.Integer pods)
public java.lang.Integer getPods()
public void setPods(java.lang.Integer pods)
public CreateIndexRequest withReplicas(java.lang.Integer replicas)
public java.lang.Integer getReplicas()
public void setReplicas(java.lang.Integer replicas)
public CreateIndexRequest withPodType(java.lang.String podType)
public java.lang.String getPodType()
public void setPodType(java.lang.String podType)
public CreateIndexRequest withMetadataConfig(IndexMetadataConfig metadataConfig)
@Nullable public IndexMetadataConfig getMetadataConfig()
public void setMetadataConfig(IndexMetadataConfig metadataConfig)
public CreateIndexRequest withSourceCollection(java.lang.String sourceCollection)
@Nullable public java.lang.String getSourceCollection()
public void setSourceCollection(java.lang.String sourceCollection)
public java.lang.String toJson()
throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static void validateJsonObject(com.fasterxml.jackson.databind.JsonNode jsonNode)