@NotThreadSafe public final class HBaseStreamFileConsumer extends AbstractStreamFileConsumer
StreamConsumer that uses HTable to store consuming states.AbstractStreamFileConsumer.StateScannerMAX_SCAN_ROWS, stateColumnName| Constructor and Description |
|---|
HBaseStreamFileConsumer(CConfiguration cConf,
StreamConfig streamConfig,
ConsumerConfig consumerConfig,
HBaseTableUtil tableUtil,
org.apache.hadoop.hbase.client.HTable hTable,
FileReader<StreamEventOffset,Iterable<StreamFileOffset>> reader,
StreamConsumerStateStore stateStore,
StreamConsumerState beginConsumerState,
ReadFilter extraFilter,
AbstractRowKeyDistributor keyDistributor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
claimFifoEntry(byte[] row,
byte[] value,
byte[] oldValue) |
protected void |
doClose() |
protected AbstractStreamFileConsumer.StateScanner |
scanStates(byte[] startRow,
byte[] stopRow) |
protected void |
undoState(Iterable<byte[]> rows,
int size) |
protected void |
updateState(Iterable<byte[]> rows,
int size,
byte[] value) |
close, commitTx, getConsumerConfig, getStreamId, getTransactionAwareName, getTxChanges, poll, postTxCommit, rollbackTx, startTx, toString, updateTxpublic HBaseStreamFileConsumer(CConfiguration cConf, StreamConfig streamConfig, ConsumerConfig consumerConfig, HBaseTableUtil tableUtil, org.apache.hadoop.hbase.client.HTable hTable, FileReader<StreamEventOffset,Iterable<StreamFileOffset>> reader, StreamConsumerStateStore stateStore, StreamConsumerState beginConsumerState, @Nullable ReadFilter extraFilter, AbstractRowKeyDistributor keyDistributor)
protected void doClose()
throws IOException
doClose in class AbstractStreamFileConsumerIOExceptionprotected boolean claimFifoEntry(byte[] row,
byte[] value,
byte[] oldValue)
throws IOException
claimFifoEntry in class AbstractStreamFileConsumerIOExceptionprotected void updateState(Iterable<byte[]> rows, int size, byte[] value) throws IOException
updateState in class AbstractStreamFileConsumerIOExceptionprotected void undoState(Iterable<byte[]> rows, int size) throws IOException
undoState in class AbstractStreamFileConsumerIOExceptionprotected AbstractStreamFileConsumer.StateScanner scanStates(byte[] startRow, byte[] stopRow) throws IOException
scanStates in class AbstractStreamFileConsumerIOExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.