Class SimpleSelector
java.lang.Object
org.apache.cassandra.cql3.selection.Selector
org.apache.cassandra.cql3.selection.SimpleSelector
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe Factory forSimpleSelector.Nested classes/interfaces inherited from class org.apache.cassandra.cql3.selection.Selector
Selector.Factory, Selector.InputRow, Selector.Kind, Selector.SelectorDeserializer, Selector.Serializer -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ColumnMetadataprotected static final Selector.SelectorDeserializerFields 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.protected org.apache.cassandra.cql3.selection.ColumnTimestampsgetTTLs(ProtocolVersion protocolVersion) AbstractType<?>getType()Returns theSelectoroutput type.protected org.apache.cassandra.cql3.selection.ColumnTimestampsgetWritetimes(ProtocolVersion protocolVersion) inthashCode()static Selector.FactorynewFactory(ColumnMetadata def, int idx, boolean useForPostOrdering) voidreset()Reset the internal state of thisSelector.protected voidserialize(DataOutputPlus out, int version) protected intserializedSize(int version) toString()voidChecks that this selector is valid for GROUP BY clause.Methods inherited from class org.apache.cassandra.cql3.selection.Selector
isTerminal, kind, sizeOf, writeType
-
Field Details
-
deserializer
-
column
-
-
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.- Specified by:
addInputin classSelector- Parameters:
input- the input row- Throws:
InvalidRequestException- if a problem occurs while adding the input row
-
getOutput
Description copied from class:SelectorReturns the selector output. -
getWritetimes
protected org.apache.cassandra.cql3.selection.ColumnTimestamps getWritetimes(ProtocolVersion protocolVersion) - Overrides:
getWritetimesin classSelector
-
getTTLs
protected org.apache.cassandra.cql3.selection.ColumnTimestamps getTTLs(ProtocolVersion protocolVersion) -
reset
public void reset()Description copied from class:SelectorReset the internal state of thisSelector. -
getType
Description copied from class:SelectorReturns theSelectoroutput type. -
toString
-
validateForGroupBy
public void validateForGroupBy()Description copied from class:SelectorChecks that this selector is valid for GROUP BY clause.- Overrides:
validateForGroupByin classSelector
-
equals
-
hashCode
public int hashCode() -
serializedSize
protected int serializedSize(int version) - Specified by:
serializedSizein classSelector
-
serialize
- Specified by:
serializein classSelector- Throws:
IOException
-