| 852 | } |
| 853 | |
| 854 | static void |
| 855 | garrow_feather_write_properties_class_init(GArrowFeatherWritePropertiesClass *klass) |
| 856 | { |
| 857 | auto gobject_class = G_OBJECT_CLASS(klass); |
| 858 | |
| 859 | gobject_class->finalize = garrow_feather_write_properties_finalize; |
| 860 | gobject_class->set_property = garrow_feather_write_properties_set_property; |
| 861 | gobject_class->get_property = garrow_feather_write_properties_get_property; |
| 862 | |
| 863 | auto properties = arrow::ipc::feather::WriteProperties::Defaults(); |
| 864 | GParamSpec *spec; |
| 865 | // TODO: version |
| 866 | // TODO: chunk_size |
| 867 | |
| 868 | /** |
| 869 | * GArrowFeatherWriteProperties:compression: |
| 870 | * |
| 871 | * Compression type to use. Only |
| 872 | * %GARROW_COMPRESSION_TYPE_UNCOMPRESSED, |
| 873 | * %GARROW_COMPRESSION_TYPE_LZ4 and %GARROW_COMPRESSION_TYPE_ZSTD |
| 874 | * are supported. The default compression is |
| 875 | * %GARROW_COMPRESSION_TYPE_LZ4 if Apache Arrow C++ is built with |
| 876 | * support for it, otherwise %GARROW_COMPRESSION_TYPE_UNCOMPRESSED. |
| 877 | * %GARROW_COMPRESSION_TYPE_UNCOMPRESSED is set as the object |
| 878 | * default here. |
| 879 | * |
| 880 | * Since: 0.17.0 |
| 881 | */ |
| 882 | spec = g_param_spec_enum("compression", |
| 883 | "Compression", |
| 884 | "The compression type to use", |
| 885 | GARROW_TYPE_COMPRESSION_TYPE, |
| 886 | properties.compression, |
| 887 | static_cast<GParamFlags>(G_PARAM_READWRITE)); |
| 888 | g_object_class_install_property(gobject_class, PROP_COMPRESSION, spec); |
| 889 | // TODO: compression_level |
| 890 | } |
| 891 | |
| 892 | /** |
| 893 | * garrow_feather_write_properties_new: |
nothing calls this directly
no test coverage detected