|
|
page_id_t | starting_page |
|
page_offset_t | starting_offset |
|
idx_t | uncompressed_size = 0 |
|
idx_t | compressed_size = 0 |
|
string_length_t * | string_lengths = nullptr |
|
bool | in_vector = false |
|
idx_t | tuple_count = 0 |
| | Amount of tuples we have seen for the current vector.
|
|
idx_t | vector_size |
| | The expected size of this vector (ZSTD_VECTOR_SIZE except for the last one).
|
◆ ZSTDCompressionVectorState()
| duckdb::ZSTDCompressionVectorState::ZSTDCompressionVectorState |
( |
| ) |
|
|
inline |
◆ AddStringLength()
| bool duckdb::ZSTDCompressionVectorState::AddStringLength |
( |
const string_t & | str | ) |
|
|
inline |
407081 {
407082 string_lengths[
tuple_count++] = UnsafeNumericCast<string_length_t>(str.GetSize());
407084 }
idx_t vector_size
The expected size of this vector (ZSTD_VECTOR_SIZE except for the last one).
Definition duckdb.cpp:407115
idx_t tuple_count
Amount of tuples we have seen for the current vector.
Definition duckdb.cpp:407113
◆ Initialize()
Mark where the vector begins (page_id + page_offset)
Set the string_lengths destination and save in what buffer its stored
Finally forward the current_buffer_ptr to point after all string lengths we'll write
407087 {
407089
407090 auto current_offset = buffer_collection.GetCurrentOffset();
407092 starting_offset = current_offset;
407093 starting_page = buffer_collection.GetCurrentId();
407094
407096 buffer_collection.GetCurrentFlags().SetStringMetadata();
407097 string_lengths = reinterpret_cast<string_length_t *>(buffer_collection.GetCurrentBufferPtr());
407098
407100 buffer_collection.GetCurrentOffset() += expected_tuple_count * sizeof(string_length_t);
407101 }
The documentation for this struct was generated from the following file: