Table of Contents

Class VariantArrayShreddingExtensions

Namespace
Apache.Arrow.Operations.Shredding
Assembly
Apache.Arrow.Operations.dll

Shredding-aware extensions on VariantArray. Provides both transparent materialization (GetLogicalVariantValue(VariantArray, int)) and a reader-style API (GetShreddedVariant(VariantArray, int)) that exposes typed columns and residual bytes side-by-side.

public static class VariantArrayShreddingExtensions
Inheritance
VariantArrayShreddingExtensions
Inherited Members

Methods

GetLogicalVariantValue(VariantArray, int)

Materializes the element at index into a logical VariantValue, transparently merging shredded columns and residual bytes. Works for both shredded and unshredded columns.

public static VariantValue GetLogicalVariantValue(this VariantArray array, int index)

Parameters

array VariantArray
index int

Returns

VariantValue

GetShredSchema(VariantArray)

Gets the ShredSchema for a variant array, derived from its Arrow storage type. Returns Unshredded() for unshredded columns.

public static ShredSchema GetShredSchema(this VariantArray array)

Parameters

array VariantArray

Returns

ShredSchema

GetShreddedVariant(VariantArray, int)

Gets a ShreddedVariant reader for the element at the given index. Exposes typed-column access and residual bytes without materializing the full logical variant. Works for both shredded and unshredded columns.

public static ShreddedVariant GetShreddedVariant(this VariantArray array, int index)

Parameters

array VariantArray
index int

Returns

ShreddedVariant

Exceptions

InvalidOperationException

If the element is null.