public static final class SimpleSelector.SimpleSelectorFactory extends Selector.Factory
SimpleSelector
.Modifier and Type | Method and Description |
---|---|
protected void |
addColumnMapping(SelectionColumnMapping mapping,
ColumnSpecification resultColumn)
Record a mapping between the ColumnDefinitions that are used by the selector
instances created by this factory and a column in the ResultSet.Metadata
returned with a query.
|
void |
addFetchedColumns(ColumnFilter.Builder builder)
Adds the columns fetched by the selector created by this factory to the provided builder, assuming the
factory is terminal (i.e.
|
boolean |
areAllFetchedColumnsKnown()
Checks if all the columns fetched by the selector created by this factory are known
|
ColumnMetadata |
getColumn() |
protected java.lang.String |
getColumnName()
Returns the name of the column corresponding to the output value of the selector instances created by
this factory.
|
protected AbstractType<?> |
getReturnType()
Returns the type of the values returned by the selector instances created by this factory.
|
boolean |
isSimpleSelectorFactory()
Checks if this factory creates
Selector s that simply return a column value. |
boolean |
isSimpleSelectorFactoryFor(int index)
Checks if this factory creates
Selector s that simply return the specified column. |
Selector |
newInstance(QueryOptions options)
Creates a new
Selector instance. |
addFunctionsTo, getColumnSpecification, isAggregateSelectorFactory, isTTLSelectorFactory, isWritetimeSelectorFactory
protected java.lang.String getColumnName()
Selector.Factory
getColumnName
in class Selector.Factory
protected AbstractType<?> getReturnType()
Selector.Factory
getReturnType
in class Selector.Factory
protected void addColumnMapping(SelectionColumnMapping mapping, ColumnSpecification resultColumn)
Selector.Factory
addColumnMapping
in class Selector.Factory
mapping
- the instance of the column mapping belonging to the current query's SelectionresultColumn
- the column in the ResultSet.Metadata to which the ColumnDefinitions used
by the Selector are to be mappedpublic Selector newInstance(QueryOptions options)
Selector.Factory
Selector
instance.newInstance
in class Selector.Factory
options
- the options of the query for which the instance is created (some selector
depends on the bound values in particular).Selector
instancepublic boolean isSimpleSelectorFactory()
Selector.Factory
Selector
s that simply return a column value.isSimpleSelectorFactory
in class Selector.Factory
true
if this factory creates Selector
s that simply return a column value,
false
otherwise.public boolean isSimpleSelectorFactoryFor(int index)
Selector.Factory
Selector
s that simply return the specified column.isSimpleSelectorFactoryFor
in class Selector.Factory
index
- the column indextrue
if this factory creates Selector
s that simply return
the specified column, false
otherwise.public boolean areAllFetchedColumnsKnown()
Selector.Factory
true
if all the columns fetched by the selector created by this factory are known,
false
otherwise.public void addFetchedColumns(ColumnFilter.Builder builder)
Selector.Factory
isTerminal() == true
).builder
- the column builder to add fetched columns (and potential subselection) to.public ColumnMetadata getColumn()
Copyright © 2009-2020 The Apache Software Foundation