12 #ifndef THRILL_DATA_DISCARD_SINK_HEADER 13 #define THRILL_DATA_DISCARD_SINK_HEADER 68 #endif // !THRILL_DATA_DISCARD_SINK_HEADER Block combines a reference to a read-only ByteBlock and book-keeping information. ...
static constexpr bool allocate_can_fail_
BlockWriter contains a temporary Block object into which a) any serializable item can be stored or b)...
void AppendBlock(const Block &, bool) final
Discards a Block.
void Close() final
Closes the sink.
Pool to allocate, keep, swap out/in, and free all ByteBlocks on the host.
DiscardSink is an BlockSink that discards all Blocks delivered to it.
size_t local_worker_id() const
local worker id to associate pinned block with
BlockPool * block_pool() const
Returns block_pool_.
bool closed() const
return close flag
DiscardSink(BlockPool &block_pool, size_t local_worker_id)
Create discarding BlockSink.
Pure virtual base class for all things that can receive Blocks from a BlockWriter.
void AppendBlock(Block &&, bool) final
Discards a Block.