MCPcopy Create free account
hub / github.com/apache/impala / Deserialize

Method Deserialize

be/src/exec/blob-reader.h:146–159  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 4

OKFunction · 0.85
CardinalityMethod · 0.80
MinMethod · 0.45
MaxMethod · 0.45

Tested by

no test coverage detected