IndexingPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. IndexingPolicy
- com.
Implements
public final class IndexingPolicy
implements JsonSerializable<IndexingPolicy>
Cosmos DB indexing policy.
Constructor Summary
Constructor | Description |
---|---|
IndexingPolicy() |
Creates an instance of Indexing |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
automatic()
Get the automatic property: Indicates if the indexing policy is automatic. |
List<List<Composite |
compositeIndexes()
Get the composite |
List<Excluded |
excludedPaths()
Get the excluded |
static
Indexing |
fromJson(JsonReader jsonReader)
Reads an instance of Indexing |
List<Included |
includedPaths()
Get the included |
Indexing |
indexingMode()
Get the indexing |
List<Spatial |
spatialIndexes()
Get the spatial |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
List<Vector |
vectorIndexes()
Get the vector |
Indexing |
withAutomatic(Boolean automatic)
Set the automatic property: Indicates if the indexing policy is automatic. |
Indexing |
withCompositeIndexes(List<List<CompositePath>> compositeIndexes)
Set the composite |
Indexing |
withExcludedPaths(List<ExcludedPath> excludedPaths)
Set the excluded |
Indexing |
withIncludedPaths(List<IncludedPath> includedPaths)
Set the included |
Indexing |
withIndexingMode(IndexingMode indexingMode)
Set the indexing |
Indexing |
withSpatialIndexes(List<SpatialSpec> spatialIndexes)
Set the spatial |
Indexing |
withVectorIndexes(List<VectorIndex> vectorIndexes)
Set the vector |
Methods inherited from java.lang.Object
Constructor Details
IndexingPolicy
public IndexingPolicy()
Creates an instance of IndexingPolicy class.
Method Details
automatic
public Boolean automatic()
Get the automatic property: Indicates if the indexing policy is automatic.
Returns:
compositeIndexes
public List> compositeIndexes()
Get the compositeIndexes property: List of composite path list.
Returns:
excludedPaths
public List
Get the excludedPaths property: List of paths to exclude from indexing.
Returns:
fromJson
public static IndexingPolicy fromJson(JsonReader jsonReader)
Reads an instance of IndexingPolicy from the JsonReader.
Parameters:
Returns:
Throws:
includedPaths
public List
Get the includedPaths property: List of paths to include in the indexing.
Returns:
indexingMode
public IndexingMode indexingMode()
Get the indexingMode property: Indicates the indexing mode.
Returns:
spatialIndexes
public List
Get the spatialIndexes property: List of spatial specifics.
Returns:
toJson
validate
public void validate()
Validates the instance.
vectorIndexes
public List
Get the vectorIndexes property: List of paths to include in the vector indexing.
Returns:
withAutomatic
public IndexingPolicy withAutomatic(Boolean automatic)
Set the automatic property: Indicates if the indexing policy is automatic.
Parameters:
Returns:
withCompositeIndexes
public IndexingPolicy withCompositeIndexes(List> compositeIndexes)
Set the compositeIndexes property: List of composite path list.
Parameters:
Returns:
withExcludedPaths
public IndexingPolicy withExcludedPaths(List
Set the excludedPaths property: List of paths to exclude from indexing.
Parameters:
Returns:
withIncludedPaths
public IndexingPolicy withIncludedPaths(List
Set the includedPaths property: List of paths to include in the indexing.
Parameters:
Returns:
withIndexingMode
public IndexingPolicy withIndexingMode(IndexingMode indexingMode)
Set the indexingMode property: Indicates the indexing mode.
Parameters:
Returns:
withSpatialIndexes
public IndexingPolicy withSpatialIndexes(List
Set the spatialIndexes property: List of spatial specifics.
Parameters:
Returns:
withVectorIndexes
public IndexingPolicy withVectorIndexes(List
Set the vectorIndexes property: List of paths to include in the vector indexing.
Parameters:
Returns:
Applies to
Azure SDK for Java