◆ BatchCollectionChunkScanState()
271939 : ChunkScanState(), collection(collection) {
271940 collection.InitializeScan(state, range);
271941 current_chunk = make_uniq<DataChunk>();
271942 auto &allocator = BufferManager::GetBufferManager(context).GetBufferAllocator();
271943 current_chunk->Initialize(allocator, collection.Types());
271944}
◆ ~BatchCollectionChunkScanState()
| duckdb::BatchCollectionChunkScanState::~BatchCollectionChunkScanState |
( |
| ) |
|
|
override |
◆ LoadNextChunk()
| bool duckdb::BatchCollectionChunkScanState::LoadNextChunk |
( |
ErrorData & | error | ) |
|
|
overridevirtual |
Implements duckdb::ChunkScanState.
271977 {
271978 if (finished) {
271979 return false;
271980 }
271981 InternalLoad(error);
271982 if (ChunkIsEmpty()) {
271983 finished = true;
271984 }
271985 return true;
271986}
◆ HasError()
| bool duckdb::BatchCollectionChunkScanState::HasError |
( |
| ) |
const |
|
overridevirtual |
◆ GetError()
| ErrorData & duckdb::BatchCollectionChunkScanState::GetError |
( |
| ) |
|
|
overridevirtual |
Implements duckdb::ChunkScanState.
271965 {
271966 throw NotImplementedException("BatchDataCollections don't have an internal error object");
271967}
◆ Types()
◆ Names()
| const vector< string > & duckdb::BatchCollectionChunkScanState::Names |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::ChunkScanState.
271973 {
271974 throw NotImplementedException("BatchDataCollections don't have names");
271975}
◆ InternalLoad()
| void duckdb::BatchCollectionChunkScanState::InternalLoad |
( |
ErrorData & | error | ) |
|
|
private |
271949 {
271950 if (state.range.begin == state.range.end) {
271951
271952 current_chunk->SetCardinality(0);
271953 return;
271954 }
271955 offset = 0;
271956 current_chunk->Reset();
271957 collection.Scan(state, *current_chunk);
271958 return;
271959}
The documentation for this class was generated from the following file: