public interface Term extends CqlSnippet
For example, it can be used:
range selection
;
relation
.
QueryBuilderDsl
, such as
literal
, tuple
,
etc.Modifier and Type | Method and Description |
---|---|
boolean |
isIdempotent()
Whether the term is idempotent.
|
appendTo
boolean isIdempotent()
That is, whether it always produces the same result when used multiple times. For example,
the literal 1
is idempotent, the function call now()
isn't.
This is used internally by the query builder to compute the Request.isIdempotent()
flag on the statements generated by BuildableQuery.build()
. If a term is ambiguous (for
example a raw snippet or a call to a user function), the builder is pessimistic and assumes the
term is not idempotent.
Copyright © 2017–2018. All rights reserved.