Package org.refcodes.logger.alt.simpledb
Class SimpleDbQueryLogger.SimpleDbRecordsImpl
- java.lang.Object
-
- org.refcodes.logger.alt.simpledb.SimpleDbQueryLogger.SimpleDbRecordsImpl
-
- Enclosing class:
- SimpleDbQueryLogger<T>
protected class SimpleDbQueryLogger.SimpleDbRecordsImpl 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. ------------------------------------------------------------------------- TODO Make this unit testable and create unit test: -------------------------------------------------------------------------
-
-
Constructor Summary
Constructors Constructor Description SimpleDbRecordsImpl(String aSelectQuery)
Constructs aRecords
iterator from a SimpleDB query and the requiredHeader
.SimpleDbRecordsImpl(String aSelectQuery, org.refcodes.tabular.Header<T> aHeader)
Constructs aRecords
iterator from a SimpleDB query and the requiredHeader
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
org.refcodes.tabular.Record<T>
next()
protected com.amazonaws.services.simpledb.model.Item
nextItem()
"Raw" method to retrieve the next item from Simple DB.void
remove()
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
SimpleDbRecordsImpl
public SimpleDbRecordsImpl(String aSelectQuery)
Constructs aRecords
iterator from a SimpleDB query and the requiredHeader
.- Parameters:
aSelectQuery
- The query for retrieval.
-
-
Method Detail
-
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
-
-