Class Selectable.WithFunction
- java.lang.Object
-
- org.apache.cassandra.cql3.selection.Selectable.WithFunction
-
- All Implemented Interfaces:
AssignmentTestable
,Selectable
- Enclosing interface:
- Selectable
public static class Selectable.WithFunction extends java.lang.Object implements Selectable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Selectable.WithFunction.Raw
-
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.AssignmentTestable
AssignmentTestable.TestResult
-
Nested 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 Modifier and Type Field Description java.util.List<Selectable>
args
Function
function
-
Constructor Summary
Constructors Constructor Description WithFunction(Function function, java.util.List<Selectable> args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractType<?>
getExactTypeIfKnown(java.lang.String keyspace)
The type of theSelectable
if it can be infered.Selector.Factory
newSelectorFactory(TableMetadata table, AbstractType<?> expectedType, java.util.List<ColumnMetadata> defs, VariableSpecifications boundNames)
boolean
selectColumns(java.util.function.Predicate<ColumnMetadata> predicate)
Checks if thisSelectable
select columns matching the specified predicate.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cql3.selection.Selectable
addAndGetIndex, getCompatibleTypeIfKnown, processesSelection, specForElementOrSlice, testAssignment
-
-
-
-
Field Detail
-
function
public final Function function
-
args
public final java.util.List<Selectable> args
-
-
Constructor Detail
-
WithFunction
public WithFunction(Function function, java.util.List<Selectable> args)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
newSelectorFactory
public Selector.Factory newSelectorFactory(TableMetadata table, AbstractType<?> expectedType, java.util.List<ColumnMetadata> defs, VariableSpecifications boundNames)
- Specified by:
newSelectorFactory
in interfaceSelectable
-
selectColumns
public boolean selectColumns(java.util.function.Predicate<ColumnMetadata> predicate)
Description copied from interface:Selectable
Checks if thisSelectable
select columns matching the specified predicate.- Specified by:
selectColumns
in interfaceSelectable
- Returns:
true
if thisSelectable
select columns matching the specified predicate,false
otherwise.
-
getExactTypeIfKnown
public AbstractType<?> getExactTypeIfKnown(java.lang.String keyspace)
Description copied from interface:Selectable
The type of theSelectable
if it can be infered.- Specified by:
getExactTypeIfKnown
in interfaceSelectable
- Parameters:
keyspace
- the keyspace on which the statement for which this is aSelectable
is on.- Returns:
- the type of this
Selectable
if inferrable, ornull
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 returnnull
too).
-
-