hdfs::native::hdfsFileGetReadStatistics
[−]
[src]
pub unsafe extern fn hdfsFileGetReadStatistics(file: *const hdfsFile, stats: &mut *mut hdfsReadStatistics) -> c_int
Get read statistics about a file. This is only applicable to files opened for reading.
Params
file
- The HDFS filestats
- (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.