public static class Selectable.WithMapOrUdt extends java.lang.Object implements Selectable
Selectable for literal Maps or UDTs.
The parser cannot differentiate between a Map or a UDT in the selection cause because a
ColumnIdentifier is equivalent to a FieldIdentifier from a syntax point of view.
By consequence, we are forced to wait until the type is known to be able to differentiate them.
| Modifier and Type | Class and Description |
|---|---|
static class |
Selectable.WithMapOrUdt.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.WritetimeOrTTLAssignmentTestable.TestResult| Constructor and Description |
|---|
WithMapOrUdt(TableMetadata cfm,
java.util.List<Pair<Selectable.Raw,Selectable.Raw>> raws) |
| 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 cfm,
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. |
AssignmentTestable.TestResult |
testAssignment(java.lang.String keyspace,
ColumnSpecification receiver) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAndGetIndex, processesSelection, selectColumns, specForElementOrSlicepublic WithMapOrUdt(TableMetadata cfm, java.util.List<Pair<Selectable.Raw,Selectable.Raw>> raws)
public AssignmentTestable.TestResult testAssignment(java.lang.String keyspace, ColumnSpecification receiver)
testAssignment in interface AssignmentTestabletestAssignment in interface Selectablepublic Selector.Factory newSelectorFactory(TableMetadata cfm, AbstractType<?> expectedType, java.util.List<ColumnMetadata> defs, VariableSpecifications boundNames)
newSelectorFactory in interface Selectablepublic AbstractType<?> getExactTypeIfKnown(java.lang.String keyspace)
SelectableSelectable if it can be infered.getExactTypeIfKnown in interface Selectablekeyspace - 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)
SelectableSelectable select columns matching the specified predicate.selectColumns in interface Selectabletrue if this Selectable select columns matching the specified predicate,
false otherwise.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2020 The Apache Software Foundation