public static enum SearchResult.CountPolicy extends Enum<SearchResult.CountPolicy>
OperationOptionsBuilder#setTotalPagedResultsPolicy(CountPolicy),
SearchResult.getTotalPagedResultsPolicy()| Enum Constant and Description |
|---|
ESTIMATE
Estimated count may be used.
|
EXACT
Exact count is required.
|
NONE
There should be no count returned.
|
| Modifier and Type | Method and Description |
|---|---|
static SearchResult.CountPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchResult.CountPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchResult.CountPolicy NONE
public static final SearchResult.CountPolicy ESTIMATE
EXACT count or
NONE. It should be known to the client which was used as in
SearchResult.getTotalPagedResultsPolicy()public static final SearchResult.CountPolicy EXACT
public static SearchResult.CountPolicy[] values()
for (SearchResult.CountPolicy c : SearchResult.CountPolicy.values()) System.out.println(c);
public static SearchResult.CountPolicy 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 nullCopyright © 2018–2025. All rights reserved.