[−][src]Function rust_hdfs::hdfsFileGetReadStatistics
pub unsafe extern "C" fn hdfsFileGetReadStatistics(
file: hdfsFile,
stats: *mut *mut hdfsReadStatistics
) -> c_int
Get read statistics about a file. This is only applicable to files opened for reading.
@param file The HDFS file @param stats (out parameter) on a successful return, the read statistics. Unchanged otherwise. You must free the returned statistics with hdfsFileFreeReadStatistics. @return 0 if the statistics were successfully returned, -1 otherwise. On a failure, please check errno against ENOTSUP. webhdfs, LocalFilesystem, and so forth may not support read statistics.