public interface HBaseQueueStrategy extends Closeable
| Modifier and Type | Method and Description |
|---|---|
QueueScanner |
createScanner(ConsumerConfig consumerConfig,
org.apache.hadoop.hbase.client.HTable hTable,
org.apache.hadoop.hbase.client.Scan scan,
int numRows)
Creates a
QueueScanner from the given Scan on the HBase table. |
byte[] |
getActualRowKey(ConsumerConfig consumerConfig,
byte[] originalRowKey)
Creates the actual row key used for accessing the HBase table from the given queue entry row key.
|
void |
getRowKeys(Iterable<ConsumerGroupConfig> consumerGroupConfigs,
QueueEntry queueEntry,
byte[] rowKeyPrefix,
long writePointer,
int counter,
Collection<byte[]> rowKeys)
Get all the row keys that the queue entries need to write to.
|
QueueScanner createScanner(ConsumerConfig consumerConfig, org.apache.hadoop.hbase.client.HTable hTable, org.apache.hadoop.hbase.client.Scan scan, int numRows) throws IOException
QueueScanner from the given Scan on the HBase table.hTable - HTable for talking to HBasescan - The scan requestnumRows - Maximum number of rows to scan forQueueScanner that scans over the give tableIOExceptionbyte[] getActualRowKey(ConsumerConfig consumerConfig, byte[] originalRowKey)
void getRowKeys(Iterable<ConsumerGroupConfig> consumerGroupConfigs, QueueEntry queueEntry, byte[] rowKeyPrefix, long writePointer, int counter, Collection<byte[]> rowKeys)
consumerGroupConfigs - Consumer groups' configurations for the queuequeueEntry - Entry to enqueuerowKeyPrefix - Prefix for row keyswritePointer - The writer pointer of the current transactioncounter - The counter of the given entry in this transactionrowKeys - Collection for storing all the row keys generated by this entryCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.