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> { ... }
}
Expand description
Encodes data types to Apache Arrow RecordBatch format.
Required Methods§
Provided Methods§
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 IndexPriceUpdate
impl EncodeToRecordBatch for IndexPriceUpdate
Source§impl EncodeToRecordBatch for InstrumentClose
impl EncodeToRecordBatch for InstrumentClose
Source§impl EncodeToRecordBatch for MarkPriceUpdate
impl EncodeToRecordBatch for MarkPriceUpdate
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