Go to the documentation of this file. 1 #ifndef INDEX_BULKLOADITERATOR_H
2 #define INDEX_BULKLOADITERATOR_H
42 virtual bool Next() = 0;
75 #endif // INDEX_BULKLOADITERATOR_H
BulkLoadIterator(const Schema *key_schema)
Constructs a bulk load iterator with the key_schema.
Definition: BulkLoadIterator.h:24
virtual void EndScan()=0
Ends the scan.
unique_malloced_ptr unique_aligned_alloc(size_t alignment, size_t size)
Wraps an aligned_alloced'd memory space in a std::unique_ptr.
Definition: tdb_base.h:101
virtual bool Next()=0
Subclass should override the Next() function for moving to the next (key, record id) pair.
std::unique_ptr< void, AlignedAllocImpl::FreeMem > unique_malloced_ptr
Definition: tdb_base.h:94
A Schema object stores the information for accessing an ordered set of typed fields either from a dis...
Definition: Schema.h:39
The record ID of a record on a page is a pair of ‘(PageNumber, SlotId)’.
Definition: Record.h:17
An IndexKey stores references to a few data (Datum objects) that comprise a key tuple to in an index.
Definition: IndexKey.h:35
const RecordId & GetCurrentRecordId()
Returns the current record id.
Definition: BulkLoadIterator.h:56
BulkLoadIterator is an interface for providing (key, RecordId) pairs for index bulk loading.
Definition: BulkLoadIterator.h:17
const Schema * m_key_schema
Definition: BulkLoadIterator.h:68
const IndexKey * GetCurrentKey()
Returns the current key.
Definition: BulkLoadIterator.h:48
unique_malloced_ptr m_key
Definition: BulkLoadIterator.h:69
virtual ~BulkLoadIterator()
Destructor.
Definition: BulkLoadIterator.h:33
RecordId m_recid
Definition: BulkLoadIterator.h:70