com.google.cloud.bigtable.hbase.adapters.read
Interface ReadHooks
-
- All Known Implementing Classes:
- DefaultReadHooks
public interface ReadHooks
Hooks for modifying aQuery
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 aFunction
that will modify theQuery
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 aFunction
that will modify theQuery
before it is sent to Cloud Bigtable.- Parameters:
newHook
- aFunction
object.
-
applyPreSendHook
void applyPreSendHook(com.google.cloud.bigtable.data.v2.models.Query query)
Apply all pre-send hooks to the given request.- Parameters:
query
- aQuery
object.
-
-