Class ColumnFilter.WildCardColumnFilter

  • Enclosing class:
    ColumnFilter

    public static class ColumnFilter.WildCardColumnFilter
    extends ColumnFilter
    ColumnFilter sub-class for wildcard queries.

    The class does not rely on TableMetadata and expects a fix set of columns to prevent issues with Schema race propagation. See CASSANDRA-15899.

    • Method Detail

      • fetchesAllColumns

        public boolean fetchesAllColumns​(boolean isStatic)
        Description copied from class: ColumnFilter
        Whether all the (regular or static) columns are fetched by this filter.

        Note that this method is meant as an optimization but a negative return shouldn't be relied upon strongly: this can return false but still have all the columns fetches if those were manually selected by the user. The goal here is to cheaply avoid filtering things on wildcard queries, as those are common.

        Specified by:
        fetchesAllColumns in class ColumnFilter
        Parameters:
        isStatic - whether to check for static columns or not. If true, the method returns if all static columns are fetched, otherwise it checks regular columns.
      • allFetchedColumnsAreQueried

        public boolean allFetchedColumnsAreQueried()
        Description copied from class: ColumnFilter
        Whether _fetched_ == _queried_ for this filter, and so if the isQueried() methods can return false for some column/cell.
        Specified by:
        allFetchedColumnsAreQueried in class ColumnFilter
      • newTester

        public ColumnFilter.Tester newTester​(ColumnMetadata column)
        Description copied from class: ColumnFilter
        Creates a new Tester to efficiently test the inclusion of cells of complex column column.
        Specified by:
        newTester in class ColumnFilter
        Parameters:
        column - for complex column for which to create a tester.
        Returns:
        the created tester or null if all the cells from the provided column are queried.
      • equals

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

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

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

        public java.lang.String toCQLString()
        Description copied from class: ColumnFilter
        Returns the CQL string corresponding to this ColumnFilter.
        Specified by:
        toCQLString in class ColumnFilter
        Returns:
        the CQL string corresponding to this ColumnFilter.
      • isWildcard

        public boolean isWildcard()
        Description copied from class: ColumnFilter
        Checks if this ColumnFilter is for a wildcard query.
        Overrides:
        isWildcard in class ColumnFilter
        Returns:
        true if this ColumnFilter is for a wildcard query, false otherwise.