MCPcopy Create free account
hub / github.com/apache/arrow / garrow_table_write_as_feather

Function garrow_table_write_as_feather

c_glib/arrow-glib/table.cpp:916–933  ·  view source on GitHub ↗

* garrow_table_write_as_feather: * @table: A #GArrowTable. * @sink: The output. * @properties: (nullable): The properties for this write. * @error: (nullable): Return location for a #GError or %NULL. * * Writes the @table as Feather format data to the @sink. * * Returns: %TRUE on success, %FALSE if there was an error. * * Since: 0.17.0 */

Source from the content-addressed store, hash-verified

914 * Since: 0.17.0
915 */
916gboolean
917garrow_table_write_as_feather(GArrowTable *table,
918 GArrowOutputStream *sink,
919 GArrowFeatherWriteProperties *properties,
920 GError **error)
921{
922 auto arrow_table = garrow_table_get_raw(table);
923 auto arrow_sink = garrow_output_stream_get_raw(sink);
924 arrow::Status status;
925 if (properties) {
926 auto arrow_properties = garrow_feather_write_properties_get_raw(properties);
927 status =
928 arrow::ipc::feather::WriteTable(*arrow_table, arrow_sink.get(), *arrow_properties);
929 } else {
930 status = arrow::ipc::feather::WriteTable(*arrow_table, arrow_sink.get());
931 }
932 return garrow::check(error, status, "[feather-write-file]");
933}
934
935G_END_DECLS
936

Callers

nothing calls this directly

Calls 6

garrow_table_get_rawFunction · 0.85
checkFunction · 0.70
WriteTableFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected