1 #ifndef EXECUTION_TEMPTABLESTATE_H
2 #define EXECUTION_TEMPTABLESTATE_H
26 std::vector<NullableDatumRef>
get_record()
override;
28 void close()
override;
A DatumRef object is a read-only reference to an C++ object of a supported runtime type.
Definition: datum.h:823
A Datum stores and possibly manage the memory resource of a read-only value of a plain fixed-length C...
Definition: datum.h:250
PlanExecState is an abstract interface for execution state of various query plan.
Definition: PlanExecState.h:19
PlanNode is an abstract interface representing physical query plan that does not bound with any parti...
Definition: PlanNode.h:26
TempTableState is the execution state for a in-memory temp table scan.
Definition: TempTableState.h:16
const TempTable * m_plan
Definition: TempTableState.h:44
~TempTableState() override
Definition: TempTableState.cpp:9
TempTableState(const TempTable *plan)
Definition: TempTableState.cpp:5
Datum save_position() const override
Returns a saved position where this plan execution state is at.
Definition: TempTableState.cpp:57
std::vector< NullableDatumRef > get_record() override
Return the deserialized output record to which this execution state currently points.
Definition: TempTableState.cpp:35
const PlanNode * get_plan() const override
Returns the corresponding plan.
Definition: TempTableState.h:33
void rewind() override
Rewind the execution state as if it has just been initialized.
Definition: TempTableState.cpp:51
void close() override
Clear internal states, mark we have finish retrieving output records from this execution state,...
Definition: TempTableState.cpp:45
bool next_tuple() override
Moves the iterator of this execution state to the next output record.
Definition: TempTableState.cpp:28
void init() override
Initialize this plan execution state, set m_initialized to true and initialize all corresponding stat...
Definition: TempTableState.cpp:21
void node_properties_to_string(std::string &buf, int indent) const override
Definition: TempTableState.cpp:16
int64_t m_pos
Definition: TempTableState.h:46
TempTable is the physical plan for scanning on a temp in-memory table.
Definition: TempTable.h:18