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 │ ├── GArrowFileInputStream │ ├── GArrowGIOInputStream │ ├── GArrowMemoryMappedInputStream │ ╰── GArrowMemoryMappedInputStream ├── GArrowCompressedInputStream ├── GArrowCompressedInputStream ╰── GArrowSeekableInputStream ├── GArrowBufferInputStream │ ╰── GArrowCUDABufferInputStream ├── GArrowFileInputStream ╰── GArrowGIOInputStream
GArrowGIOInputStream implements GArrowFile and GArrowReadable.
GArrowBufferInputStream implements GArrowFile and GArrowReadable.
GArrowCompressedInputStream implements GArrowFile and GArrowReadable.
GArrowFileInputStream implements GArrowFile and GArrowReadable.
GArrowInputStream implements GArrowFile and GArrowReadable.
GArrowMemoryMappedInputStream 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.
GArrowFileInputStream is a class to read data in file.
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
);
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 |
[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 |
[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 |
[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 |
[nullable] |
Since: 0.15.0
GBytes * garrow_seekable_input_stream_peek (GArrowSeekableInputStream *input_stream
,gint64 n_bytes
,GError **error
);
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
);
GArrowFileInputStream * garrow_file_input_stream_new (const gchar *path
,GError **error
);
Since: 6.0.0
GArrowFileInputStream * garrow_file_input_stream_new_file_descriptor (gint file_descriptor
,GError **error
);
Since: 6.0.0
gint
garrow_file_input_stream_get_file_descriptor
(GArrowFileInputStream *stream
);
Since: 6.0.0
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 |
[nullable] |
Since: 0.12.0
struct GArrowSeekableInputStreamClass { GArrowInputStreamClass parent_class; };
struct GArrowBufferInputStreamClass { GArrowSeekableInputStreamClass parent_class; };
#define GARROW_TYPE_FILE_INPUT_STREAM (garrow_file_input_stream_get_type())
struct GArrowFileInputStreamClass { GArrowSeekableInputStreamClass parent_class; };
struct GArrowMemoryMappedInputStreamClass { GArrowSeekableInputStreamClass parent_class; };
struct GArrowCompressedInputStreamClass { GArrowInputStreamClass parent_class; };
typedef struct _GArrowCompressedInputStream GArrowCompressedInputStream;
typedef struct _GArrowMemoryMappedInputStream GArrowMemoryMappedInputStream;
“raw”
property“raw” GInputStream *
The raw GInputStream *.
Owner: GArrowGIOInputStream
Flags: Read / Write / Construct Only
“buffer”
property“buffer” GArrowBuffer *
The data.
Owner: GArrowBufferInputStream
Flags: Read / Write / Construct Only
“codec”
property“codec” GArrowCodec *
The codec for the stream.
Owner: GArrowCompressedInputStream
Flags: Read / Write / Construct Only
“raw”
property“raw” GArrowInputStream *
The underlying raw input stream.
Owner: GArrowCompressedInputStream
Flags: Read / Write / Construct Only
“input-stream”
property“input-stream” gpointer
The raw std::shared<arrow::io::InputStream> *.
Owner: GArrowInputStream
Flags: Write / Construct Only