Interface ExecutableFindByQueryOperation.FindByQueryWithConsistency<T>
- Type Parameters:
T- the entity type to use for the results.
- All Superinterfaces:
ExecutableFindByQueryOperation.FindByQueryConsistentWith<T>, ExecutableFindByQueryOperation.FindByQueryInCollection<T>, ExecutableFindByQueryOperation.FindByQueryInScope<T>, ExecutableFindByQueryOperation.FindByQueryWithOptions<T>, ExecutableFindByQueryOperation.FindByQueryWithQuery<T>, ExecutableFindByQueryOperation.TerminatingFindByQuery<T>, InCollection<T>, InScope<T>, OneAndAll<T>, WithConsistency<T>, WithQuery<T>, WithQueryOptions<T>
- All Known Subinterfaces:
ExecutableFindByQueryOperation.ExecutableFindByQuery<T>, ExecutableFindByQueryOperation.FindByQueryWithDistinct<T>, ExecutableFindByQueryOperation.FindByQueryWithProjecting<T>, ExecutableFindByQueryOperation.FindByQueryWithProjection<T>
- Enclosing interface:
ExecutableFindByQueryOperation
public static interface ExecutableFindByQueryOperation.FindByQueryWithConsistency<T>
extends ExecutableFindByQueryOperation.FindByQueryConsistentWith<T>, WithConsistency<T>
Fluent method to specify scan consistency. Scan consistency may also come from an annotation.
- Since:
- 2.0
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionwithConsistency(com.couchbase.client.java.query.QueryScanConsistency scanConsistency) Allows to override the default scan consistency.Methods inherited from interface ExecutableFindByQueryOperation.FindByQueryConsistentWith
consistentWithMethods inherited from interface ExecutableFindByQueryOperation.FindByQueryInCollection
inCollectionMethods inherited from interface ExecutableFindByQueryOperation.FindByQueryInScope
inScopeMethods inherited from interface ExecutableFindByQueryOperation.FindByQueryWithOptions
withOptionsMethods inherited from interface ExecutableFindByQueryOperation.FindByQueryWithQuery
matching, matchingMethods inherited from interface ExecutableFindByQueryOperation.TerminatingFindByQuery
all, count, exists, first, firstValue, one, oneValue, stream
-
Method Details
-
withConsistency
ExecutableFindByQueryOperation.FindByQueryConsistentWith<T> withConsistency(com.couchbase.client.java.query.QueryScanConsistency scanConsistency) Allows to override the default scan consistency.- Specified by:
withConsistencyin interfaceWithConsistency<T>- Parameters:
scanConsistency- the custom scan consistency to use for this query.
-