Class VariantUnshredder
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, or null for a SQL-NULL row as produced by Shred(IEnumerable<VariantValue?>, ShredSchema).
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
shreddedis null (a SQL-NULL row) or the field is missing (both value and typed_value are null).