import_pivot_cache_records
Defined in header: <orcus/spreadsheet/import_interface_pivot.hpp>
-
class import_pivot_cache_records
Interface for importing pivot cache records.
Public Functions
-
virtual ~import_pivot_cache_records()
-
virtual void set_record_count(size_t n) = 0
Set the number of records included in pivot cache records.
Note
This method gets called before the very first record gets imported. The implementor can use this call as an opportunity to initialize any internal buffers used to store the imported records.
- Parameters:
n – number of records included in pivot cache records.
-
virtual void append_record_value_numeric(double v) = 0
Append to the current record buffer a numeric value as a column value.
- Parameters:
v – numeric value to append to the current record buffer as a column value.
-
virtual void append_record_value_character(std::string_view s) = 0
Append to the current record buffer a character value as a column value.
- Parameters:
s – character value to append to the current record buffer as a column value.
Append to the current record buffer a column value referenced by an index into the shared items table of a pivot cache field. The corresponding field in the pivot cache definition should provide the shared items table that this index references.
- Parameters:
index – index into the shared items table of a pivot cache field.
-
virtual void commit_record() = 0
Commit the record in the current record buffer.
The implementor can clear the buffer afterward.
-
virtual void commit() = 0
Commit the entire records set to the document store.
-
virtual ~import_pivot_cache_records()