Class SimpleSelector


  • public final class SimpleSelector
    extends Selector
    • Method Detail

      • 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 class Selector
        Parameters:
        builder - the builder to add columns and subselections to.
      • getOutput

        public java.nio.ByteBuffer getOutput​(ProtocolVersion protocolVersion)
        Description copied from class: Selector
        Returns the selector output.
        Specified by:
        getOutput in class Selector
        Parameters:
        protocolVersion - protocol version used for serialization
        Returns:
        the selector output
      • getTTLs

        protected org.apache.cassandra.cql3.selection.ColumnTimestamps getTTLs​(ProtocolVersion protocolVersion)
        Overrides:
        getTTLs in class Selector
      • reset

        public void reset()
        Description copied from class: Selector
        Reset the internal state of this Selector.
        Specified by:
        reset in class Selector
      • getType

        public AbstractType<?> getType()
        Description copied from class: Selector
        Returns the Selector output type.
        Specified by:
        getType in class Selector
        Returns:
        the Selector output type.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • validateForGroupBy

        public void validateForGroupBy()
        Description copied from class: Selector
        Checks that this selector is valid for GROUP BY clause.
        Overrides:
        validateForGroupBy in class Selector
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • serializedSize

        protected int serializedSize​(int version)
        Specified by:
        serializedSize in class Selector
      • serialize

        protected void serialize​(DataOutputPlus out,
                                 int version)
                          throws java.io.IOException
        Specified by:
        serialize in class Selector
        Throws:
        java.io.IOException