◆ CollectionScanState()
| duckdb::CollectionScanState::CollectionScanState |
( |
TableScanState & | parent_p | ) |
|
|
explicit |
437514 valid_sel(STANDARD_VECTOR_SIZE), random(-1), parent(parent_p) {
437515}
SelectionVector valid_sel
The valid selection.
Definition duckdb.cpp:75054
idx_t vector_index
The vector index within the row_group.
Definition duckdb.cpp:75042
shared_ptr< RowGroupSegmentTree > row_groups
Row group segment tree we are scanning.
Definition duckdb.cpp:75048
idx_t max_row_group_row
The maximum row within the row group.
Definition duckdb.cpp:75044
idx_t max_row
The total maximum row index.
Definition duckdb.cpp:75050
idx_t batch_index
The current batch index.
Definition duckdb.cpp:75052
optional_ptr< SegmentNode< RowGroup > > row_group
The current row_group we are scanning.
Definition duckdb.cpp:75040
◆ Initialize()
433253 {
433254 auto &column_ids = GetColumnIds();
433257 for (
idx_t i = 0; i < column_ids.size(); i++) {
433259 }
433260 for (
idx_t i = 0; i < column_ids.size(); i++) {
433261 if (column_ids[i].IsRowIdColumn()) {
433262 continue;
433263 }
433264 auto index = column_ids[i].GetPrimaryIndex();
433265 auto &type = types[
index];
433266 column_scans[i].Initialize(context, type, column_ids[i], &GetOptions());
433267 }
433268}
unsafe_vector< ColumnScanState > column_scans
Child column scans.
Definition duckdb.cpp:75046
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
◆ GetColumnIds()
437475 {
437476 return parent.GetColumnIds();
437477}
◆ GetFilterInfo()
437481 {
437482 return parent.GetFilterInfo();
437483}
◆ GetSamplingInfo()
437485 {
437486 return parent.GetSamplingInfo();
437487}
◆ GetOptions()
437489 {
437490 return parent.options;
437491}
◆ GetNextRowGroup() [1/2]
437517 {
437520 }
437522}
unique_ptr< RowGroupReorderer > reorderer
Optional state for custom row group ordering.
Definition duckdb.cpp:75059
◆ GetNextRowGroup() [2/2]
◆ GetRootSegment()
437530 {
437533 }
437535}
◆ Scan() [1/2]
437537 {
437539 row_group->GetNode().Scan(TransactionData(transaction), *
this, result);
437540 if (result.size() > 0) {
437541 return true;
437542 }
437545 return false;
437546 }
437547 do {
437548 row_group = GetNextRowGroup(*row_group).get();
437552 break;
437553 }
437555 if (scan_row_group) {
437556
437557 break;
437558 }
437559 }
437561 }
437562 return false;
437563}
◆ Scan() [2/2]
437565 {
437567 row_group->GetNode().Scan(*
this, result, type);
437568 if (result.size() > 0) {
437569 return true;
437570 }
437571
437572 if (l) {
437574 } else {
437575 row_group = GetNextRowGroup(*row_group).get();
437576 }
437579 }
437580 }
437581 return false;
437582}
The documentation for this class was generated from the following file: