Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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;
}
}