Chevron DownCommand-Line Reference
Chevron DownAPI Reference

Column

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

Column extends Chunked

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