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

Method reset

python/pyfory/format/columnar.py:471–475  ·  view source on GitHub ↗

Reset the writer for reuse.

(self)

Source from the content-addressed store, hash-verified

469 return pa.RecordBatch.from_arrays(columns, schema=self._schema)
470
471 def reset(self):
472 """Reset the writer for reuse."""
473 self._num_rows = 0
474 for appender in self._column_appenders:
475 appender.reset()

Callers 1

test_vectorizedFunction · 0.95

Calls 1

resetMethod · 0.65

Tested by 1

test_vectorizedFunction · 0.76