Table of Contents

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

shredded ShredResult

The shredded (value, typed_value) pair.

schema ShredSchema

The shredding schema that was used to produce the result.

metadata ReadOnlySpan<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).