public class LevelDBPayloadTable extends AbstractPayloadTable
PayloadTable.PayloadTable.Entry| Constructor and Description |
|---|
LevelDBPayloadTable(org.iq80.leveldb.DB levelDB) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
persist(Iterator<RawPayloadTableEntry> entries)
Store the
RawPayloadTableEntrys persistently. |
void |
pruneMessages(TopicMetadata topicMetadata,
long currentTime)
Delete messages of a
TopicId that has exceeded the TTL or if it belongs to an older generation |
protected co.cask.cdap.api.dataset.lib.CloseableIterator<RawPayloadTableEntry> |
read(byte[] startRow,
byte[] stopRow,
int limit)
Read the
RawPayloadTableEntrys given a key range. |
fetch, storeprotected co.cask.cdap.api.dataset.lib.CloseableIterator<RawPayloadTableEntry> read(byte[] startRow, byte[] stopRow, int limit) throws IOException
AbstractPayloadTableRawPayloadTableEntrys given a key range.read in class AbstractPayloadTablestartRow - start row prefixstopRow - stop row prefixlimit - maximum number of messages to readCloseableIterator of RawPayloadTableEntrysIOException - thrown if there was an error while trying to read the entries from the tablepublic void persist(Iterator<RawPayloadTableEntry> entries) throws IOException
AbstractPayloadTableRawPayloadTableEntrys persistently.persist in class AbstractPayloadTableentries - Iterator of RawPayloadTableEntrysIOException - thrown if there was an error while storing the entriespublic void pruneMessages(TopicMetadata topicMetadata, long currentTime) throws IOException
TopicId that has exceeded the TTL or if it belongs to an older generationtopicMetadata - TopicMetadatacurrentTime - current timestampIOException - error occurred while trying to delete a row in LevelDBpublic void close()
throws IOException
IOExceptionCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.