public abstract class AbstractRecordIterator<E> extends AbstractJdbcQuery implements IRecordIterator<E>
| Modifier and Type | Field and Description |
|---|---|
protected Class<E> |
clazz |
protected long |
latestId |
protected long |
maxId |
protected String |
pkName |
protected IQuery |
query |
protected Queue<E> |
recordQ |
protected int |
step |
static int |
STEP |
dbCluster, primaryCache, secondCache| Constructor and Description |
|---|
AbstractRecordIterator(Class<E> clazz) |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
getMaxId() |
int |
getStep() |
E |
next() |
List<E> |
nextMore()
批量返回
|
void |
remove() |
void |
setQuery(IQuery query)
设置遍历时查询的条件
|
void |
setStep(int step)
设置批量读取记录的条数
|
getDBCluster, getPrimaryCache, getSecondCache, isCacheAvailable, isSecondCacheAvailable, selectByPksWithCache, selectByPkWithCache, selectByPkWithCache, selectByQuery, selectBySql, selectCount, selectCountWithCache, selectGlobalByPksWithCache, selectGlobalByQuery, selectGlobalBySql, selectGlobalCount, selectGlobalCountWithCache, selectGlobalPksByQuery, selectPksByQuery, setDBCluster, setPrimaryCache, setSecondCacheclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCountforEachRemaining, hasNextpublic static final int STEP
protected String pkName
protected IQuery query
protected int step
protected long latestId
protected long maxId
public List<E> nextMore()
IRecordIteratornextMore in interface IRecordIterator<E>public void setQuery(IQuery query)
IRecordIteratorsetQuery in interface IRecordIterator<E>public abstract long getMaxId()
public int getStep()
public void setStep(int step)
IRecordIteratorsetStep in interface IRecordIterator<E>Copyright © 2015. All rights reserved.