public class DefaultChunkScrollableDataIterator extends AbstractChunkDataIterator
DefaultScrollableDataIterator
for each chunk.chunkSize, entityName, fetchSize, hQuery, perfromOrderById, sessionFactory, sqlQuery
Constructor and Description |
---|
DefaultChunkScrollableDataIterator(SQLQuery sqlQuery,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
boolean performOrderById,
int chunkSize)
Constructs a scrollable iterator over the given GigaSpaces
SQLQuery . |
DefaultChunkScrollableDataIterator(String entityName,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
boolean performOrderById,
int chunkSize)
Constructs a scrollable iterator over the given entity name.
|
DefaultChunkScrollableDataIterator(String hQuery,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
int chunkSize)
Constructs a scrollable iterator over the given hibernate query string.
|
Modifier and Type | Method and Description |
---|---|
protected DataIterator |
createIteratorByEntityName(String entityName,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
boolean performOrderById,
int from,
int size) |
protected DataIterator |
createIteratorByHibernateQuery(String hQuery,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
int from,
int size) |
protected DataIterator |
createIteratorBySQLQuery(SQLQuery sqlQuery,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
boolean performOrderById,
int from,
int size) |
close, hasNext, iterators, next, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public DefaultChunkScrollableDataIterator(String entityName, org.hibernate.SessionFactory sessionFactory, int fetchSize, boolean performOrderById, int chunkSize)
entityName
- The entity name to scroll oversessionFactory
- The session factory to use to construct the sessionfetchSize
- The fetch size of the scrollabale result setperformOrderById
- Should the query perform order by id or notchunkSize
- The size of the chunks the entity table will be broken topublic DefaultChunkScrollableDataIterator(SQLQuery sqlQuery, org.hibernate.SessionFactory sessionFactory, int fetchSize, boolean performOrderById, int chunkSize)
SQLQuery
.sqlQuery
- The SQLQuery
to scroll oversessionFactory
- The session factory to use to construct the sessionfetchSize
- The fetch size of the scrollabale result setperformOrderById
- Should the query perform order by id or notchunkSize
- The size of the chunks the entity table will be broken topublic DefaultChunkScrollableDataIterator(String hQuery, org.hibernate.SessionFactory sessionFactory, int fetchSize, int chunkSize)
hQuery
- The hiberante query string to scroll oversessionFactory
- The session factory to use to construct the sessionfetchSize
- The fetch size of the scrollabale result setchunkSize
- The size of the chunks the entity table will be broken toprotected DataIterator createIteratorByEntityName(String entityName, org.hibernate.SessionFactory sessionFactory, int fetchSize, boolean performOrderById, int from, int size)
createIteratorByEntityName
in class AbstractChunkDataIterator
protected DataIterator createIteratorBySQLQuery(SQLQuery sqlQuery, org.hibernate.SessionFactory sessionFactory, int fetchSize, boolean performOrderById, int from, int size)
createIteratorBySQLQuery
in class AbstractChunkDataIterator
protected DataIterator createIteratorByHibernateQuery(String hQuery, org.hibernate.SessionFactory sessionFactory, int fetchSize, int from, int size)
createIteratorByHibernateQuery
in class AbstractChunkDataIterator
Copyright © GigaSpaces.