Writes all rows together and returns a position at the start of this combined write.
| 55 | // Writes all rows together and returns a position at the start of this |
| 56 | // combined write. |
| 57 | HashStringAllocator::Position serialize( |
| 58 | const VectorPtr& data, |
| 59 | bool isKey = true) { |
| 60 | ByteOutputStream out(&allocator_); |
| 61 | auto position = allocator_.newWrite(out); |
| 62 | const ContainerRowSerdeOptions options{.isKey = isKey}; |
| 63 | for (auto i = 0; i < data->size(); ++i) { |
| 64 | ContainerRowSerde::serialize(*data, i, out, options); |
| 65 | } |
| 66 | allocator_.finishWrite(out, 0); |
| 67 | return position; |
| 68 | } |
| 69 | |
| 70 | // Writes each row individually and returns positions for individual rows. |
| 71 | std::vector<HashStringAllocator::Position> serializeWithPositions( |
nothing calls this directly
no test coverage detected