pub trait RetrievedRecord:
Sized
+ Send
+ ‘static
// Required method
fn decode_records(
record_type: &Arc<Type>,
encoded: &[ByteBuf],
) -> Result<Vec<Self>, KineticaError>;
A record a RecordRetriever returns, decoded from the Avro binary form the server sends by the Type the retriever was given.
Implemented for GenericRecord, and for any type serde can deserialize, whose fields are then read by the names in the type’s Avro schema.
Required Methods
Source
fn decode_records( record_type: &Arc<Type>, encoded: &[ByteBuf], ) -> Result<Vec<Self>, KineticaError>
Decodes records of record_type. A failure reads “Could not decode object: …”.
Dyn Compatibility
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called “object safety”.
Implementors
Source
impl RetrievedRecord for GenericRecord
Source