hdfs_sys/
hdfs_3_0.rs

1//! hdfs 3.0 is the first stable release of hadoop 3.
2//!
3//! This release adds new APIs:
4//!
5//! - New Struct: hdfsHedgedReadMetrics
6//! - hdfsGetHedgedReadMetrics
7//! - hdfsFreeHedgedReadMetrics
8//! - hdfsGetLastExceptionRootCause
9//! - hdfsGetLastExceptionStackTrace
10
11use std::os::raw::*;
12
13use crate::hdfsFS;
14
15#[repr(C)]
16#[derive(Debug, Copy, Clone)]
17pub struct hdfsHedgedReadMetrics {
18    pub hedgedReadOps: u64,
19    pub hedgedReadOpsWin: u64,
20    pub hedgedReadOpsInCurThread: u64,
21}
22
23extern "C" {
24    pub fn hdfsGetHedgedReadMetrics(fs: hdfsFS, metrics: *mut *mut hdfsHedgedReadMetrics) -> c_int;
25    pub fn hdfsFreeHedgedReadMetrics(metrics: *mut hdfsHedgedReadMetrics);
26    pub fn hdfsGetLastExceptionRootCause() -> *mut c_char;
27    pub fn hdfsGetLastExceptionStackTrace() -> *mut c_char;
28}