关注 spark技术分享,
撸spark源码 玩spark最佳实践

ColumnarBatch

ColumnarBatch

ColumnarBatch is…​FIXME

ColumnarBatch is created when:

  • InMemoryTableScanExec is requested to createAndDecompressColumn

  • VectorizedParquetRecordReader is requested to initBatch

  • OrcColumnarBatchReader is requested to initBatch

  • ColumnVectorUtils is requested to toBatch

  • ArrowPythonRunner is requested for a Iterator[ColumnarBatch] (i.e. newReaderIterator)

  • ArrowConverters is requested for a ArrowRowIterator (i.e. fromPayloadIterator)

Note

ColumnarBatch is an Evolving contract that is evolving towards becoming a stable API, but is not a stable API yet and can change from one feature release to another release.

In other words, using the contract is as treading on thin ice.

ColumnarBatch takes an array of ColumnVectors when created. ColumnarBatch initializes the internal MutableColumnarRow.

Table 1. ColumnarBatch’s Internal Properties (e.g. Registries, Counters and Flags)
Name Description

numRows

Number of rows

row

MutableColumnarRow

赞(0) 打赏
未经允许不得转载:spark技术分享 » ColumnarBatch
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏