CLIENT_TYPE
- The service client typePARENT_TYPE
- The type of the parent object, i.e. CloudBlobClient for ListContainers etc.ENTITY_TYPE
- The type of the objects the resulting iterable objectspublic final class LazySegmentedIterator<CLIENT_TYPE,PARENT_TYPE,ENTITY_TYPE> extends Object implements Iterator<ENTITY_TYPE>
Constructor and Description |
---|
LazySegmentedIterator(StorageRequest<CLIENT_TYPE,PARENT_TYPE,ResultSegment<ENTITY_TYPE>> segmentGenerator,
CLIENT_TYPE client,
PARENT_TYPE parent,
RetryPolicyFactory policyFactory,
OperationContext opContext)
Initializes the LazySegmentedIterator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Indicates if the iterator has another element.
|
ENTITY_TYPE |
next()
Returns the next element.
|
void |
remove()
Removes an element, not supported
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public LazySegmentedIterator(StorageRequest<CLIENT_TYPE,PARENT_TYPE,ResultSegment<ENTITY_TYPE>> segmentGenerator, CLIENT_TYPE client, PARENT_TYPE parent, RetryPolicyFactory policyFactory, OperationContext opContext)
segmentGenerator
- a SegmentedStorageRequest to execute in order to retrieve the next segment of the result.client
- the service client associated with the requestparent
- the parent objectpolicyFactory
- the factory used to generate a new retry policy instanceopContext
- an object used to track the execution of the operation@DoesServiceRequest public boolean hasNext()
hasNext
in interface Iterator<ENTITY_TYPE>
public ENTITY_TYPE next()
next
in interface Iterator<ENTITY_TYPE>
public void remove()
remove
in interface Iterator<ENTITY_TYPE>
Copyright © 2019. All rights reserved.