Struct arrow_json::writer::Writer

source ·
pub struct Writer<W, F>where
    W: Write,
    F: JsonFormat,
{ /* private fields */ }
Expand description

A JSON writer which serializes RecordBatches to a stream of u8 encoded JSON objects. See the module level documentation for detailed usage and examples. The specific format of the stream is controlled by the JsonFormat type parameter.

Implementations§

Construct a new writer

Write a single JSON row to the output writer

Convert the RecordBatch into JSON rows, and write them to the output

Convert the RecordBatch into JSON rows, and write them to the output

Finishes the output stream. This function must be called after all record batches have been produced. (e.g. producing the final ']' if writing arrays.

Unwraps this Writer<W>, returning the underlying writer

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.