Class VectorSelector
java.lang.Object
org.apache.cassandra.cql3.selection.Selector
org.apache.cassandra.cql3.selection.VectorSelector
-
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
FieldsFields inherited from class org.apache.cassandra.cql3.selection.Selector
serializer -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFetchedColumns(ColumnFilter.Builder builder) Add to the provided builder the column (and potential subselections) to fetch for this selection.voidaddInput(Selector.InputRow input) Add the current value from the specifiedResultSetBuilder.booleangetOutput(ProtocolVersion protocolVersion) Returns the selector output.AbstractType<?>getType()Returns theSelectoroutput type.inthashCode()booleanA selector is terminal if it doesn't require any input for it's output to be computed, i.e.static Selector.FactorynewFactory(AbstractType<?> type, org.apache.cassandra.cql3.selection.SelectorFactories factories) voidreset()Reset the internal state of thisSelector.protected voidserialize(DataOutputPlus out, int version) protected intserializedSize(int version) toString()Methods inherited from class org.apache.cassandra.cql3.selection.Selector
getTTLs, getWritetimes, kind, sizeOf, validateForGroupBy, writeType
-
Field Details
-
deserializer
-
-
Method Details
-
newFactory
public static Selector.Factory newFactory(AbstractType<?> type, org.apache.cassandra.cql3.selection.SelectorFactories factories) -
addFetchedColumns
Description copied from class:SelectorAdd to the provided builder the column (and potential subselections) to fetch for this selection.- Specified by:
addFetchedColumnsin classSelector- Parameters:
builder- the builder to add columns and subselections to.
-
addInput
Description copied from class:SelectorAdd the current value from the specifiedResultSetBuilder. -
getType
Description copied from class:SelectorReturns theSelectoroutput type. -
reset
public void reset()Description copied from class:SelectorReset the internal state of thisSelector. -
getOutput
Description copied from class:SelectorReturns the selector output.- Specified by:
getOutputin 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:
serializedSizein classSelector
-
serialize
- Specified by:
serializein classSelector- Throws:
IOException
-
isTerminal
public boolean isTerminal()Description copied from class:SelectorA 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:
isTerminalin classSelector
-
toString
-
equals
-
hashCode
public int hashCode()
-