pub struct QueryOffsetResult {
phy_offsets: Vec<i64>,
index_last_update_timestamp: i64,
index_last_update_phyoffset: i64,
}
impl QueryOffsetResult {
pub fn new(
phy_offsets: Vec<i64>,
index_last_update_timestamp: i64,
index_last_update_phyoffset: i64,
) -> Self {
QueryOffsetResult {
phy_offsets,
index_last_update_timestamp,
index_last_update_phyoffset,
}
}
#[inline]
pub fn get_phy_offsets(&self) -> &Vec<i64> {
&self.phy_offsets
}
#[inline]
pub fn get_phy_offsets_mut(&mut self) -> &mut Vec<i64> {
&mut self.phy_offsets
}
#[inline]
pub fn get_index_last_update_timestamp(&self) -> i64 {
self.index_last_update_timestamp
}
#[inline]
pub fn get_index_last_update_phyoffset(&self) -> i64 {
self.index_last_update_phyoffset
}
}