datafusion_ethers::convert

Trait Transcoder

Source
pub trait Transcoder {
    // Required methods
    fn schema(&self) -> SchemaRef;
    fn append(&mut self, logs: &[Log]) -> Result<(), AppendError>;
    fn len(&self) -> usize;
    fn finish(&mut self) -> RecordBatch;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}

Required Methods§

Source

fn schema(&self) -> SchemaRef

Source

fn append(&mut self, logs: &[Log]) -> Result<(), AppendError>

Source

fn len(&self) -> usize

Source

fn finish(&mut self) -> RecordBatch

Provided Methods§

Source

fn is_empty(&self) -> bool

Implementors§