pub fn property_int_value_cf(
        &self,
        cf: &ColumnFamily,
        name: &str,
    ) -> Result<Option<u64>, Error> {
        match self.property_value_cf(cf, name) {
            Ok(Some(value)) => match value.parse::<u64>() {
                Ok(int_value) => Ok(Some(int_value)),
                Err(e) => Err(Error::new(format!(
                    "Failed to convert property value to int: {}",
                    e
                ))),
            },
            Ok(None) => Ok(None),
            Err(e) => Err(e),
        }
    }
/// Retrieves a RocksDB property for a specific column family and casts it to an integer.
///
/// For a full list of properties that return int values, see
/// https://github.com/facebook/rocksdb/blob/08809f5e6cd9cc4bc3958dd4d59457ae78c76660/include/rocksdb/db.h#L654-L689
Retrieves a RocksDB property for a specific column family and casts it to an integer.
Retrieves a RocksDB property for a specific column family and casts it to an integer .
pub fn property_int_value_cf(
        &self,
        cf: &ColumnFamily,
        name: &str,
    ) -> Result<Option<u64>, Error> {
        match self.property_value_cf(cf, name) {
            Ok(Some(value)) => match value.parse::<u64>() {
                Ok(int_value) => Ok(Some(int_value)),
                Err(e) => Err(Error::new(format!(
                    "Failed to convert property value to int: {}",
                    e
                ))),
            },
            Ok(None) => Ok(None),
            Err(e) => Err(e),
        }
    }
pub fn property_int_value_cf ( & self , cf : & ColumnFamily , name : & str , ) -> Result < Option < u64 > , Error > { match self . property_value_cf ( cf , name ) { Ok ( Some ( value ) ) => match value . parse :: < u64 > ( ) { Ok ( int_value ) => Ok ( Some ( int_value ) ) , Err ( e ) => Err ( Error :: new ( format ! ( " " e ) ) ) , } , Ok ( None ) => Ok ( None ) , Err ( e ) => Err ( e ) , } }
Retrieves a RocksDB property for a specific column family and casts it to an integer.
Retrieves a RocksDB property for a specific column family and casts it to an integer .
&self
cf
&ColumnFamily
name
&str
&self
cf
&ColumnFamily
name
&str