Struct parquet_format_safe::thrift::protocol::TCompactInputProtocol
source · pub struct TCompactInputProtocol<R>where
R: Read,{ /* private fields */ }
Expand description
Read messages encoded in the Thrift compact protocol.
Implementations§
source§impl<R> TCompactInputProtocol<R>where
R: Read,
impl<R> TCompactInputProtocol<R>where
R: Read,
sourcepub fn new(reader: R, max_bytes: usize) -> Self
pub fn new(reader: R, max_bytes: usize) -> Self
Create a TCompactInputProtocol
that reads bytes from reader
.
Trait Implementations§
source§impl<R> Seek for TCompactInputProtocol<R>where
R: Seek + Read,
impl<R> Seek for TCompactInputProtocol<R>where
R: Seek + Read,
source§fn seek(&mut self, pos: SeekFrom) -> Result<u64>
fn seek(&mut self, pos: SeekFrom) -> Result<u64>
Seek to an offset, in bytes, in a stream. Read more
1.55.0 · source§fn rewind(&mut self) -> Result<(), Error>
fn rewind(&mut self) -> Result<(), Error>
Rewind to the beginning of a stream. Read more
source§impl<R> TInputProtocol for TCompactInputProtocol<R>where
R: Read,
impl<R> TInputProtocol for TCompactInputProtocol<R>where
R: Read,
source§fn read_message_begin(&mut self) -> Result<TMessageIdentifier>
fn read_message_begin(&mut self) -> Result<TMessageIdentifier>
Read the beginning of a Thrift message.
source§fn read_message_end(&mut self) -> Result<()>
fn read_message_end(&mut self) -> Result<()>
Read the end of a Thrift message.
source§fn read_struct_begin(&mut self) -> Result<Option<TStructIdentifier>>
fn read_struct_begin(&mut self) -> Result<Option<TStructIdentifier>>
Read the beginning of a Thrift struct.
source§fn read_struct_end(&mut self) -> Result<()>
fn read_struct_end(&mut self) -> Result<()>
Read the end of a Thrift struct.
source§fn read_field_begin(&mut self) -> Result<TFieldIdentifier>
fn read_field_begin(&mut self) -> Result<TFieldIdentifier>
Read the beginning of a Thrift struct field.
source§fn read_field_end(&mut self) -> Result<()>
fn read_field_end(&mut self) -> Result<()>
Read the end of a Thrift struct field.
source§fn read_double(&mut self) -> Result<f64>
fn read_double(&mut self) -> Result<f64>
Read a 64-bit float.
source§fn read_string(&mut self) -> Result<String>
fn read_string(&mut self) -> Result<String>
Read a fixed-length string (not null terminated).
source§fn read_list_begin(&mut self) -> Result<TListIdentifier>
fn read_list_begin(&mut self) -> Result<TListIdentifier>
Read the beginning of a list.
source§fn read_list_end(&mut self) -> Result<()>
fn read_list_end(&mut self) -> Result<()>
Read the end of a list.
source§fn read_set_begin(&mut self) -> Result<TSetIdentifier>
fn read_set_begin(&mut self) -> Result<TSetIdentifier>
Read the beginning of a set.
source§fn read_set_end(&mut self) -> Result<()>
fn read_set_end(&mut self) -> Result<()>
Read the end of a set.
source§fn read_map_begin(&mut self) -> Result<TMapIdentifier>
fn read_map_begin(&mut self) -> Result<TMapIdentifier>
Read the beginning of a map.
source§fn read_map_end(&mut self) -> Result<()>
fn read_map_end(&mut self) -> Result<()>
Read the end of a map.
source§fn skip(&mut self, field_type: TType) -> Result<()>
fn skip(&mut self, field_type: TType) -> Result<()>
Skip a field with type
field_type
recursively until the default
maximum skip depth is reached.source§fn skip_till_depth(&mut self, field_type: TType, depth: i8) -> Result<()>
fn skip_till_depth(&mut self, field_type: TType, depth: i8) -> Result<()>
Skip a field with type
field_type
recursively up to depth
levels.