IndexingPolicy Class
- java.
lang. Object - com.
azure. cosmos. models. IndexingPolicy
- com.
public final class IndexingPolicy
Represents the indexing policy configuration for a container in the Azure Cosmos DB database service.
Constructor Summary
Constructor | Description |
---|---|
IndexingPolicy() |
Constructor. |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
IndexingPolicy
public IndexingPolicy()
Constructor.
Method Details
getCompositeIndexes
public List<>
Gets the composite indexes for additional indexes.
Returns:
getExcludedPaths
public List
Gets the paths that are not indexed.
Returns:
getIncludedPaths
public List
Gets the paths that are chosen to be indexed by the user.
Returns:
getIndexingMode
public IndexingMode getIndexingMode()
Gets the indexing mode (consistent or lazy).
Returns:
getSpatialIndexes
public List
Gets the spatial indexes for additional indexes.
Returns:
getVectorIndexes
public List
Gets the vector indexes.
Returns:
isAutomatic
public Boolean isAutomatic()
Gets whether automatic indexing is enabled for a container.
In automatic indexing, items can be explicitly excluded from indexing using RequestOptions. In manual indexing, items can be explicitly included.
Returns:
setAutomatic
public IndexingPolicy setAutomatic(boolean automatic)
Sets whether automatic indexing is enabled for a container.
In automatic indexing, items can be explicitly excluded from indexing using RequestOptions. In manual indexing, items can be explicitly included.
Parameters:
Returns:
setCompositeIndexes
public IndexingPolicy setCompositeIndexes(List<>
Sets the composite indexes for additional indexes.
Parameters:
Returns:
setExcludedPaths
public IndexingPolicy setExcludedPaths(List
Sets excluded paths.
Parameters:
Returns:
setIncludedPaths
public IndexingPolicy setIncludedPaths(List
Sets included paths.
Parameters:
Returns:
setIndexingMode
public IndexingPolicy setIndexingMode(IndexingMode indexingMode)
Sets the indexing mode (consistent or lazy).
Parameters:
Returns:
setSpatialIndexes
public IndexingPolicy setSpatialIndexes(List
Sets the spatial indexes for additional indexes.
Parameters:
Returns:
setVectorIndexes
public IndexingPolicy setVectorIndexes(List
Sets the vector indexes. Example of the vectorIndexes: "vectorIndexes": [ { "path": "/vector1", "type": "diskANN" }, { "path": "/vector1", "type": "flat" }, { "path": "/vector2", "type": "quantizedFlat" }]
Parameters:
Returns:
Applies to
Azure SDK for Java
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour