How to use the apache-arrow/Arrow.es5.min.RecordBatch function in apache-arrow

To help you get started, we’ve selected a few apache-arrow examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github uber-web / loaders.gl / modules / arrow / src / lib / arrow-table-batch.js View on Github external
getNormalizedBatch() {
    const batch = super.getNormalizedBatch();
    if (batch) {
      // Get the arrow schema
      this.arrowSchema = this.arrowSchema || getArrowSchema(batch.schema);
      // Get arrow format vectors
      const arrowVectors = getArrowVectors(this.arrowSchema, batch.data);
      // Create the record batch
      // new RecordBatch(schema, numRows, vectors, ...);
      return new RecordBatch(this.arrowSchema, batch.length, arrowVectors);
    }

    return null;
  }
}