Package com.azure.cosmos.models
Enum IndexingMode
- All Implemented Interfaces:
Serializable
,Comparable<IndexingMode>
,java.lang.constant.Constable
Specifies the supported indexing modes in the Azure Cosmos DB database service.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndex is updated synchronously with a create or update operation.Index is updated asynchronously with respect to a create or update operation.No index is provided. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
static IndexingMode
Returns the enum constant of this type with the specified name.static IndexingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CONSISTENT
Index is updated synchronously with a create or update operation.With consistent indexing, query behavior is the same as the default consistency level for the container. The index is always kept up to date with the data.
-
LAZY
Index is updated asynchronously with respect to a create or update operation.With lazy indexing, queries are eventually consistent. The index is updated when the container is idle.
-
NONE
No index is provided.Setting IndexingMode to "NONE" drops the index. Use this if you don't want to maintain the index for a item container, to save the storage cost or improve the write throughput. Your queries will degenerate to scans of the entire container.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<IndexingMode>
-