Expand description
An in-memory encoding that repeats a child array end to end.
Row i of a RepeatedArray with child c is row i % c.len() of c. Its length is any
number of rows, so the last repetition may be cut short: repeating [1, 2, 3] to 7 rows gives
[1, 2, 3, 1, 2, 3, 1]. Any slice of a RepeatedArray is therefore another RepeatedArray
over the child rotated to the slice’s start, or a slice of the child.
Execution decodes the child once. A nested child (struct, list, fixed-size list, extension or Variant) then executes to the same container over repeated children, so no values are copied; any other child is appended once per copy.
Repeated has no wire form, so the default ArraySession does not register it, and an array
that holds a Repeated cannot be serialized.
Structs§
- Repeated
- The encoding of a
RepeatedArray. - Repeated
Slots - The child slots of a
RepeatedArray. - Repeated
Slots View - Borrowed view of
RepeatedSlots.
Traits§
- Repeated
Array Slots Ext - Typed slot accessors for
Repeatedarrays.
Type Aliases§
- Repeated
Array - A
Repeated-encoded array, which repeats its child end to end.