public final class LevelDBStreamFileConsumerFactory extends AbstractStreamFileConsumerFactory
StreamConsumerFactory that reads from stream file
and uses LevelDB as the store for consumer process states.| Modifier and Type | Method and Description |
|---|---|
protected StreamConsumer |
create(TableId tableId,
StreamConfig streamConfig,
ConsumerConfig consumerConfig,
StreamConsumerStateStore stateStore,
StreamConsumerState beginConsumerState,
FileReader<StreamEventOffset,Iterable<StreamFileOffset>> reader,
ReadFilter extraFilter)
Creates a
StreamConsumer. |
protected void |
dropTable(TableId tableId)
Deletes process states table.
|
create, dropAll, getFileOffsetsprotected StreamConsumer create(TableId tableId, StreamConfig streamConfig, ConsumerConfig consumerConfig, StreamConsumerStateStore stateStore, StreamConsumerState beginConsumerState, FileReader<StreamEventOffset,Iterable<StreamFileOffset>> reader, @Nullable ReadFilter extraFilter) throws IOException
AbstractStreamFileConsumerFactoryStreamConsumer.create in class AbstractStreamFileConsumerFactorytableId - Id of the table for storing process statesstreamConfig - configuration of the stream to consume fromconsumerConfig - configuration of the consumerstateStore - The StreamConsumerStateStore for recording consumer statereader - The FileReader to read stream events fromStreamConsumerIOExceptionprotected void dropTable(TableId tableId) throws IOException
AbstractStreamFileConsumerFactorydropTable in class AbstractStreamFileConsumerFactorytableId - Id of the process states table.IOExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.