Package org.apache.cassandra.cql3
Interface Terms
-
public interface TermsA set ofTerms
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.ListUNSET_LISTTheListreturned when the list was not set.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static voidaddFunctions(java.lang.Iterable<Term> terms, java.util.List<Function> functions)Adds all functions (native and user-defined) of the specified terms to the list.voidaddFunctionsTo(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.ByteBufferasBytes(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 inoptions.java.util.List<java.nio.ByteBuffer>bindAndGet(QueryOptions options)voidcollectMarkerSpecification(VariableSpecifications boundNames)Collects the column specifications for the bind variables in the terms.static Termsof(java.util.List<Term> terms)Creates aTermscontaining a set ofTerm.static Termsof(Term term)Creates aTermscontaining a singleTerm.static TermsofListMarker(Lists.Marker marker, AbstractType<?> type)Creates aTermsfor the specified list marker.
-
-
-
Method Detail
-
addFunctionsTo
void addFunctionsTo(java.util.List<Function> functions)
Adds all functions (native and user-defined) used by any of the terms to the specified list.- Parameters:
functions- the list to add to
-
collectMarkerSpecification
void collectMarkerSpecification(VariableSpecifications boundNames)
Collects the column specifications for the bind variables in the terms. This is obviously a no-op if the terms are Terminal.- Parameters:
boundNames- the variables specification where to collect the bind variables of the terms in.
-
bind
java.util.List<Term.Terminal> bind(QueryOptions options)
Bind the values in these terms to the values contained inoptions. This is obviously a no-op if the term is Terminal.- Parameters:
options- the values to bind markers to.- Returns:
- the result of binding all the variables of these NonTerminals or an
UNSET_LISTif the term was unset.
-
bindAndGet
java.util.List<java.nio.ByteBuffer> bindAndGet(QueryOptions options)
-
ofListMarker
static Terms ofListMarker(Lists.Marker marker, AbstractType<?> type)
Creates aTermsfor the specified list marker.- Parameters:
marker- the list markertype- the element type- Returns:
- a
Termsfor the specified list marker
-
of
static Terms of(Term term)
Creates aTermscontaining a singleTerm.- Parameters:
term- theTerm- Returns:
- a
Termscontaining a singleTerm.
-
of
static Terms of(java.util.List<Term> terms)
Creates aTermscontaining a set ofTerm.- Parameters:
term- theTerm- Returns:
- a
Termscontaining a set ofTerm.
-
addFunctions
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.- Parameters:
functions- the list to add to
-
asBytes
static java.nio.ByteBuffer asBytes(java.lang.String keyspace, java.lang.String term, AbstractType type)
-
-