Class VectorSelector
- java.lang.Object
-
- org.apache.cassandra.cql3.selection.Selector
-
- org.apache.cassandra.cql3.selection.VectorSelector
-
public class VectorSelector extends Selector
-
-
Nested Class Summary
-
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 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.AbstractType<?>
getType()
Returns theSelector
output type.int
hashCode()
boolean
isTerminal()
A selector is terminal if it doesn't require any input for it's output to be computed, i.e.static Selector.Factory
newFactory(AbstractType<?> type, org.apache.cassandra.cql3.selection.SelectorFactories factories)
void
reset()
Reset the internal state of thisSelector
.protected void
serialize(DataOutputPlus out, int version)
protected int
serializedSize(int version)
java.lang.String
toString()
-
Methods inherited from class org.apache.cassandra.cql3.selection.Selector
getTTLs, getWritetimes, kind, sizeOf, validateForGroupBy, writeType
-
-
-
-
Field Detail
-
deserializer
protected static final Selector.SelectorDeserializer deserializer
-
-
Method Detail
-
newFactory
public static Selector.Factory newFactory(AbstractType<?> type, org.apache.cassandra.cql3.selection.SelectorFactories factories)
-
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)
Description copied from class:Selector
Add the current value from the specifiedResultSetBuilder
.
-
getType
public AbstractType<?> getType()
Description copied from class:Selector
Returns theSelector
output type.
-
reset
public void reset()
Description copied from class:Selector
Reset the internal state of thisSelector
.
-
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
-
serializedSize
protected int serializedSize(int version)
- Specified by:
serializedSize
in classSelector
-
serialize
protected void serialize(DataOutputPlus out, int version) throws java.io.IOException
-
isTerminal
public boolean isTerminal()
Description copied from class:Selector
A selector is terminal if it doesn't require any input for it's output to be computed, i.e. ifSelector.getOutput(org.apache.cassandra.transport.ProtocolVersion)
result doesn't depend ofSelector.addInput(org.apache.cassandra.cql3.selection.Selector.InputRow)
. This is typically the case of a constant value or functions on constant values.- Overrides:
isTerminal
in classSelector
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-