Package org.apache.cassandra.cql3
Interface Terms
public interface Terms
A set of
Terms-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddFunctions(Iterable<Term> terms, List<Function> functions) Adds all functions (native and user-defined) of the specified terms to the list.voidaddFunctionsTo(List<Function> functions) Adds all functions (native and user-defined) used by any of the terms to the specified list.static ByteBufferasBytes(String keyspace, String term, AbstractType type) bind(QueryOptions options) Bind the values in these terms to the values contained inoptions.bindAndGet(QueryOptions options) voidcollectMarkerSpecification(VariableSpecifications boundNames) Collects the column specifications for the bind variables in the terms.static TermsCreates aTermscontaining a set ofTerm.static TermsCreates aTermscontaining a singleTerm.static TermsofListMarker(Lists.Marker marker, AbstractType<?> type) Creates aTermsfor the specified list marker.
-
Field Details
-
UNSET_LIST
TheListreturned when the list was not set.
-
-
Method Details
-
addFunctionsTo
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
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
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
-
ofListMarker
Creates aTermsfor the specified list marker.- Parameters:
marker- the list markertype- the element type- Returns:
- a
Termsfor the specified list marker
-
of
Creates aTermscontaining a singleTerm.- Parameters:
term- theTerm- Returns:
- a
Termscontaining a singleTerm.
-
of
Creates aTermscontaining a set ofTerm.- Parameters:
term- theTerm- Returns:
- a
Termscontaining a set ofTerm.
-
addFunctions
Adds all functions (native and user-defined) of the specified terms to the list.- Parameters:
functions- the list to add to
-
asBytes
-