Class Selection


  • public abstract class Selection
    extends java.lang.Object
    • Field Detail

      • columnFilterFactory

        protected final org.apache.cassandra.cql3.selection.ColumnFilterFactory columnFilterFactory
      • isJson

        protected final boolean isJson
      • orderingColumns

        protected final java.util.List<ColumnMetadata> orderingColumns
    • Method Detail

      • isWildcard

        public boolean isWildcard()
      • containsStaticColumns

        public boolean containsStaticColumns()
        Checks if this selection contains static columns.
        Returns:
        true if this selection contains static columns, false otherwise;
      • getOrderingIndex

        public java.lang.Integer getOrderingIndex​(ColumnMetadata c)
        Returns the corresponding column index used for post query ordering
        Parameters:
        c - ordering column
        Returns:
      • wildcard

        public static Selection wildcard​(TableMetadata table,
                                         boolean isJson,
                                         boolean returnStaticContentOnPartitionWithNoRows)
      • addFunctionsTo

        public void addFunctionsTo​(java.util.List<Function> functions)
      • getResultSetIndex

        public int getResultSetIndex​(ColumnMetadata c)
        Returns the index of the specified column within the resultset
        Parameters:
        c - the column
        Returns:
        the index of the specified column within the resultset or -1
      • getColumnIndex

        protected final int getColumnIndex​(ColumnMetadata c)
        Returns the index of the specified column
        Parameters:
        c - the column
        Returns:
        the index of the specified column or -1
      • getColumns

        public java.util.List<ColumnMetadata> getColumns()
        Returns:
        the list of CQL3 columns value this SelectionClause needs.
      • getColumnMapping

        public SelectionColumns getColumnMapping()
        Returns:
        the mappings between resultset columns and the underlying columns
      • isAggregate

        public abstract boolean isAggregate()
      • toString

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