* 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 */
| 914 | * Since: 0.17.0 |
| 915 | */ |
| 916 | gboolean |
| 917 | garrow_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 | |
| 935 | G_END_DECLS |
| 936 |
nothing calls this directly
no test coverage detected