Writer classes

Writer classes

Functions

Properties

gpointer record-batch-writer Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GArrowRecordBatchWriter
        ╰── GArrowRecordBatchStreamWriter
            ╰── GArrowRecordBatchFileWriter

Includes

#include <arrow-glib/arrow-glib.h>

Description

GArrowRecordBatchWriter is a base class for writing record batches in stream format into output.

GArrowRecordBatchStreamWriter is a base class for writing record batches in stream format into output synchronously.

GArrowRecordBatchFileWriter is a class for writing record batches in file format into output.

Functions

garrow_record_batch_writer_write_record_batch ()

gboolean
garrow_record_batch_writer_write_record_batch
                               (GArrowRecordBatchWriter *writer,
                                GArrowRecordBatch *record_batch,
                                GError **error);

Parameters

writer

A GArrowRecordBatchWriter.

 

record_batch

The record batch to be written.

 

error

Return location for a GError or NULL.

[nullable]

Returns

TRUE on success, FALSE if there was an error.

Since: 0.4.0


garrow_record_batch_writer_write_table ()

gboolean
garrow_record_batch_writer_write_table
                               (GArrowRecordBatchWriter *writer,
                                GArrowTable *table,
                                GError **error);

Parameters

writer

A GArrowRecordBatchWriter.

 

table

The table to be written.

 

error

Return location for a GError or NULL.

[nullable]

Returns

TRUE on success, FALSE if there was an error.

Since: 0.8.0


garrow_record_batch_writer_close ()

gboolean
garrow_record_batch_writer_close (GArrowRecordBatchWriter *writer,
                                  GError **error);

Parameters

writer

A GArrowRecordBatchWriter.

 

error

Return location for a GError or NULL.

[nullable]

Returns

TRUE on success, FALSE if there was an error.

Since: 0.4.0


garrow_record_batch_stream_writer_new ()

GArrowRecordBatchStreamWriter *
garrow_record_batch_stream_writer_new (GArrowOutputStream *sink,
                                       GArrowSchema *schema,
                                       GError **error);

Parameters

sink

The output of the writer.

 

schema

The schema of the writer.

 

error

Return location for a GError or NULL.

[nullable]

Returns

A newly created GArrowRecordBatchStreamWriter or NULL on error.

[nullable]

Since: 0.4.0


garrow_record_batch_file_writer_new ()

GArrowRecordBatchFileWriter *
garrow_record_batch_file_writer_new (GArrowOutputStream *sink,
                                     GArrowSchema *schema,
                                     GError **error);

Parameters

sink

The output of the writer.

 

schema

The schema of the writer.

 

error

Return location for a GError or NULL.

[nullable]

Returns

A newly created GArrowRecordBatchFileWriter or NULL on error.

[nullable]

Since: 0.4.0

Types and Values

struct GArrowRecordBatchWriter

struct GArrowRecordBatchWriter;

It wraps arrow::ipc::RecordBatchWriter.


struct GArrowRecordBatchStreamWriter

struct GArrowRecordBatchStreamWriter;

It wraps arrow::ipc::RecordBatchStreamWriter.


struct GArrowRecordBatchFileWriter

struct GArrowRecordBatchFileWriter;

It wraps arrow::ipc::RecordBatchFileWriter.

Property Details

The “record-batch-writer” property

  “record-batch-writer”      gpointer

The raw std::shared<arrow::ipc::RecordBatchWriter> *.

Owner: GArrowRecordBatchWriter

Flags: Write / Construct Only