Package org.apache.hadoop.hdfs.protocol
Class CacheDirectiveIterator
java.lang.Object
org.apache.hadoop.fs.BatchedRemoteIterator<Long,CacheDirectiveEntry>
org.apache.hadoop.hdfs.protocol.CacheDirectiveIterator
- All Implemented Interfaces:
org.apache.hadoop.fs.RemoteIterator<CacheDirectiveEntry>
@Private
@Evolving
public class CacheDirectiveIterator
extends org.apache.hadoop.fs.BatchedRemoteIterator<Long,CacheDirectiveEntry>
CacheDirectiveIterator is a remote iterator that iterates cache directives.
It supports retrying in case of namenode failover.
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCacheDirectiveIterator(ClientProtocol namenode, CacheDirectiveInfo filter, org.apache.hadoop.tracing.Tracer tracer) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<CacheDirectiveEntry>makeRequest(Long prevKey) Methods inherited from class org.apache.hadoop.fs.BatchedRemoteIterator
hasNext, next
-
Constructor Details
-
CacheDirectiveIterator
public CacheDirectiveIterator(ClientProtocol namenode, CacheDirectiveInfo filter, org.apache.hadoop.tracing.Tracer tracer)
-
-
Method Details
-
makeRequest
public org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<CacheDirectiveEntry> makeRequest(Long prevKey) throws IOException - Specified by:
makeRequestin classorg.apache.hadoop.fs.BatchedRemoteIterator<Long,CacheDirectiveEntry> - Throws:
IOException
-
elementToPrevKey
- Specified by:
elementToPrevKeyin classorg.apache.hadoop.fs.BatchedRemoteIterator<Long,CacheDirectiveEntry>
-