public final class SimpleSelector extends Selector
Selector.Factory
AssignmentTestable.TestResult
Modifier and Type | Method and Description |
---|---|
void |
addInput(int protocolVersion,
Selection.ResultSetBuilder rs)
Add the current value from the specified
ResultSetBuilder . |
java.nio.ByteBuffer |
getOutput(int protocolVersion)
Returns the selector output.
|
AbstractType<?> |
getType()
Returns the
Selector output type. |
static Selector.Factory |
newFactory(ColumnDefinition def,
int idx) |
void |
reset()
Reset the internal state of this
Selector . |
java.lang.String |
toString() |
isAggregate, testAssignment
public static Selector.Factory newFactory(ColumnDefinition def, int idx)
public void addInput(int protocolVersion, Selection.ResultSetBuilder rs) throws InvalidRequestException
Selector
ResultSetBuilder
.addInput
in class Selector
protocolVersion
- protocol version used for serializationrs
- the ResultSetBuilder
InvalidRequestException
- if a problem occurs while add the input valuepublic java.nio.ByteBuffer getOutput(int protocolVersion) throws InvalidRequestException
Selector
getOutput
in class Selector
protocolVersion
- protocol version used for serializationInvalidRequestException
- if a problem occurs while computing the output valuepublic void reset()
Selector
Selector
.public AbstractType<?> getType()
Selector
Selector
output type.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 The Apache Software Foundation