Deserialize a Puffin deletion vector blob into a RoaringBitmap64. Puffin deletion vectors have an 8-byte header followed by the serialized bitmap. @param data Pointer to the raw blob data buffer @param length Length of the blob data in bytes @param output Output parameter for the deserialized RoaringBitmap64 @return Status::OK() on success, error status otherwise
| 144 | /// @param output Output parameter for the deserialized RoaringBitmap64 |
| 145 | /// @return Status::OK() on success, error status otherwise |
| 146 | static Status Deserialize(const uint8_t* data, int64_t length, |
| 147 | RoaringBitmap64* output) { |
| 148 | DCHECK(data != nullptr); |
| 149 | DCHECK(output != nullptr); |
| 150 | |
| 151 | RETURN_IF_ERROR(RoaringBitmap64::Deserialize(data + DELETION_VECTOR_BLOB_HEADER_SIZE, |
| 152 | length - DELETION_VECTOR_BLOB_HEADER_SIZE, output)); |
| 153 | |
| 154 | VLOG(2) << "Deserialized deletion vector with " << output->Cardinality() |
| 155 | << " deleted positions (min: " << output->Min() |
| 156 | << ", max: " << output->Max() << ")"; |
| 157 | |
| 158 | return Status::OK(); |
| 159 | } |
| 160 | }; |
| 161 | |
| 162 | /// Specialized blob reader for Puffin deletion vector blobs. |
nothing calls this directly
no test coverage detected