Top | ![]() |
![]() |
![]() |
![]() |
GInputStream * | raw | Read / Write / Construct Only |
GArrowBuffer * | buffer | Read / Write / Construct Only |
GArrowCodec * | codec | Read / Write / Construct Only |
GArrowInputStream * | raw | Read / Write / Construct Only |
gpointer | input-stream | Write / Construct Only |
GObject ╰── GInputStream ╰── GArrowInputStream ├── GArrowSeekableInputStream │ ├── GArrowBufferInputStream │ ├── GArrowGIOInputStream │ ╰── GArrowMemoryMappedInputStream ├── GArrowCompressedInputStream ├── GArrowCompressedInputStream ╰── GArrowSeekableInputStream ├── GArrowBufferInputStream │ ╰── GArrowCUDABufferInputStream ├── GArrowGIOInputStream ╰── GArrowMemoryMappedInputStream
GArrowMemoryMappedInputStream implements GArrowFile and GArrowReadable.
GArrowGIOInputStream implements GArrowFile and GArrowReadable.
GArrowBufferInputStream implements GArrowFile and GArrowReadable.
GArrowCompressedInputStream implements GArrowFile and GArrowReadable.
GArrowInputStream implements GArrowFile and GArrowReadable.
GArrowSeekableInputStream implements GArrowFile and GArrowReadable.
GArrowInputStream is a base class for input stream.
GArrowSeekableInputStream is a base class for input stream that supports random access.
GArrowBufferInputStream is a class to read data on buffer.
GArrowMemoryMappedInputStream is a class to read data in file by mapping the file on memory. It supports zero copy.
GArrowGIOInputStream is a class for GInputStream
based input
stream.
GArrowCompressedInputStream is a class to read data from compressed input stream.
gboolean garrow_input_stream_advance (GArrowInputStream *input_stream
,gint64 n_bytes
,GError **error
);
input_stream |
||
n_bytes |
The number of bytes to be advanced. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.11.0
gboolean garrow_input_stream_align (GArrowInputStream *input_stream
,gint32 alignment
,GError **error
);
input_stream |
||
alignment |
The byte multiple for the metadata prefix, usually 8 or 64, to ensure the body starts on a multiple of that alignment. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.11.0
GArrowTensor * garrow_input_stream_read_tensor (GArrowInputStream *input_stream
,GError **error
);
Since: 0.11.0
GArrowRecordBatch * garrow_input_stream_read_record_batch (GArrowInputStream *input_stream
,GArrowSchema *schema
,GArrowReadOptions *options
,GError **error
);
input_stream |
||
schema |
A GArrowSchema for a read record batch. |
|
options |
[nullable] | |
error |
Return location for a GError or |
[nullable] |
Since: 1.0.0
guint64 garrow_seekable_input_stream_get_size (GArrowSeekableInputStream *input_stream
,GError **error
);
gboolean
garrow_seekable_input_stream_get_support_zero_copy
(GArrowSeekableInputStream *input_stream
);
GArrowBuffer * garrow_seekable_input_stream_read_at (GArrowSeekableInputStream *input_stream
,gint64 position
,gint64 n_bytes
,GError **error
);
input_stream |
||
position |
The read start position. |
|
n_bytes |
The number of bytes to be read. |
|
error |
Return location for a GError or |
[nullable] |
GArrowBuffer that has read
data on success, NULL
if there was an error.
[transfer full][nullable]
GBytes * garrow_seekable_input_stream_read_at_bytes (GArrowSeekableInputStream *input_stream
,gint64 position
,gint64 n_bytes
,GError **error
);
input_stream |
||
position |
The read start position. |
|
n_bytes |
The number of bytes to be read. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.15.0
GBytes * garrow_seekable_input_stream_peek (GArrowSeekableInputStream *input_stream
,gint64 n_bytes
,GError **error
);
input_stream |
||
n_bytes |
The number of bytes to be peeked. |
|
error |
Return location for a GError or |
[nullable] |
The data of the buffer, up to the indicated number. The data becomes invalid after any operation on the stream. If the stream is unbuffered, the data is empty.
It should be freed with g_bytes_unref()
when no longer needed.
[transfer full]
Since: 0.12.0
GArrowBufferInputStream *
garrow_buffer_input_stream_new (GArrowBuffer *buffer
);
GArrowBuffer *
garrow_buffer_input_stream_get_buffer (GArrowBufferInputStream *input_stream
);
GArrowMemoryMappedInputStream * garrow_memory_mapped_input_stream_new (const gchar *path
,GError **error
);
GArrowGIOInputStream *
garrow_gio_input_stream_new (GInputStream *gio_input_stream
);
Since: 0.5.0
GInputStream *
garrow_gio_input_stream_get_raw (GArrowGIOInputStream *input_stream
);
garrow_gio_input_stream_get_raw
has been deprecated since version 0.12.0 and should not be used in newly-written code.
Use GArrowGIOInputStream::raw property instead.
Since: 0.5.0
GArrowCompressedInputStream * garrow_compressed_input_stream_new (GArrowCodec *codec
,GArrowInputStream *raw
,GError **error
);
codec |
A GArrowCodec for compressed data in the |
|
raw |
A GArrowInputStream that contains compressed data. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.12.0
struct GArrowSeekableInputStreamClass { GArrowInputStreamClass parent_class; };
struct GArrowBufferInputStreamClass { GArrowSeekableInputStreamClass parent_class; };
struct GArrowMemoryMappedInputStream;
It wraps arrow::io::MemoryMappedFile
.
struct GArrowCompressedInputStreamClass { GArrowInputStreamClass parent_class; };
typedef struct _GArrowCompressedInputStream GArrowCompressedInputStream;
“raw”
property “raw” GInputStream *
The raw GInputStream *.
Flags: Read / Write / Construct Only
“codec”
property“codec” GArrowCodec *
The codec for the stream.
Flags: Read / Write / Construct Only
“raw”
property“raw” GArrowInputStream *
The underlying raw input stream.
Flags: Read / Write / Construct Only