Go to the documentation of this file. 1 #ifndef EXECUTION_TABLESCANSTATE_H
2 #define EXECUTION_TABLESCANSTATE_H
32 std::vector<NullableDatumRef>
get_record()
override;
34 void close()
override;
void node_properties_to_string(std::string &buf, int indent) const override
Definition: TableScanState.cpp:52
bool m_extracted
Definition: TableScanState.h:52
A DatumRef object is a read-only reference to an C++ object of a supported runtime type.
Definition: datum.h:823
std::vector< Datum > m_fields
Definition: TableScanState.h:56
Table::Iterator m_tabiter
Definition: TableScanState.h:55
~TableScanState() override
Definition: TableScanState.cpp:45
Datum save_position() const override
Returns a saved position where this plan execution state is at.
Definition: TableScanState.cpp:127
The Iterator interface for scanning the heap file.
Definition: Table.h:185
std::vector< NullableDatumRef > get_record() override
Return the deserialized output record to which this execution state currently points.
Definition: TableScanState.cpp:87
void rewind() override
Rewind the execution state as if it has just been initialized.
Definition: TableScanState.cpp:118
TableScanState(const TableScan *plan, std::unique_ptr< Table > table)
Definition: TableScanState.cpp:31
std::unique_ptr< Table > m_table
Definition: TableScanState.h:54
TableScanState is the execution state for heap file table scan.
Definition: TableScanState.h:22
PlanExecState is an abstract interface for execution state of various query plan.
Definition: PlanExecState.h:19
bool next_tuple() override
Moves the iterator of this execution state to the next output record.
Definition: TableScanState.cpp:66
A Datum stores and possibly manage the memory resource of a read-only value of a plain fixed-length C...
Definition: datum.h:250
const PlanNode * get_plan() const
Returns the corresponding plan.
Definition: TableScanState.h:43
bool m_at_end
Definition: TableScanState.h:53
PlanNode is an abstract interface representing physical query plan that does not bound with any parti...
Definition: PlanNode.h:26
TableScan is the physical plan for heap file table scanning.
Definition: TableScan.h:18
void close() override
Clear internal states, mark we have finish retrieving output records from this execution state,...
Definition: TableScanState.cpp:111
const TableScan * m_plan
Definition: TableScanState.h:50
void init() override
Initialize this plan execution state, set m_initialized to true and initialize all corresponding stat...
Definition: TableScanState.cpp:57