Package org.refcodes.logger.alt.simpledb
Class SimpleDbQueryLogger.SimpleDbRecords
java.lang.Object
org.refcodes.logger.alt.simpledb.SimpleDbQueryLogger.SimpleDbRecords
- All Implemented Interfaces:
Iterable<org.refcodes.tabular.Record<T>>
,Iterator<org.refcodes.tabular.Record<T>>
,org.refcodes.tabular.Records<T>
- Enclosing class:
- SimpleDbQueryLogger<T>
protected class SimpleDbQueryLogger.SimpleDbRecords
extends Object
implements org.refcodes.tabular.Records<T>
This iterator encapsulates an Amazon select request for the business
logic to simply iterate through the results.
-
Constructor Summary
ConstructorDescriptionSimpleDbRecords
(String aSelectQuery) Constructs aRecords
iterator from a SimpleDB query and the requiredHeader
.SimpleDbRecords
(String aSelectQuery, org.refcodes.tabular.Header<T> aHeader) Constructs aRecords
iterator from a SimpleDB query and the requiredHeader
. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface java.util.Iterator
forEachRemaining
Methods inherited from interface org.refcodes.tabular.Records
iterator
-
Constructor Details
-
SimpleDbRecords
Constructs aRecords
iterator from a SimpleDB query and the requiredHeader
.- Parameters:
aSelectQuery
- The query for retrieval.
-
SimpleDbRecords
Constructs aRecords
iterator from a SimpleDB query and the requiredHeader
.- Parameters:
aSelectQuery
- The query for retrieval.aHeader
- The expectedHeader
in the result.
-
-
Method Details
-
hasNext
public boolean hasNext() -
nextItem
protected com.amazonaws.services.simpledb.model.Item nextItem()"Raw" method to retrieve the next item from Simple DB. Needed for theSimpleDbTrimLogger.deleteLogs(Criteria)
operation.- Returns:
- the item
-
next
-
remove
public void remove()
-