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

Function garrow_compressed_input_stream_new

c_glib/arrow-glib/input-stream.cpp:1183–1198  ·  view source on GitHub ↗

* garrow_compressed_input_stream_new: * @codec: A #GArrowCodec for compressed data in the @raw. * @raw: A #GArrowInputStream that contains compressed data. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: A newly created #GArrowCompressedInputStream. * * Since: 0.12.0 */

Source from the content-addressed store, hash-verified

1181 * Since: 0.12.0
1182 */
1183GArrowCompressedInputStream *
1184garrow_compressed_input_stream_new(GArrowCodec *codec,
1185 GArrowInputStream *raw,
1186 GError **error)
1187{
1188 auto arrow_codec = garrow_codec_get_raw(codec).get();
1189 auto arrow_raw = garrow_input_stream_get_raw(raw);
1190 auto arrow_stream = arrow::io::CompressedInputStream::Make(arrow_codec, arrow_raw);
1191 if (garrow::check(error, arrow_stream, "[compressed-input-stream][new]")) {
1192 return garrow_compressed_input_stream_new_raw(&(arrow_stream.ValueOrDie()),
1193 codec,
1194 raw);
1195 } else {
1196 return NULL;
1197 }
1198}
1199
1200G_END_DECLS
1201

Callers

nothing calls this directly

Calls 7

garrow_codec_get_rawFunction · 0.85
ValueOrDieMethod · 0.80
checkFunction · 0.70
MakeFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected