TypedFilterAdapter (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.hbase.adapters.filters

Interface TypedFilterAdapter<S extends Filter>

    • Method Detail

      • adapt

        com.google.cloud.bigtable.data.v2.models.Filters.Filter adapt(FilterAdapterContext context,
                                                                      S filter)
                                                               throws IOException
        Adapt the given filter. Implementers of this method should assume that isFilterSupported has already been called with a result indicating it is in fact supproted.
        Parameters:
        context - a FilterAdapterContext object.
        filter - a S object.
        Returns:
        a Filters.Filter object.
        Throws:
        IOException - if any.
      • getIndexScanHint

        RangeSet<RowKeyWrapper> getIndexScanHint(S filter)
        Get hints how to optimize the scan. For example if the filter will narrow the scan using the prefix "ab" then we can restrict the scan to ["ab" - "ac"). If the filter doesn't narrow the scan then it should return Range.all()
        Parameters:
        filter - a S object.
        Returns:
        a RangeSet object.