public static class Selectable.WritetimeOrTTL extends java.lang.Object implements Selectable
Modifier and Type | Class and Description |
---|---|
static class |
Selectable.WritetimeOrTTL.Raw |
Selectable.BetweenParenthesesOrWithTuple, Selectable.RawIdentifier, Selectable.WithCast, Selectable.WithElementSelection, Selectable.WithFieldSelection, Selectable.WithFunction, Selectable.WithList, Selectable.WithMapOrUdt, Selectable.WithSet, Selectable.WithSliceSelection, Selectable.WithTerm, Selectable.WithToJSonFunction, Selectable.WithTypeHint, Selectable.WritetimeOrTTL
AssignmentTestable.TestResult
Modifier and Type | Field and Description |
---|---|
ColumnMetadata |
column |
boolean |
isWritetime |
Constructor and Description |
---|
WritetimeOrTTL(ColumnMetadata column,
boolean isWritetime) |
Modifier and Type | Method and Description |
---|---|
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) |
boolean |
selectColumns(java.util.function.Predicate<ColumnMetadata> predicate)
Checks if this
Selectable select columns matching the specified predicate. |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAndGetIndex, processesSelection, selectColumns, specForElementOrSlice, testAssignment
public final ColumnMetadata column
public final boolean isWritetime
public WritetimeOrTTL(ColumnMetadata column, boolean isWritetime)
public java.lang.String toString()
toString
in class java.lang.Object
public Selector.Factory newSelectorFactory(TableMetadata table, AbstractType<?> expectedType, java.util.List<ColumnMetadata> defs, VariableSpecifications boundNames)
newSelectorFactory
in interface Selectable
public AbstractType<?> getExactTypeIfKnown(java.lang.String keyspace)
Selectable
Selectable
if it can be infered.getExactTypeIfKnown
in interface Selectable
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).public boolean selectColumns(java.util.function.Predicate<ColumnMetadata> predicate)
Selectable
Selectable
select columns matching the specified predicate.selectColumns
in interface Selectable
true
if this Selectable
select columns matching the specified predicate,
false
otherwise.Copyright © 2009- The Apache Software Foundation