public interface Terms
Terms| Modifier and Type | Field and Description |
|---|---|
static java.util.List |
UNSET_LIST
The
List returned when the list was not set. |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFunctions(java.lang.Iterable<Term> terms,
java.util.List<Function> functions)
Adds all functions (native and user-defined) of the specified terms to the list.
|
void |
addFunctionsTo(java.util.List<Function> functions)
Adds all functions (native and user-defined) used by any of the terms to the specified list.
|
static java.nio.ByteBuffer |
asBytes(java.lang.String keyspace,
java.lang.String term,
AbstractType type) |
java.util.List<Term.Terminal> |
bind(QueryOptions options)
Bind the values in these terms to the values contained in
options. |
java.util.List<java.nio.ByteBuffer> |
bindAndGet(QueryOptions options) |
void |
collectMarkerSpecification(VariableSpecifications boundNames)
Collects the column specifications for the bind variables in the terms.
|
static Terms |
of(java.util.List<Term> terms)
Creates a
Terms containing a set of Term. |
static Terms |
of(Term term)
Creates a
Terms containing a single Term. |
static Terms |
ofListMarker(Lists.Marker marker,
AbstractType<?> type)
Creates a
Terms for the specified list marker. |
static final java.util.List UNSET_LIST
List returned when the list was not set.void addFunctionsTo(java.util.List<Function> functions)
functions - the list to add tovoid collectMarkerSpecification(VariableSpecifications boundNames)
boundNames - the variables specification where to collect the
bind variables of the terms in.java.util.List<Term.Terminal> bind(QueryOptions options)
options.
This is obviously a no-op if the term is Terminal.options - the values to bind markers to.UNSET_LIST if the term
was unset.java.util.List<java.nio.ByteBuffer> bindAndGet(QueryOptions options)
static Terms ofListMarker(Lists.Marker marker, AbstractType<?> type)
Terms for the specified list marker.marker - the list markertype - the element typeTerms for the specified list markerstatic Terms of(Term term)
Terms containing a single Term.term - the TermTerms containing a single Term.static Terms of(java.util.List<Term> terms)
Terms containing a set of Term.term - the TermTerms containing a set of Term.static void addFunctions(java.lang.Iterable<Term> terms, java.util.List<Function> functions)
functions - the list to add tostatic java.nio.ByteBuffer asBytes(java.lang.String keyspace,
java.lang.String term,
AbstractType type)
Copyright © 2009-2022 The Apache Software Foundation