|
|
DUCKDB_API | ColumnDataCollection (Allocator &allocator, vector< LogicalType > types) |
| | Constructs an in-memory column data collection from an allocator.
|
| |
|
DUCKDB_API | ColumnDataCollection (Allocator &allocator) |
| | Constructs an empty (but valid) in-memory column data collection from an allocator.
|
| |
|
DUCKDB_API | ColumnDataCollection (BufferManager &buffer_manager, vector< LogicalType > types, ColumnDataCollectionLifetime lifetime=ColumnDataCollectionLifetime::REGULAR) |
| | Constructs a buffer-managed column data collection.
|
| |
|
DUCKDB_API | ColumnDataCollection (ClientContext &context, vector< LogicalType > types, ColumnDataAllocatorType type=ColumnDataAllocatorType::BUFFER_MANAGER_ALLOCATOR, ColumnDataCollectionLifetime lifetime=ColumnDataCollectionLifetime::REGULAR) |
| | Constructs either an in-memory or a buffer-managed column data collection.
|
| |
| DUCKDB_API | ColumnDataCollection (ColumnDataCollection &parent) |
| |
|
DUCKDB_API | ColumnDataCollection (shared_ptr< ColumnDataAllocator > allocator, vector< LogicalType > types) |
| |
| vector< LogicalType > & | Types () |
| | The types of columns in the ColumnDataCollection.
|
| |
| const vector< LogicalType > & | Types () const |
| |
| const idx_t & | Count () const |
| | The amount of rows in the ColumnDataCollection.
|
| |
| idx_t | ColumnCount () const |
| | The amount of columns in the ColumnDataCollection.
|
| |
|
idx_t | SizeInBytes () const |
| | The size (in bytes) of this ColumnDataCollection.
|
| |
|
idx_t | AllocationSize () const |
| | The allocation size (in bytes) of this ColumnDataCollection - this property is cached.
|
| |
|
void | SetPartitionIndex (idx_t index) |
| | Sets the partition index of this ColumnDataCollection.
|
| |
|
DUCKDB_API Allocator & | GetAllocator () const |
| | Get the allocator.
|
| |
|
DUCKDB_API void | InitializeAppend (ColumnDataAppendState &state) |
| | Initializes an Append state - useful for optimizing many appends made to the same column data collection.
|
| |
|
DUCKDB_API void | Append (ColumnDataAppendState &state, DataChunk &new_chunk) |
| | Append a DataChunk to this ColumnDataCollection using the specified append state.
|
| |
|
DUCKDB_API void | InitializeScanChunk (DataChunk &chunk) const |
| | Initializes a chunk with the correct types that can be used to call Scan.
|
| |
|
DUCKDB_API void | InitializeScanChunk (Allocator &allocator, DataChunk &chunk) const |
| |
|
DUCKDB_API void | InitializeScanChunk (ColumnDataScanState &state, DataChunk &chunk) const |
| | Initializes a chunk with the correct types for a given scan state.
|
| |
|
DUCKDB_API void | InitializeScan (ColumnDataScanState &state, ColumnDataScanProperties properties=ColumnDataScanProperties::ALLOW_ZERO_COPY) const |
| | Initializes a Scan state for scanning all columns.
|
| |
|
DUCKDB_API void | InitializeScan (ColumnDataScanState &state, vector< column_t > column_ids, ColumnDataScanProperties properties=ColumnDataScanProperties::ALLOW_ZERO_COPY) const |
| | Initializes a Scan state for scanning a subset of the columns.
|
| |
|
DUCKDB_API void | InitializeScan (ColumnDataParallelScanState &state, ColumnDataScanProperties properties=ColumnDataScanProperties::ALLOW_ZERO_COPY) const |
| | Initialize a parallel scan over the column data collection over all columns.
|
| |
|
DUCKDB_API void | InitializeScan (ColumnDataParallelScanState &state, vector< column_t > column_ids, ColumnDataScanProperties properties=ColumnDataScanProperties::ALLOW_ZERO_COPY) const |
| | Initialize a parallel scan over the column data collection over a subset of the columns.
|
| |
|
DUCKDB_API bool | Scan (ColumnDataScanState &state, DataChunk &result) const |
| | Scans a DataChunk from the ColumnDataCollection.
|
| |
|
DUCKDB_API bool | Scan (ColumnDataParallelScanState &state, ColumnDataLocalScanState &lstate, DataChunk &result) const |
| | Scans a DataChunk from the ColumnDataCollection.
|
| |
|
DUCKDB_API void | Append (DataChunk &new_chunk) |
| | Append a DataChunk directly to this ColumnDataCollection - calls InitializeAppend and Append internally.
|
| |
|
DUCKDB_API void | Combine (ColumnDataCollection &other) |
| | Appends the other ColumnDataCollection to this, destroying the other data collection.
|
| |
|
DUCKDB_API void | Verify () |
| |
|
DUCKDB_API string | ToString () const |
| |
|
DUCKDB_API void | Print () const |
| |
|
DUCKDB_API void | Reset () |
| |
|
DUCKDB_API idx_t | ChunkCount () const |
| | Returns the number of data chunks present in the ColumnDataCollection.
|
| |
|
DUCKDB_API void | FetchChunk (idx_t chunk_idx, DataChunk &result) const |
| | Fetch an individual chunk from the ColumnDataCollection.
|
| |
| DUCKDB_API ColumnDataChunkIterationHelper | Chunks () const |
| |
| DUCKDB_API ColumnDataChunkIterationHelper | Chunks (vector< column_t > column_ids) const |
| |
| DUCKDB_API ColumnDataRowIterationHelper | Rows () const |
| |
| DUCKDB_API ColumnDataRowCollection | GetRows () const |
| |
|
bool | NextScanIndex (ColumnDataScanState &state, idx_t &chunk_index, idx_t &segment_index, idx_t &row_index) const |
| | Obtains the next scan index to scan from.
|
| |
|
bool | PrevScanIndex (ColumnDataScanState &state, idx_t &chunk_index, idx_t &segment_index, idx_t &row_index) const |
| | Obtains the previous scan index to scan from.
|
| |
|
void | ScanAtIndex (ColumnDataParallelScanState &state, ColumnDataLocalScanState &lstate, DataChunk &result, idx_t chunk_index, idx_t segment_index, idx_t row_index) const |
| | Scans at the indices (obtained from NextScanIndex)
|
| |
| bool | Seek (idx_t row_idx, ColumnDataScanState &state, DataChunk &result) const |
| |
|
void | Initialize (vector< LogicalType > types) |
| | Initialize the column data collection.
|
| |
|
vector< shared_ptr< StringHeap > > | GetHeapReferences () |
| | Get references to the string heaps in this ColumnDataCollection.
|
| |
|
ColumnDataAllocatorType | GetAllocatorType () const |
| | Get the allocator type of this ColumnDataCollection.
|
| |
|
BufferManager & | GetBufferManager () const |
| | Get the buffer manager of the allocator.
|
| |
|
const vector< unique_ptr< ColumnDataCollectionSegment > > & | GetSegments () const |
| | Get a vector of the segments in this ColumnDataCollection.
|
| |
|
void | Serialize (Serializer &serializer) const |
| |
The ColumnDataCollection represents a set of (buffer-managed) data stored in columnar format It is efficient to read and scan