Trait arrow_json::writer::JsonFormat
source · pub trait JsonFormat: Debug + Default {
// Provided methods
fn start_stream<W: Write>(&self, _writer: &mut W) -> Result<(), ArrowError> { ... }
fn start_row<W: Write>(
&self,
_writer: &mut W,
_is_first_row: bool
) -> Result<(), ArrowError> { ... }
fn end_row<W: Write>(&self, _writer: &mut W) -> Result<(), ArrowError> { ... }
fn end_stream<W: Write>(&self, _writer: &mut W) -> Result<(), ArrowError> { ... }
}
Expand description
This trait defines how to format a sequence of JSON objects to a byte stream.
Provided Methods§
sourcefn start_stream<W: Write>(&self, _writer: &mut W) -> Result<(), ArrowError>
fn start_stream<W: Write>(&self, _writer: &mut W) -> Result<(), ArrowError>
write any bytes needed at the start of the file to the writer
sourcefn start_row<W: Write>(
&self,
_writer: &mut W,
_is_first_row: bool
) -> Result<(), ArrowError>
fn start_row<W: Write>( &self, _writer: &mut W, _is_first_row: bool ) -> Result<(), ArrowError>
write any bytes needed for the start of each row
sourcefn end_row<W: Write>(&self, _writer: &mut W) -> Result<(), ArrowError>
fn end_row<W: Write>(&self, _writer: &mut W) -> Result<(), ArrowError>
write any bytes needed for the end of each row
sourcefn end_stream<W: Write>(&self, _writer: &mut W) -> Result<(), ArrowError>
fn end_stream<W: Write>(&self, _writer: &mut W) -> Result<(), ArrowError>
write any bytes needed for the start of each row
Object Safety§
This trait is not object safe.