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