LazySegmentedIterator<CLIENT_TYPE,PARENT_TYPE,ENTITY_TYPE> Class

  • java.lang.Object
    • java.util.Iterator<ENTITY_TYPE>
      • com.microsoft.azure.storage.core.LazySegmentedIterator<CLIENT_TYPE,PARENT_TYPE,ENTITY_TYPE>

Type Parameters

CLIENT_TYPE

The service client type

PARENT_TYPE

The type of the parent object, i.e. CloudBlobClient for ListContainers etc.

ENTITY_TYPE

The type of the objects the resulting iterable objects

public class LazySegmentedIterator<CLIENT_TYPE,PARENT_TYPE,ENTITY_TYPE>

RESERVED FOR INTERNAL USE. Provides a lazy iterator which will retrieve the next segment of a result as the iterator is consumed

Constructor Summary

Constructor Description
LazySegmentedIterator(final StorageRequest<CLIENT_TYPE, PARENT_TYPE, ResultSegment<ENTITY_TYPE>> segmentGenerator, final CLIENT_TYPE client, final PARENT_TYPE parent, final RetryPolicyFactory policyFactory, final OperationContext opContext)

Initializes the LazySegmentedIterator.

Method Summary

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

Constructor Details

LazySegmentedIterator

public LazySegmentedIterator(final StorageRequest> segmentGenerator, final CLIENT_TYPE client, final PARENT_TYPE parent, final RetryPolicyFactory policyFactory, final OperationContext opContext)

Initializes the LazySegmentedIterator.

Parameters:

segmentGenerator - a SegmentedStorageRequest to execute in order to retrieve the next segment of the result.
client - the service client associated with the request
parent - the parent object
policyFactory - the factory used to generate a new retry policy instance
opContext - an object used to track the execution of the operation

Method Details

hasNext

public boolean hasNext()

Indicates if the iterator has another element.

next

public ENTITY_TYPE next()

Returns the next element.

remove

public void remove()

Removes an element, not supported

Applies to