![]() |
GridGain C++
|
Binary collection writer. More...
#include <binary_containers.h>
Public Member Functions | |
BinaryCollectionWriter (impl::binary::BinaryWriterImpl *impl, int32_t id) | |
Constructor. More... | |
void | Write (const T &val) |
Write a value. More... | |
void | Close () |
Close the writer. More... | |
Binary collection writer.
Can be used to write collection of values of the specific type one by one.
Use Write() method to write collection value by value, then finilize the writing by calling Close() method. Once the Close() method have been called, instance is not usable and will throw an IgniteError on any subsequent attempt to use it.
|
inline |
Constructor.
Internal call. Should not be used by user.
impl | Writer implementation. |
id | Identifier. |
|
inline |
Close the writer.
This method should be called to finilize writing of the collection.
IgniteError | if the writer instance is closed already. |
|
inline |
Write a value.
val | Value to write. |
IgniteError | if the writer instance is closed already. |