public static class FunctionCall.Raw extends Term.Raw
AssignmentTestable.TestResult
Constructor and Description |
---|
Raw(FunctionName name,
java.util.List<Term.Raw> terms) |
Modifier and Type | Method and Description |
---|---|
AbstractType<?> |
getExactTypeIfKnown(java.lang.String keyspace)
The type of the
term if it can be infered. |
java.lang.String |
getText() |
static FunctionCall.Raw |
newCast(Term.Raw raw,
CQL3Type type) |
static FunctionCall.Raw |
newNegation(Term.Raw raw) |
static FunctionCall.Raw |
newOperation(char operator,
Term.Raw left,
Term.Raw right) |
Term |
prepare(java.lang.String keyspace,
ColumnSpecification receiver)
This method validates this RawTerm is valid for provided column
specification and "prepare" this RawTerm, returning the resulting
prepared Term.
|
AssignmentTestable.TestResult |
testAssignment(java.lang.String keyspace,
ColumnSpecification receiver) |
public Raw(FunctionName name, java.util.List<Term.Raw> terms)
public static FunctionCall.Raw newOperation(char operator, Term.Raw left, Term.Raw right)
public static FunctionCall.Raw newNegation(Term.Raw raw)
public static FunctionCall.Raw newCast(Term.Raw raw, CQL3Type type)
public Term prepare(java.lang.String keyspace, ColumnSpecification receiver) throws InvalidRequestException
Term.Raw
prepare
in class Term.Raw
receiver
- 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...InvalidRequestException
public AssignmentTestable.TestResult testAssignment(java.lang.String keyspace, ColumnSpecification receiver)
public AbstractType<?> getExactTypeIfKnown(java.lang.String keyspace)
Term.Raw
term
if it can be infered.getExactTypeIfKnown
in class Term.Raw
keyspace
- the keyspace on which the statement containing this term is on.Term
if inferrable, or null
otherwise (for instance, the type isn't inferable for a bind marker. Even for
literals, the exact type is not inferrable since they are valid for many
different types and so this will return null
too).Copyright © 2009-2022 The Apache Software Foundation