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