public interface Selectable extends AssignmentTestable
| Modifier and Type | Interface and Description |
|---|---|
static class |
Selectable.BetweenParenthesesOrWithTuple
Selectable for Selectable between parentheses or tuples. |
static interface |
Selectable.Raw |
static class |
Selectable.RawIdentifier
In the selection clause, the parser cannot differentiate between Maps and UDTs as a column identifier and field
identifier have the same syntax.
|
static class |
Selectable.WithCast |
static class |
Selectable.WithElementSelection
Represents the selection of an element of a collection (eg.
|
static class |
Selectable.WithFieldSelection
Represents the selection of the field of a UDT (eg.
|
static class |
Selectable.WithFunction |
static class |
Selectable.WithList
Selectable for literal Lists. |
static class |
Selectable.WithMapOrUdt
Selectable for literal Maps or UDTs. |
static class |
Selectable.WithSet
Selectable for literal Sets. |
static class |
Selectable.WithSliceSelection
Represents the selection of a slice of a collection (eg.
|
static class |
Selectable.WithTerm |
static class |
Selectable.WithToJSonFunction |
static class |
Selectable.WithTypeHint
Selectable for type hints (e.g. |
static class |
Selectable.WritetimeOrTTL |
AssignmentTestable.TestResult| Modifier and Type | Method and Description |
|---|---|
default int |
addAndGetIndex(ColumnMetadata def,
java.util.List<ColumnMetadata> l) |
AbstractType<?> |
getExactTypeIfKnown(java.lang.String keyspace)
The type of the
Selectable if it can be infered. |
Selector.Factory |
newSelectorFactory(TableMetadata table,
AbstractType<?> expectedType,
java.util.List<ColumnMetadata> defs,
VariableSpecifications boundNames) |
default boolean |
processesSelection()
Checks if any processing is performed on the selected columns,
false otherwise. |
static boolean |
selectColumns(java.util.List<Selectable> selectables,
java.util.function.Predicate<ColumnMetadata> predicate)
Checks if the specified Selectables select columns matching the specified predicate.
|
boolean |
selectColumns(java.util.function.Predicate<ColumnMetadata> predicate)
Checks if this
Selectable select columns matching the specified predicate. |
default ColumnSpecification |
specForElementOrSlice(Selectable selected,
ColumnSpecification receiver,
java.lang.String selectionType) |
default AssignmentTestable.TestResult |
testAssignment(java.lang.String keyspace,
ColumnSpecification receiver) |
Selector.Factory newSelectorFactory(TableMetadata table, AbstractType<?> expectedType, java.util.List<ColumnMetadata> defs, VariableSpecifications boundNames)
AbstractType<?> getExactTypeIfKnown(java.lang.String keyspace)
Selectable if it can be infered.keyspace - the keyspace on which the statement for which this is a
Selectable is on.Selectable 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).boolean selectColumns(java.util.function.Predicate<ColumnMetadata> predicate)
Selectable select columns matching the specified predicate.true if this Selectable select columns matching the specified predicate,
false otherwise.static boolean selectColumns(java.util.List<Selectable> selectables, java.util.function.Predicate<ColumnMetadata> predicate)
selectables - the selectables to check.true if the specified Selectables select columns matching the specified predicate,
false otherwise.default boolean processesSelection()
false otherwise.true if any processing is performed on the selected columns, false otherwise.default AssignmentTestable.TestResult testAssignment(java.lang.String keyspace, ColumnSpecification receiver)
testAssignment in interface AssignmentTestabledefault int addAndGetIndex(ColumnMetadata def, java.util.List<ColumnMetadata> l)
default ColumnSpecification specForElementOrSlice(Selectable selected, ColumnSpecification receiver, java.lang.String selectionType)
Copyright © 2009-2020 The Apache Software Foundation