Class SimpleSelector
- java.lang.Object
-
- org.apache.cassandra.cql3.selection.Selector
-
- org.apache.cassandra.cql3.selection.SimpleSelector
-
public final class SimpleSelector extends Selector
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleSelector.SimpleSelectorFactory
The Factory forSimpleSelector
.-
Nested classes/interfaces inherited from class org.apache.cassandra.cql3.selection.Selector
Selector.Factory, Selector.InputRow, Selector.Kind, Selector.SelectorDeserializer, Selector.Serializer
-
-
Field Summary
Fields Modifier and Type Field Description ColumnMetadata
column
protected static Selector.SelectorDeserializer
deserializer
-
Fields inherited from class org.apache.cassandra.cql3.selection.Selector
serializer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFetchedColumns(ColumnFilter.Builder builder)
Add to the provided builder the column (and potential subselections) to fetch for this selection.void
addInput(Selector.InputRow input)
Add the current value from the specifiedResultSetBuilder
.boolean
equals(java.lang.Object o)
java.nio.ByteBuffer
getOutput(ProtocolVersion protocolVersion)
Returns the selector output.protected org.apache.cassandra.cql3.selection.ColumnTimestamps
getTTLs(ProtocolVersion protocolVersion)
AbstractType<?>
getType()
Returns theSelector
output type.protected org.apache.cassandra.cql3.selection.ColumnTimestamps
getWritetimes(ProtocolVersion protocolVersion)
int
hashCode()
static Selector.Factory
newFactory(ColumnMetadata def, int idx, boolean useForPostOrdering)
void
reset()
Reset the internal state of thisSelector
.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.-
Methods inherited from class org.apache.cassandra.cql3.selection.Selector
isTerminal, kind, sizeOf, writeType
-
-
-
-
Field Detail
-
deserializer
protected static final Selector.SelectorDeserializer deserializer
-
column
public final ColumnMetadata column
-
-
Method Detail
-
newFactory
public static Selector.Factory newFactory(ColumnMetadata def, int idx, boolean useForPostOrdering)
-
addFetchedColumns
public void addFetchedColumns(ColumnFilter.Builder builder)
Description copied from class:Selector
Add to the provided builder the column (and potential subselections) to fetch for this selection.- Specified by:
addFetchedColumns
in classSelector
- Parameters:
builder
- the builder to add columns and subselections to.
-
addInput
public void addInput(Selector.InputRow input) throws InvalidRequestException
Description copied from class:Selector
Add the current value from the specifiedResultSetBuilder
.- Specified by:
addInput
in classSelector
- Parameters:
input
- the input row- Throws:
InvalidRequestException
- if a problem occurs while adding the input row
-
getOutput
public java.nio.ByteBuffer getOutput(ProtocolVersion protocolVersion)
Description copied from class:Selector
Returns the selector output.
-
getWritetimes
protected org.apache.cassandra.cql3.selection.ColumnTimestamps getWritetimes(ProtocolVersion protocolVersion)
- Overrides:
getWritetimes
in classSelector
-
getTTLs
protected org.apache.cassandra.cql3.selection.ColumnTimestamps getTTLs(ProtocolVersion protocolVersion)
-
reset
public void reset()
Description copied from class:Selector
Reset the internal state of thisSelector
.
-
getType
public AbstractType<?> getType()
Description copied from class:Selector
Returns theSelector
output type.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
validateForGroupBy
public void validateForGroupBy()
Description copied from class:Selector
Checks that this selector is valid for GROUP BY clause.- Overrides:
validateForGroupBy
in classSelector
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
serializedSize
protected int serializedSize(int version)
- Specified by:
serializedSize
in classSelector
-
serialize
protected void serialize(DataOutputPlus out, int version) throws java.io.IOException
-
-