Class TermSelector
- java.lang.Object
-
- org.apache.cassandra.cql3.selection.Selector
-
- org.apache.cassandra.cql3.selection.TermSelector
-
public class TermSelector extends Selector
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFetchedColumns(ColumnFilter.Builder builder)Add to the provided builder the column (and potential subselections) to fetch for this selection.voidaddInput(ProtocolVersion protocolVersion, ResultSetBuilder rs)Add the current value from the specifiedResultSetBuilder.java.nio.ByteBuffergetOutput(ProtocolVersion protocolVersion)Returns the selector output.AbstractType<?>getType()Returns theSelectoroutput type.static Selector.FactorynewFactory(java.lang.String name, Term term, AbstractType<?> type)voidreset()Reset the internal state of thisSelector.
-
-
-
Method Detail
-
newFactory
public static Selector.Factory newFactory(java.lang.String name, Term term, AbstractType<?> type)
-
addFetchedColumns
public void addFetchedColumns(ColumnFilter.Builder builder)
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
public void addInput(ProtocolVersion protocolVersion, ResultSetBuilder rs) throws InvalidRequestException
Description copied from class:SelectorAdd the current value from the specifiedResultSetBuilder.- Specified by:
addInputin 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: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
-
getType
public AbstractType<?> getType()
Description copied from class:SelectorReturns theSelectoroutput type.
-
-