public enum IndexingMode extends Enum<IndexingMode>
Enum Constant and Description |
---|
CONSISTENT
Index is updated synchronously with a create or update operation.
|
LAZY
Index is updated asynchronously with respect to a create or update operation.
|
NONE
No index is provided.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static IndexingMode |
valueOf(String name)
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.
|
public static final IndexingMode CONSISTENT
With consistent indexing, query behavior is the same as the default consistency level for the collection. The index is always kept up to date with the data.
public static final IndexingMode LAZY
With lazy indexing, queries are eventually consistent. The index is updated when the collection is idle.
public static final IndexingMode NONE
Setting IndexingMode to "NONE" drops the index. Use this if you don't want to maintain the index for a document collection, to save the storage cost or improve the write throughput. Your queries will degenerate to scans of the entire collection.
public static IndexingMode[] values()
for (IndexingMode c : IndexingMode.values()) System.out.println(c);
public static IndexingMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<IndexingMode>
Copyright © 2020 Microsoft Corporation. All rights reserved.