|
| RawBufferSink (Runtime::NodeEnginePtr nodeEngine, uint32_t numOfProducers, const std::string &filePath, bool append, SharedQueryId sharedQueryId, DecomposedQueryId decomposedQueryId, DecomposedQueryPlanVersion decomposedQueryVersion, uint64_t numberOfOrigins=1) |
| Create a file sink in migrate format. More...
|
|
| ~RawBufferSink () override |
|
void | setup () override |
| Setup the file sink. This method attempts to open the file. If the file exists, it is first removed, unless append is true. If the file cannot be opened, subsequent calls to writeData will fail. More...
|
|
void | shutdown () override |
| Clean up the file sink. This method closes the file. More...
|
|
bool | writeData (Runtime::TupleBuffer &inputBuffer, Runtime::WorkerContextRef) override |
| Write the contents of a tuple buffer to the file sink. format: buffer size | number of tuples in buffer | sequence number | buffer content uint64_t | uint64_t | uint64_t | buffer size bytes. More...
|
|
std::string | toString () const override |
| Return a string representation of the file sink. More...
|
|
SinkMediumTypes | getSinkMediumType () override |
| Return the type of the sink medium. More...
|
|
| SinkMedium (SinkFormatPtr sinkFormat, Runtime::NodeEnginePtr nodeEngine, uint32_t numOfProducers, SharedQueryId sharedQueryId, DecomposedQueryId decomposedQueryId, DecomposedQueryPlanVersion decomposedQueryVersion) |
| public constructor for data sink More...
|
|
| SinkMedium (SinkFormatPtr sinkFormat, Runtime::NodeEnginePtr nodeEngine, uint32_t numOfProducers, SharedQueryId sharedQueryId, DecomposedQueryId decomposedQueryId, DecomposedQueryPlanVersion decomposedQueryVersion, uint64_t numberOfOrigins) |
| public constructor for data sink More...
|
|
virtual bool | writeData (Runtime::TupleBuffer &inputBuffer, Runtime::WorkerContext &workerContext)=0 |
| method to write a TupleBuffer More...
|
|
SharedQueryId | getSharedQueryId () const |
| get the id of the owning plan More...
|
|
DecomposedQueryId | getParentPlanId () const |
| get the subplan id of the owning plan More...
|
|
DecomposedQueryPlanVersion | getParentPlanVersion () const |
| get the subplan version of the owning plan More...
|
|
uint64_t | getNumberOfWrittenOutBuffers () |
| debug function for testing to get number of written buffers More...
|
|
uint64_t | getNumberOfWrittenOutTuples () |
| debug function for testing to get number of written tuples More...
|
|
SchemaPtr | getSchemaPtr () const |
| method to return the current schema of the sink More...
|
|
std::string | getSinkFormat () |
| method to get the format as string More...
|
|
void | reconfigure (Runtime::ReconfigurationMessage &message, Runtime::WorkerContext &context) override |
|
void | postReconfigurationCallback (Runtime::ReconfigurationMessage &message) override |
|
OperatorId | getOperatorId () const |
| Get operator id. More...
|
|
void | setMigrationFlag () |
| Sets that sink is used for state migration. More...
|
|
bool | isForMigration () const |
| Check whether this sink is used for state migration. More...
|
|
| ~Reconfigurable () NES_NOEXCEPT(false) override=default |
|
| ~virtual_enable_shared_from_this () NES_NOEXCEPT(isNoexceptDestructible) override=default |
|
std::shared_ptr< T1 > | shared_from_this () |
|
std::weak_ptr< T1 > | weak_from_this () |
|
virtual | ~virtual_enable_shared_from_this_base () NES_NOEXCEPT(isNoexceptDestructible)=default |
|
void NES::RawBufferSink::setup |
( |
| ) |
|
|
overridevirtual |