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
Selectors that simply return a column value. |
boolean |
isSimpleSelectorFactoryFor(int index)
Checks if this factory creates
Selectors that simply return the specified column. |
Selector |
newInstance(QueryOptions options)
Creates a new
Selector instance. |
addFunctionsTo, getColumnSpecification, isAggregateSelectorFactory, isTTLSelectorFactory, isWritetimeSelectorFactoryprotected java.lang.String getColumnName()
Selector.FactorygetColumnName in class Selector.Factoryprotected AbstractType<?> getReturnType()
Selector.FactorygetReturnType in class Selector.Factoryprotected void addColumnMapping(SelectionColumnMapping mapping, ColumnSpecification resultColumn)
Selector.FactoryaddColumnMapping in class Selector.Factorymapping - 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.FactorySelector instance.newInstance in class Selector.Factoryoptions - 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.FactorySelectors that simply return a column value.isSimpleSelectorFactory in class Selector.Factorytrue if this factory creates Selectors that simply return a column value,
false otherwise.public boolean isSimpleSelectorFactoryFor(int index)
Selector.FactorySelectors that simply return the specified column.isSimpleSelectorFactoryFor in class Selector.Factoryindex - the column indextrue if this factory creates Selectors that simply return
the specified column, false otherwise.public boolean areAllFetchedColumnsKnown()
Selector.Factorytrue if all the columns fetched by the selector created by this factory are known,
false otherwise.public void addFetchedColumns(ColumnFilter.Builder builder)
Selector.FactoryisTerminal() == true).builder - the column builder to add fetched columns (and potential subselection) to.public ColumnMetadata getColumn()
Copyright © 2009-2020 The Apache Software Foundation