@Target(value=METHOD) @Retention(value=RUNTIME) public @interface QueryParameters
Accessor
interface.
All the parameters of this annotation are optional, and when not provided default to whatever
default the Cluster
instance used underneath are (those set in
Configuration.getQueryOptions()
).Modifier and Type | Optional Element and Description |
---|---|
String |
consistency
The consistency level to use for the operation.
|
int |
fetchSize
The fetch size to use for paging the result of this operation.
|
boolean[] |
idempotent
Whether the operation is idempotent or not.
|
boolean |
tracing
Whether tracing should be enabled for this operation.
|
public abstract String consistency
public abstract int fetchSize
public abstract boolean tracing
public abstract boolean[] idempotent
true
the operation is assumed idempotent;
when set to false
, it is assumed that it is not.
If a value of true
or false
is provided,
the underlying Statement
will have its idempotent flag
set accordingly.
When this attribute is set to its default
(an empty array), it means that the statement's idempotent flag
will not be set, and its idempotence will be inferred
from QueryOptions.getDefaultIdempotence()
.
This attribute is declared as a boolean array to allow
for "unset" values, but it can only contain at most
one element.true
if the operation is idempotent, false
otherwise.