public abstract class Selector
extends java.lang.Object
Selector
is used to convert the data returned by the storage engine into the data requested by the
user. They correspond to the <selector> elements from the select clause.
Since the introduction of aggregation, Selector
s cannot be called anymore by multiple threads
as they have an internal state.
Modifier and Type | Class and Description |
---|---|
static class |
Selector.Factory
A factory for
Selector instances. |
Constructor and Description |
---|
Selector() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addFetchedColumns(ColumnFilter.Builder builder)
Add to the provided builder the column (and potential subselections) to fetch for this
selection.
|
abstract void |
addInput(ProtocolVersion protocolVersion,
ResultSetBuilder rs)
Add the current value from the specified
ResultSetBuilder . |
abstract java.nio.ByteBuffer |
getOutput(ProtocolVersion protocolVersion)
Returns the selector output.
|
abstract AbstractType<?> |
getType()
Returns the
Selector output type. |
abstract void |
reset()
Reset the internal state of this
Selector . |
public abstract void addFetchedColumns(ColumnFilter.Builder builder)
builder
- the builder to add columns and subselections to.public abstract void addInput(ProtocolVersion protocolVersion, ResultSetBuilder rs) throws InvalidRequestException
ResultSetBuilder
.protocolVersion
- protocol version used for serializationrs
- the ResultSetBuilder
InvalidRequestException
- if a problem occurs while add the input valuepublic abstract java.nio.ByteBuffer getOutput(ProtocolVersion protocolVersion) throws InvalidRequestException
protocolVersion
- protocol version used for serializationInvalidRequestException
- if a problem occurs while computing the output valuepublic abstract AbstractType<?> getType()
Selector
output type.Selector
output type.public abstract void reset()
Selector
.Copyright © 2009-2021 The Apache Software Foundation