Class VariantUnshredder
- Namespace
- Apache.Arrow.Operations.Shredding
- Assembly
- Apache.Arrow.Operations.dll
Reconstructs VariantValues from shredded (value, typed_value) pairs according to a ShredSchema. The residual Value bytes are interpreted against the column-level variant metadata supplied to Reconstruct(ShredResult, ShredSchema, ReadOnlySpan<byte>).
public static class VariantUnshredder
- Inheritance
-
VariantUnshredder
- Inherited Members
Methods
Reconstruct(ShredResult, ShredSchema, ReadOnlySpan<byte>)
Reconstructs a variant value from a shredded result.
public static VariantValue? Reconstruct(ShredResult shredded, ShredSchema schema, ReadOnlySpan<byte> metadata)
Parameters
shreddedShredResultThe shredded (value, typed_value) pair.
schemaShredSchemaThe shredding schema that was used to produce the result.
metadataReadOnlySpan<byte>The column-level variant metadata bytes.
Returns
- VariantValue?
The reconstructed VariantValue, or null if the field is missing (both value and typed_value are null).