public final class SimpleSelector extends Selector
Modifier and Type | Class and Description |
---|---|
static class |
SimpleSelector.SimpleSelectorFactory
The Factory for
SimpleSelector . |
Selector.Factory, Selector.InputRow, Selector.Kind, Selector.SelectorDeserializer, Selector.Serializer
Modifier and Type | Field and Description |
---|---|
ColumnMetadata |
column |
protected static Selector.SelectorDeserializer |
deserializer |
serializer
Modifier and Type | Method and Description |
---|---|
void |
addFetchedColumns(ColumnFilter.Builder builder)
Add to the provided builder the column (and potential subselections) to fetch for this
selection.
|
void |
addInput(ProtocolVersion protocolVersion,
Selector.InputRow input)
Add the current value from the specified
ResultSetBuilder . |
boolean |
equals(java.lang.Object o) |
java.nio.ByteBuffer |
getOutput(ProtocolVersion protocolVersion)
Returns the selector output.
|
AbstractType<?> |
getType()
Returns the
Selector output type. |
int |
hashCode() |
static Selector.Factory |
newFactory(ColumnMetadata def,
int idx) |
void |
reset()
Reset the internal state of this
Selector . |
protected void |
serialize(DataOutputPlus out,
int version) |
protected int |
serializedSize(int version) |
java.lang.String |
toString() |
void |
validateForGroupBy()
Checks that this selector is valid for GROUP BY clause.
|
isTerminal, kind, sizeOf, writeType
protected static final Selector.SelectorDeserializer deserializer
public final ColumnMetadata column
public static Selector.Factory newFactory(ColumnMetadata def, int idx)
public void addFetchedColumns(ColumnFilter.Builder builder)
Selector
addFetchedColumns
in class Selector
builder
- the builder to add columns and subselections to.public void addInput(ProtocolVersion protocolVersion, Selector.InputRow input) throws InvalidRequestException
Selector
ResultSetBuilder
.addInput
in class Selector
protocolVersion
- protocol version used for serializationinput
- the input rowInvalidRequestException
- if a problem occurs while adding the input rowpublic java.nio.ByteBuffer getOutput(ProtocolVersion protocolVersion)
Selector
public void reset()
Selector
Selector
.public AbstractType<?> getType()
Selector
Selector
output type.public java.lang.String toString()
toString
in class java.lang.Object
public void validateForGroupBy()
Selector
validateForGroupBy
in class Selector
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected int serializedSize(int version)
serializedSize
in class Selector
protected void serialize(DataOutputPlus out, int version) throws java.io.IOException
Copyright © 2009- The Apache Software Foundation