Struct orc_rust::proto::StripeInformation
source · pub struct StripeInformation {
pub offset: Option<u64>,
pub index_length: Option<u64>,
pub data_length: Option<u64>,
pub footer_length: Option<u64>,
pub number_of_rows: Option<u64>,
pub encrypt_stripe_id: Option<u64>,
pub encrypted_local_keys: Vec<Vec<u8>>,
}
Fields§
§offset: Option<u64>
the global file offset of the start of the stripe
index_length: Option<u64>
the number of bytes of index
data_length: Option<u64>
the number of bytes of data
the number of bytes in the stripe footer
number_of_rows: Option<u64>
the number of rows in this stripe
encrypt_stripe_id: Option<u64>
If this is present, the reader should use this value for the encryption stripe id for setting the encryption IV. Otherwise, the reader should use one larger than the previous stripe’s encryptStripeId. For unmerged ORC files, the first stripe will use 1 and the rest of the stripes won’t have it set. For merged files, the stripe information will be copied from their original files and thus the first stripe of each of the input files will reset it to 1. Note that 1 was choosen, because protobuf v3 doesn’t serialize primitive types that are the default (eg. 0).
encrypted_local_keys: Vec<Vec<u8>>
For each encryption variant, the new encrypted local key to use until we find a replacement.
Implementations§
source§impl StripeInformation
impl StripeInformation
sourcepub fn offset(&self) -> u64
pub fn offset(&self) -> u64
Returns the value of offset
, or the default value if offset
is unset.
sourcepub fn index_length(&self) -> u64
pub fn index_length(&self) -> u64
Returns the value of index_length
, or the default value if index_length
is unset.
sourcepub fn data_length(&self) -> u64
pub fn data_length(&self) -> u64
Returns the value of data_length
, or the default value if data_length
is unset.
Returns the value of footer_length
, or the default value if footer_length
is unset.
sourcepub fn number_of_rows(&self) -> u64
pub fn number_of_rows(&self) -> u64
Returns the value of number_of_rows
, or the default value if number_of_rows
is unset.
sourcepub fn encrypt_stripe_id(&self) -> u64
pub fn encrypt_stripe_id(&self) -> u64
Returns the value of encrypt_stripe_id
, or the default value if encrypt_stripe_id
is unset.
Trait Implementations§
source§impl Clone for StripeInformation
impl Clone for StripeInformation
source§fn clone(&self) -> StripeInformation
fn clone(&self) -> StripeInformation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StripeInformation
impl Debug for StripeInformation
source§impl Default for StripeInformation
impl Default for StripeInformation
source§impl Message for StripeInformation
impl Message for StripeInformation
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.source§impl PartialEq for StripeInformation
impl PartialEq for StripeInformation
source§fn eq(&self, other: &StripeInformation) -> bool
fn eq(&self, other: &StripeInformation) -> bool
self
and other
values to be equal, and is used
by ==
.