|
NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
#include <SinkFormat.hpp>
Public Member Functions | |
| SinkFormat (SchemaPtr schema, Runtime::BufferManagerPtr bufferManager) | |
| constructor for a sink format More... | |
| SinkFormat (SchemaPtr schema, Runtime::BufferManagerPtr bufferManager, bool addTimestamp) | |
| constructor for a sink format More... | |
| virtual | ~SinkFormat () noexcept=default |
| virtual std::string | getFormattedSchema ()=0 |
| Returns the schema of formatted according to the specific SinkFormat represented as string. More... | |
| virtual std::string | getFormattedBuffer (Runtime::TupleBuffer &inputBuffer)=0 |
| method to format a TupleBuffer More... | |
| virtual FormatIterator | getTupleIterator (Runtime::TupleBuffer &inputBuffer)=0 |
| depending on the SinkFormat type, returns an iterator that can be used to retrieve tuples from the TupleBuffer More... | |
| virtual std::string | toString ()=0 |
| method to return the format as a string More... | |
| virtual FormatTypes | getSinkFormat ()=0 |
| SchemaPtr | getSchemaPtr () |
| void | setSchemaPtr (SchemaPtr schema) |
| Runtime::BufferManagerPtr | getBufferManager () |
| void | setBufferManager (Runtime::BufferManagerPtr bufferManager) |
| bool | getAddTimestamp () |
| void | setAddTimestamp (bool addTimestamp) |
Protected Attributes | |
| SchemaPtr | schema |
| Runtime::BufferManagerPtr | bufferManager |
| bool | addTimestamp |
| NES::SinkFormat::SinkFormat | ( | SchemaPtr | schema, |
| Runtime::BufferManagerPtr | bufferManager | ||
| ) |
constructor for a sink format
| schema | |
| append |
| NES::SinkFormat::SinkFormat | ( | SchemaPtr | schema, |
| Runtime::BufferManagerPtr | bufferManager, | ||
| bool | addTimestamp | ||
| ) |
constructor for a sink format
| schema | the schema |
| append | flag to append or not |
| addTimestamp | flag to add a timestamp in getFormattedBuffer |
|
virtualdefaultnoexcept |
| bool NES::SinkFormat::getAddTimestamp | ( | ) |
References addTimestamp.
| Runtime::BufferManagerPtr NES::SinkFormat::getBufferManager | ( | ) |
References bufferManager.
|
pure virtual |
method to format a TupleBuffer
| a | tuple buffers pointer |
Implemented in NES::NesFormat, NES::JsonFormat, and NES::CsvFormat.
|
pure virtual |
Returns the schema of formatted according to the specific SinkFormat represented as string.
Implemented in NES::NesFormat, NES::JsonFormat, and NES::CsvFormat.
| SchemaPtr NES::SinkFormat::getSchemaPtr | ( | ) |
References schema.
Referenced by NES::NesFormat::getFormattedBuffer().
|
pure virtual |
Implemented in NES::NesFormat, NES::JsonFormat, and NES::CsvFormat.
|
pure virtual |
depending on the SinkFormat type, returns an iterator that can be used to retrieve tuples from the TupleBuffer
| a | tuple buffer pointer |
Implemented in NES::NesFormat, NES::JsonFormat, and NES::CsvFormat.
| void NES::SinkFormat::setAddTimestamp | ( | bool | addTimestamp | ) |
References addTimestamp.
| void NES::SinkFormat::setBufferManager | ( | Runtime::BufferManagerPtr | bufferManager | ) |
| void NES::SinkFormat::setSchemaPtr | ( | SchemaPtr | schema | ) |
|
pure virtual |
method to return the format as a string
Implemented in NES::NesFormat, NES::JsonFormat, and NES::CsvFormat.
|
protected |
|
protected |
Referenced by getBufferManager(), and setBufferManager().
|
protected |