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

Method write

python/pyfory/format/columnar.py:447–459  ·  view source on GitHub ↗

Write a row to the writer. Args: row: A RowData instance containing the row data.

(self, row)

Source from the content-addressed store, hash-verified

445 self._column_readers.append(_get_value_reader(field_type))
446
447 def write(self, row):
448 """
449 Write a row to the writer.
450
451 Args:
452 row: A RowData instance containing the row data.
453 """
454 num_fields = row.num_fields
455 for i in range(num_fields):
456 reader_method = getattr(row, self._column_readers[i])
457 value = reader_method(i)
458 self._column_appenders[i].append(value)
459 self._num_rows += 1
460
461 def finish(self):
462 """

Callers 3

test_record_batchFunction · 0.95
test_vectorizedFunction · 0.95
test_vectorized_mapFunction · 0.95

Calls 1

appendMethod · 0.45

Tested by 3

test_record_batchFunction · 0.76
test_vectorizedFunction · 0.76
test_vectorized_mapFunction · 0.76