Package org.apache.cassandra.cql3
Class AbstractMarker.MultiColumnRaw
java.lang.Object
org.apache.cassandra.cql3.Term.Raw
org.apache.cassandra.cql3.Term.MultiColumnRaw
org.apache.cassandra.cql3.AbstractMarker.MultiColumnRaw
- All Implemented Interfaces:
AssignmentTestable
- Direct Known Subclasses:
Tuples.INRaw,Tuples.Raw
- Enclosing class:
- AbstractMarker
A MultiColumnRaw version of AbstractMarker.Raw
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.AssignmentTestable
AssignmentTestable.TestResult -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetText()prepare(String keyspace, ColumnSpecification receiver) This method validates this RawTerm is valid for provided column specification and "prepare" this RawTerm, returning the resulting prepared Term.testAssignment(String keyspace, ColumnSpecification receiver) Methods inherited from class org.apache.cassandra.cql3.Term.MultiColumnRaw
prepareMethods inherited from class org.apache.cassandra.cql3.Term.Raw
equals, getCompatibleTypeIfKnown, getExactTypeIfKnown, hashCode, toString
-
Field Details
-
bindIndex
protected final int bindIndex
-
-
Constructor Details
-
MultiColumnRaw
public MultiColumnRaw(int bindIndex)
-
-
Method Details
-
prepare
public Term.NonTerminal prepare(String keyspace, ColumnSpecification receiver) throws InvalidRequestException Description copied from class:Term.RawThis method validates this RawTerm is valid for provided column specification and "prepare" this RawTerm, returning the resulting prepared Term.- Specified by:
preparein classTerm.Rawreceiver- the "column" this RawTerm is supposed to be a value of. Note that the ColumnSpecification may not correspond to a real column in the case this RawTerm describe a list index or a map key, etc...- Returns:
- the prepared term.
- Throws:
InvalidRequestException
-
testAssignment
- Returns:
- whether this object can be assigned to the provided receiver. We distinguish between 3 values: - EXACT_MATCH if this object is exactly of the type expected by the receiver - WEAKLY_ASSIGNABLE if this object is not exactly the expected type but is assignable nonetheless - NOT_ASSIGNABLE if it's not assignable Most caller should just call the isAssignable() method on the result, though functions have a use for testing "strong" equality to decide the most precise overload to pick when multiple could match.
-
getText
-