exportSync method

RecordBatch exportSync([
  1. RecordBatchCodec codec = const RecordBatchCodec()
])

Implementation

RecordBatch exportSync([RecordBatchCodec codec = const RecordBatchCodec()]) {
  final lease = _owner.lease('DataFrame');
  try {
    final response = _runtime._client.invokeSync('frameExport', {
      'frame': lease.handle.toString(),
    });
    return codec.decode((response['batch'] as Map).cast<String, Object?>());
  } finally {
    lease.end();
  }
}