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
-
-
Field Summary
Fields Modifier and Type Field Description ColumnMetadata
column
-
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(ProtocolVersion protocolVersion, ResultSetBuilder rs)
Add the current value from the specifiedResultSetBuilder
.java.nio.ByteBuffer
getOutput(ProtocolVersion protocolVersion)
Returns the selector output.AbstractType<?>
getType()
Returns theSelector
output type.static Selector.Factory
newFactory(ColumnMetadata def, int idx)
void
reset()
Reset the internal state of thisSelector
.java.lang.String
toString()
-
-
-
Field Detail
-
column
public final ColumnMetadata column
-
-
Method Detail
-
newFactory
public static Selector.Factory newFactory(ColumnMetadata def, int idx)
-
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(ProtocolVersion protocolVersion, ResultSetBuilder rs) throws InvalidRequestException
Description copied from class:Selector
Add the current value from the specifiedResultSetBuilder
.- Specified by:
addInput
in classSelector
- Parameters:
protocolVersion
- protocol version used for serializationrs
- theResultSetBuilder
- Throws:
InvalidRequestException
- if a problem occurs while add the input value
-
getOutput
public java.nio.ByteBuffer getOutput(ProtocolVersion protocolVersion) throws InvalidRequestException
Description copied from class:Selector
Returns the selector output.- Specified by:
getOutput
in classSelector
- Parameters:
protocolVersion
- protocol version used for serialization- Returns:
- the selector output
- Throws:
InvalidRequestException
- if a problem occurs while computing the output value
-
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
-
-