Package org.apache.hadoop.hdfs.protocol
Class OpenFilesIterator
java.lang.Object
org.apache.hadoop.fs.BatchedRemoteIterator<Long,OpenFileEntry>
org.apache.hadoop.hdfs.protocol.OpenFilesIterator
- All Implemented Interfaces:
org.apache.hadoop.fs.RemoteIterator<OpenFileEntry>
@Private
@Evolving
public class OpenFilesIterator
extends org.apache.hadoop.fs.BatchedRemoteIterator<Long,OpenFileEntry>
OpenFilesIterator is a remote iterator that iterates over the open files list
managed by the NameNode. Since the list is retrieved in batches, it does not
represent a consistent view of all open files.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumOpen file types to filter the results. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOpenFilesIterator(ClientProtocol namenode, org.apache.hadoop.tracing.Tracer tracer, EnumSet<OpenFilesIterator.OpenFilesType> types, String path) -
Method Summary
Modifier and TypeMethodDescriptionelementToPrevKey(OpenFileEntry entry) org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<OpenFileEntry>makeRequest(Long prevId) Methods inherited from class org.apache.hadoop.fs.BatchedRemoteIterator
hasNext, next
-
Field Details
-
FILTER_PATH_DEFAULT
No path to be filtered by default.- See Also:
-
-
Constructor Details
-
OpenFilesIterator
public OpenFilesIterator(ClientProtocol namenode, org.apache.hadoop.tracing.Tracer tracer, EnumSet<OpenFilesIterator.OpenFilesType> types, String path)
-
-
Method Details
-
makeRequest
public org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<OpenFileEntry> makeRequest(Long prevId) throws IOException - Specified by:
makeRequestin classorg.apache.hadoop.fs.BatchedRemoteIterator<Long,OpenFileEntry> - Throws:
IOException
-
elementToPrevKey
- Specified by:
elementToPrevKeyin classorg.apache.hadoop.fs.BatchedRemoteIterator<Long,OpenFileEntry>
-