MCPcopy Create free account
hub / github.com/apache/fory / finish

Method finish

python/pyfory/format/columnar.py:461–469  ·  view source on GitHub ↗

Finish writing and return the RecordBatch. Returns: An Arrow RecordBatch containing all written rows.

(self)

Source from the content-addressed store, hash-verified

459 self._num_rows += 1
460
461 def finish(self):
462 """
463 Finish writing and return the RecordBatch.
464
465 Returns:
466 An Arrow RecordBatch containing all written rows.
467 """
468 columns = [appender.finish() for appender in self._column_appenders]
469 return pa.RecordBatch.from_arrays(columns, schema=self._schema)
470
471 def reset(self):
472 """Reset the writer for reuse."""

Callers 15

test_record_batchFunction · 0.95
test_vectorizedFunction · 0.95
test_vectorized_mapFunction · 0.95
finishMethod · 0.45
finishMethod · 0.45
finishMethod · 0.45
hash_ofFunction · 0.45
fmtMethod · 0.45
fmtMethod · 0.45
bench_read_i32Function · 0.45
bench_read_i64Function · 0.45
bench_read_f32Function · 0.45

Calls

no outgoing calls

Tested by 3

test_record_batchFunction · 0.76
test_vectorizedFunction · 0.76
test_vectorized_mapFunction · 0.76