ReadHooks (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.hbase.adapters.read

Interface ReadHooks

  • All Known Implementing Classes:
    DefaultReadHooks


    public interface ReadHooks
    Hooks for modifying a Query before being sent to Cloud Bigtable.

    Note that it is expected that this will be extended to include post-read hooks to transform Rows when appropriate.

    Version:
    $Id: $Id
    Author:
    sduskis
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void applyPreSendHook(com.google.cloud.bigtable.data.v2.models.Query query)
      Apply all pre-send hooks to the given request.
      void composePreSendHook(Function<com.google.cloud.bigtable.data.v2.models.Query,com.google.cloud.bigtable.data.v2.models.Query> newHook)
      Add a Function that will modify the Query before it is sent to Cloud Bigtable.
    • Method Detail

      • composePreSendHook

        void composePreSendHook(Function<com.google.cloud.bigtable.data.v2.models.Query,com.google.cloud.bigtable.data.v2.models.Query> newHook)
        Add a Function that will modify the Query before it is sent to Cloud Bigtable.
        Parameters:
        newHook - a Function object.
      • applyPreSendHook

        void applyPreSendHook(com.google.cloud.bigtable.data.v2.models.Query query)
        Apply all pre-send hooks to the given request.
        Parameters:
        query - a Query object.