public final class LevelDBStreamFileConsumer extends AbstractStreamFileConsumer
AbstractStreamFileConsumer.StateScannerMAX_SCAN_ROWS, stateColumnName| Constructor and Description |
|---|
LevelDBStreamFileConsumer(CConfiguration cConf,
StreamConfig streamConfig,
ConsumerConfig consumerConfig,
FileReader<StreamEventOffset,Iterable<StreamFileOffset>> reader,
StreamConsumerStateStore stateStore,
StreamConsumerState beginConsumerState,
ReadFilter extraFilter,
LevelDBTableCore tableCore,
Object dbLock) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
claimFifoEntry(byte[] row,
byte[] value,
byte[] oldValue) |
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, doClose, getConsumerConfig, getStreamId, getTransactionAwareName, getTxChanges, poll, postTxCommit, rollbackTx, startTx, toString, updateTxpublic LevelDBStreamFileConsumer(CConfiguration cConf, StreamConfig streamConfig, ConsumerConfig consumerConfig, FileReader<StreamEventOffset,Iterable<StreamFileOffset>> reader, StreamConsumerStateStore stateStore, StreamConsumerState beginConsumerState, @Nullable ReadFilter extraFilter, LevelDBTableCore tableCore, Object dbLock)
streamConfig - Stream configuration.consumerConfig - Consumer configuration.reader - For reading stream events. This class is responsible for closing the reader.protected 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.