![]() |
A collection of keys to be batch processed.
Definition at line 34 of file as_batch.h.
#include "as_batch.h"
Collaboration diagram for as_batch:Data Fields | |
| bool | _free |
| struct { | |
| bool _free | |
| as_key * entries | |
| uint32_t size | |
| } | keys |
Related Functions | |
(Note that these are not member functions.) | |
| void | as_batch_destroy (as_batch *batch) |
| as_batch * | as_batch_init (as_batch *batch, uint32_t size) |
| #define | as_batch_inita(__batch, __size) |
| static as_key * | as_batch_keyat (const as_batch *batch, uint32_t i) |
| as_batch * | as_batch_new (uint32_t size) |
|
related |
Initialize a stack allocated as_batch capable of storing capacity keys.
When the batch is no longer needed, then use as_batch_destroy() to release the batch and associated resources.
| batch | The batch to initialize. |
| capacity | The number of keys to allocate. |
|
related |
Initializes as_batch with specified capacity using alloca().
For heap allocation, use as_batch_new().
When the batch is no longer needed, then use as_batch_destroy() to release the batch and associated resources.
| __batch | The query to initialize. |
| __capacity | The number of keys to allocate. |
Definition at line 122 of file as_batch.h.
Get the key at given position of the batch. If the position is not within the allocated capacity for the batchm then NULL is returned.
| batch | The batch to get the key from. |
| i | The position of the key. |
Definition at line 203 of file as_batch.h.
|
related |
Create and initialize a heap allocated as_batch capable of storing capacity keys.
When the batch is no longer needed, then use as_batch_destroy() to release the batch and associated resources.
| capacity | The number of keys to allocate. |
| bool as_batch::_free |
If true, then this structure will be freed when as_batch_destroy() is called.
Definition at line 40 of file as_batch.h.
| as_key* as_batch::entries |
The keys contained by this batch.
Definition at line 61 of file as_batch.h.
| struct { ... } as_batch::keys |
Sequence of keys in the batch.
| uint32_t as_batch::size |
The number of keys this structure contains.
Definition at line 56 of file as_batch.h.