Column
This documentation reflects Arrow JS v4.0. Needs to be updated for the new Arrow API in v9.0 +.
An immutable column data structure consisting of a field (type metadata) and a chunked data array.
Usage
Copy a column
const typedArray = column.slice();
Get a contiguous typed array from a Column (creates a new typed array unless only one chunk)
const typedArray = column.toArray();
columns are iterable
let max = column.get(0);
let min = max;
for (const value of column) {
if (value > max) max = value;
else if (value < min) min = value;
}
Inheritance
Fields
In addition to fields inherited from Chunked, Colum also defines
name : String
The name of the column (short for field.name)
field : Field
Returns the Field instance that describes for the column.
Methods
constructor(field : Field, vectors: Vector, offsets?: Uint32Array)
clone
Returns a new Column instance with the same properties.
getChildAt(index : Number) : Vector
Returns the Vector that contains the element with