R
- low level result typepublic abstract class ItemCollection<R> extends com.amazonaws.services.dynamodbv2.document.internal.PageBasedCollection<Item,R>
Item
's.
An ItemCollection
object maintains a cursor pointing to its
current pages of data. Initially the cursor is positioned before the first page.
The next method moves the cursor to the next row, and because it returns
false when there are no more rows in the ItemCollection
object,
it can be used in a while loop to iterate through the collection.
Network calls can be triggered when the collection is iterated across page
boundaries.Constructor and Description |
---|
ItemCollection() |
Modifier and Type | Method and Description |
---|---|
protected void |
accumulateStats(ConsumedCapacity consumedCapacity,
Integer count,
Integer scannedCount) |
ConsumedCapacity |
getTotalConsumedCapacity()
Returns the total consumed capacity accumulated so far.
|
int |
getTotalCount()
Returns the total count accumulated so far.
|
int |
getTotalScannedCount()
Returns the total scanned count accumulated so far.
|
firstPage, getLastLowLevelResult, getMaxResultSize, iterator, pages, registerLowLevelResultListener, setLastLowLevelResult
protected final void accumulateStats(ConsumedCapacity consumedCapacity, Integer count, Integer scannedCount)
public int getTotalCount()
public int getTotalScannedCount()
public ConsumedCapacity getTotalConsumedCapacity()
Copyright © 2015. All rights reserved.