NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
The Buffer Storage class stores tuples inside a queue and trims it when the right acknowledgement is received. More...
#include <BufferStorage.hpp>
Public Member Functions | |
BufferStorage ()=default | |
Constructor, which creates a buffer storage. More... | |
void | insertBuffer (NES::Runtime::TupleBuffer bufferPtr) override |
Inserts a tuple buffer for a given nes partition. More... | |
void | trimBuffer (uint64_t timestamp) override |
Deletes all tuple buffers which watermark timestamp is smaller than the given timestamp. More... | |
size_t | getStorageSize () const override |
Returns current storage size. More... | |
std::optional< NES::Runtime::TupleBuffer > | getTopElementFromQueue () const |
Returns top element of the queue. More... | |
void | removeTopElementFromQueue () |
Removes the top element from the queue. More... | |
![]() | |
virtual | ~AbstractBufferStorage () noexcept=default |
The Buffer Storage class stores tuples inside a queue and trims it when the right acknowledgement is received.
|
default |
Constructor, which creates a buffer storage.
|
overridevirtual |
Returns current storage size.
Implements NES::Runtime::AbstractBufferStorage.
std::optional< TupleBuffer > NES::Runtime::BufferStorage::getTopElementFromQueue | ( | ) | const |
Returns top element of the queue.
|
overridevirtual |
Inserts a tuple buffer for a given nes partition.
nesPartition | destination |
bufferPtr | pointer to the buffer that will be stored |
Implements NES::Runtime::AbstractBufferStorage.
void NES::Runtime::BufferStorage::removeTopElementFromQueue | ( | ) |
Removes the top element from the queue.
|
overridevirtual |
Deletes all tuple buffers which watermark timestamp is smaller than the given timestamp.
NesPartition | destination |
timestamp | max timestamp of current epoch |
Implements NES::Runtime::AbstractBufferStorage.