CosmosVectorIndexSpec Class
- java.
lang. Object - com.
azure. cosmos. models. CosmosVectorIndexSpec
- com.
public final class CosmosVectorIndexSpec
Vector Indexes spec for Azure CosmosDB service.
Constructor Summary
| Constructor | Description |
|---|---|
| CosmosVectorIndexSpec() |
Constructor |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Integer |
getIndexingSearchListSize()
Gets the indexing search list size |
| String |
getPath()
Gets path. |
| Integer |
getQuantizationSizeInBytes()
Gets the quantization byte size |
| String |
getType()
Gets the vector index type for the vector index |
| List<String> |
getVectorIndexShardKeys()
Gets the vector indexing shard keys |
|
Cosmos |
setIndexingSearchListSize(Integer indexingSearchListSize)
Sets the indexing search list size |
|
Cosmos |
setPath(String path)
Sets path. |
|
Cosmos |
setQuantizationSizeInBytes(Integer quantizationByteSize)
Sets the quantization byte size |
|
Cosmos |
setType(String type)
Sets the vector index type for the vector index |
|
Cosmos |
setVectorIndexShardKeys(List<String> vectorIndexShardKeys)
Sets the vector indexing shard keys |
Methods inherited from java.lang.Object
Constructor Details
CosmosVectorIndexSpec
public CosmosVectorIndexSpec()
Constructor
Method Details
getIndexingSearchListSize
public Integer getIndexingSearchListSize()
Gets the indexing search list size
Returns:
getPath
public String getPath()
Gets path.
Returns:
getQuantizationSizeInBytes
public Integer getQuantizationSizeInBytes()
Gets the quantization byte size
Returns:
getType
public String getType()
Gets the vector index type for the vector index
Returns:
getVectorIndexShardKeys
public List<String> getVectorIndexShardKeys()
Gets the vector indexing shard keys
Returns:
setIndexingSearchListSize
public CosmosVectorIndexSpec setIndexingSearchListSize(Integer indexingSearchListSize)
Sets the indexing search list size
Parameters:
Returns:
setPath
public CosmosVectorIndexSpec setPath(String path)
Sets path.
Parameters:
Returns:
setQuantizationSizeInBytes
public CosmosVectorIndexSpec setQuantizationSizeInBytes(Integer quantizationByteSize)
Sets the quantization byte size
Parameters:
Returns:
setType
public CosmosVectorIndexSpec setType(String type)
Sets the vector index type for the vector index
Parameters:
Returns:
setVectorIndexShardKeys
public CosmosVectorIndexSpec setVectorIndexShardKeys(List<String> vectorIndexShardKeys)
Sets the vector indexing shard keys
Parameters:
Returns: