Class Selectable.WithElementSelection
java.lang.Object
org.apache.cassandra.cql3.selection.Selectable.WithElementSelection
- All Implemented Interfaces:
AssignmentTestable,Selectable
- Enclosing interface:
- Selectable
Represents the selection of an element of a collection (eg. c[x]).
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.cassandra.cql3.AssignmentTestable
AssignmentTestable.TestResultNested classes/interfaces inherited from interface org.apache.cassandra.cql3.selection.Selectable
Selectable.BetweenParenthesesOrWithTuple, Selectable.RawIdentifier, Selectable.WithArrayLiteral, Selectable.WithCast, Selectable.WithElementSelection, Selectable.WithFieldSelection, Selectable.WithFunction, Selectable.WithList, Selectable.WithMapOrUdt, Selectable.WithSet, Selectable.WithSliceSelection, Selectable.WithTerm, Selectable.WithTypeHint, Selectable.WithVector, Selectable.WritetimeOrTTL -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionAbstractType<?>getExactTypeIfKnown(String keyspace) The type of theSelectableif it can be infered.newSelectorFactory(TableMetadata cfm, AbstractType<?> expectedType, List<ColumnMetadata> defs, VariableSpecifications boundNames) booleanselectColumns(Predicate<ColumnMetadata> predicate) Checks if thisSelectableselect columns matching the specified predicate.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.cql3.selection.Selectable
addAndGetIndex, getCompatibleTypeIfKnown, processesSelection, specForElementOrSlice, testAssignment
-
Field Details
-
selected
-
element
-
-
Method Details
-
toString
-
newSelectorFactory
public Selector.Factory newSelectorFactory(TableMetadata cfm, AbstractType<?> expectedType, List<ColumnMetadata> defs, VariableSpecifications boundNames) - Specified by:
newSelectorFactoryin interfaceSelectable
-
getExactTypeIfKnown
Description copied from interface:SelectableThe type of theSelectableif it can be infered.- Specified by:
getExactTypeIfKnownin interfaceSelectable- Parameters:
keyspace- the keyspace on which the statement for which this is aSelectableis on.- Returns:
- the type of this
Selectableif inferrable, ornullotherwise (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 returnnulltoo).
-
selectColumns
Description copied from interface:SelectableChecks if thisSelectableselect columns matching the specified predicate.- Specified by:
selectColumnsin interfaceSelectable- Returns:
trueif thisSelectableselect columns matching the specified predicate,falseotherwise.
-