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, Selectors 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 |
addInput(ProtocolVersion protocolVersion,
Selection.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. |
boolean |
isAggregate()
Checks if this
Selector is creating aggregates. |
abstract void |
reset()
Reset the internal state of this
Selector. |
public abstract void addInput(ProtocolVersion protocolVersion, Selection.ResultSetBuilder rs) throws InvalidRequestException
ResultSetBuilder.protocolVersion - protocol version used for serializationrs - the ResultSetBuilderInvalidRequestException - 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 boolean isAggregate()
Selector is creating aggregates.true if this Selector is creating aggregates false
otherwise.public abstract void reset()
Selector.Copyright © 2018 The Apache Software Foundation