BulkLoadIterator is an interface for providing (key, RecordId) pairs for index bulk loading.
More...
#include <index/BulkLoadIterator.h>
BulkLoadIterator is an interface for providing (key, RecordId) pairs for index bulk loading.
Different use cases may implement the Next() virtual function differently to iterate and construct the keys and record ids.
◆ BulkLoadIterator()
taco::BulkLoadIterator::BulkLoadIterator |
( |
const Schema * |
key_schema | ) |
|
|
inline |
Constructs a bulk load iterator with the key_schema
.
The key_schema
must remain alive for the duration that the bulk load iterator is alive.
◆ ~BulkLoadIterator()
virtual taco::BulkLoadIterator::~BulkLoadIterator |
( |
| ) |
|
|
inlinevirtual |
◆ EndScan()
virtual void taco::BulkLoadIterator::EndScan |
( |
| ) |
|
|
pure virtual |
◆ GetCurrentKey()
const IndexKey* taco::BulkLoadIterator::GetCurrentKey |
( |
| ) |
|
|
inline |
Returns the current key.
Undefined if Next() has not been called or a previous call returns false
.
◆ GetCurrentRecordId()
const RecordId& taco::BulkLoadIterator::GetCurrentRecordId |
( |
| ) |
|
|
inline |
Returns the current record id.
Undefined if Next() has not been called or a previous call returns false
.
◆ Next()
virtual bool taco::BulkLoadIterator::Next |
( |
| ) |
|
|
pure virtual |
◆ m_key
◆ m_key_schema
const Schema* taco::BulkLoadIterator::m_key_schema |
|
protected |
◆ m_recid
RecordId taco::BulkLoadIterator::m_recid |
|
protected |
The documentation for this class was generated from the following file: