pub trait EncodeToRecordBatchwhere
Self: Sized + ArrowSchemaProvider,{
// Required methods
fn encode_batch(
metadata: &HashMap<String, String>,
data: &[Self],
) -> Result<RecordBatch, ArrowError>;
fn metadata(&self) -> HashMap<String, String>;
// Provided method
fn chunk_metadata(chunk: &[Self]) -> HashMap<String, String> { ... }
}
Required Methods§
fn encode_batch( metadata: &HashMap<String, String>, data: &[Self], ) -> Result<RecordBatch, ArrowError>
fn metadata(&self) -> HashMap<String, String>
Provided Methods§
fn chunk_metadata(chunk: &[Self]) -> HashMap<String, String>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl EncodeToRecordBatch for Bar
impl EncodeToRecordBatch for Bar
Source§impl EncodeToRecordBatch for OrderBookDelta
impl EncodeToRecordBatch for OrderBookDelta
Source§fn chunk_metadata(chunk: &[Self]) -> HashMap<String, String>
fn chunk_metadata(chunk: &[Self]) -> HashMap<String, String>
Extract metadata from first two deltas
Use the second delta if the first one has 0 precision