org.openspaces.persistency.hibernate.iterator
Class DefaultChunkListDataIterator
java.lang.Object
org.openspaces.persistency.hibernate.iterator.AbstractChunkDataIterator
org.openspaces.persistency.hibernate.iterator.DefaultChunkListDataIterator
- All Implemented Interfaces:
- com.gigaspaces.datasource.DataIterator, Iterator, MultiDataIterator
public class DefaultChunkListDataIterator
- extends AbstractChunkDataIterator
A default batch iterator that is based on DefaultListQueryDataIterator
for each chunk.
- Author:
- kimchy
Constructor Summary |
DefaultChunkListDataIterator(com.j_spaces.core.client.SQLQuery sqlQuery,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
boolean performOrderById,
int chunkSize)
Constructs a list iterator over the given GigaSpaces SQLQuery . |
DefaultChunkListDataIterator(String entityName,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
boolean performOrderById,
int chunkSize)
Constructs a list iterator over the given entity name. |
DefaultChunkListDataIterator(String hQuery,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
int chunkSize)
Constructs a list iterator over the given hibernate query string. |
Method Summary |
protected com.gigaspaces.datasource.DataIterator |
createIteartorByEntityName(String entityName,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
boolean performOrderById,
int from,
int size)
|
protected com.gigaspaces.datasource.DataIterator |
createIteartorByHibernateQuery(String hQuery,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
int from,
int size)
|
protected com.gigaspaces.datasource.DataIterator |
createIteartorBySQLQuery(com.j_spaces.core.client.SQLQuery sqlQuery,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
boolean performOrderById,
int from,
int size)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultChunkListDataIterator
public DefaultChunkListDataIterator(String entityName,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
boolean performOrderById,
int chunkSize)
- Constructs a list iterator over the given entity name.
- Parameters:
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 to
DefaultChunkListDataIterator
public DefaultChunkListDataIterator(com.j_spaces.core.client.SQLQuery sqlQuery,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
boolean performOrderById,
int chunkSize)
- Constructs a list iterator over the given GigaSpaces
SQLQuery
.
- Parameters:
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 to
DefaultChunkListDataIterator
public DefaultChunkListDataIterator(String hQuery,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
int chunkSize)
- Constructs a list iterator over the given hibernate query string.
- Parameters:
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 to
createIteartorByEntityName
protected com.gigaspaces.datasource.DataIterator createIteartorByEntityName(String entityName,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
boolean performOrderById,
int from,
int size)
- Specified by:
createIteartorByEntityName
in class AbstractChunkDataIterator
createIteartorBySQLQuery
protected com.gigaspaces.datasource.DataIterator createIteartorBySQLQuery(com.j_spaces.core.client.SQLQuery sqlQuery,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
boolean performOrderById,
int from,
int size)
- Specified by:
createIteartorBySQLQuery
in class AbstractChunkDataIterator
createIteartorByHibernateQuery
protected com.gigaspaces.datasource.DataIterator createIteartorByHibernateQuery(String hQuery,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
int from,
int size)
- Specified by:
createIteartorByHibernateQuery
in class AbstractChunkDataIterator
Copyright © GigaSpaces.