Package org.apache.hadoop.fs
Class WindowsGetSpaceUsed
java.lang.Object
org.apache.hadoop.fs.CachingGetSpaceUsed
org.apache.hadoop.fs.WindowsGetSpaceUsed
- All Implemented Interfaces:
Closeable,AutoCloseable,GetSpaceUsed
@LimitedPrivate({"HDFS","MapReduce"})
@Evolving
public class WindowsGetSpaceUsed
extends CachingGetSpaceUsed
Class to tell the size of a path on windows.
Rather than shelling out, on windows this uses DUHelper.getFolderUsage
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.fs.GetSpaceUsed
GetSpaceUsed.Builder -
Field Summary
Fields inherited from class org.apache.hadoop.fs.CachingGetSpaceUsed
used -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hadoop.fs.CachingGetSpaceUsed
close, getDirPath, getJitter, getRefreshInterval, getUsed, incDfsUsed, setShouldFirstRefresh, setUsed
-
Constructor Details
-
WindowsGetSpaceUsed
- Throws:
IOException
-
-
Method Details
-
refresh
protected void refresh()Override to hook in DUHelper class.- Specified by:
refreshin classCachingGetSpaceUsed
-