fromArrowCStream method
- ArrowCStream stream, {
- required int maxBatches,
- required int maxRows,
Imports an Arrow C Stream Interface stream as a DataFrame.
Import stops with an error rather than exceeding maxBatches batches or
maxRows rows. Both limits must be positive.
Implementation
DataFrame fromArrowCStream(
ArrowCStream stream, {
required int maxBatches,
required int maxRows,
}) {
_validatePositive(maxBatches, 'maxBatches');
_validatePositive(maxRows, 'maxRows');
return _adoptFrame({
'handle': _arrowC.importFrameStream(stream, maxBatches, maxRows),
});
}