Class TermSelector
java.lang.Object
org.apache.cassandra.cql3.selection.Selector
org.apache.cassandra.cql3.selection.TermSelector
Selector representing a simple term (literals or bound variables).
Note that we know the term does not include function calls for instance (this is actually enforced by the parser), those being dealt with by their own 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
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(String name, Term term, AbstractType<?> type) voidreset()Reset the internal state of thisSelector.protected voidserialize(DataOutputPlus out, int version) protected intserializedSize(int version) Methods inherited from class org.apache.cassandra.cql3.selection.Selector
getTTLs, getWritetimes, kind, sizeOf, validateForGroupBy, writeType
-
Field Details
-
deserializer
-
-
Method Details
-
newFactory
-
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. -
getOutput
Description copied from class:SelectorReturns the selector output. -
getType
Description copied from class:SelectorReturns theSelectoroutput type. -
reset
public void reset()Description copied from class:SelectorReset the internal state of thisSelector. -
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
-
equals
-
hashCode
public int hashCode() -
serializedSize
protected int serializedSize(int version) - Specified by:
serializedSizein classSelector
-
serialize
- Specified by:
serializein classSelector- Throws:
IOException
-