public class DefaultHibernateSpaceDataSource extends AbstractHibernateSpaceDataSource
Session
.logger
augmentInitialLoadEntries, clusterInfo, initialLoadQueries, initialLoadQueryScanningBasePackages
Constructor and Description |
---|
DefaultHibernateSpaceDataSource(org.hibernate.SessionFactory sessionFactory,
Set<String> managedEntries,
int fetchSize,
boolean performOrderById,
String[] initialLoadEntries,
int initialLoadThreadPoolSize,
int initialLoadChunkSize,
boolean useScrollableResultSet,
String[] initialLoadQueryScanningBasePackages,
boolean augmentInitialLoadEntries,
ClusterInfo clusterInfo) |
Modifier and Type | Method and Description |
---|---|
DataIterator<Object> |
getDataIterator(DataSourceQuery query)
Returns a
DefaultListQueryDataIterator
for the given sql query. |
DataIterator<Object> |
initialDataLoad()
Performs the initial load operation.
|
createInitialLoadIterator, getFetchSize, getInitialLoadChunkSize, getInitialLoadEntries, getManagedEntries, getSessionFactory, initialMetadataLoad, isManagedEntry, isPerformOrderById, isUseScrollableResultSet, obtainInitialLoadQueries, supportsInheritance
createInitialLoadQuery, getInitialLoadQueries, setClusterInfo, setInitialLoadQueryScanningBasePackages
getById, getDataIteratorByIds
public DefaultHibernateSpaceDataSource(org.hibernate.SessionFactory sessionFactory, Set<String> managedEntries, int fetchSize, boolean performOrderById, String[] initialLoadEntries, int initialLoadThreadPoolSize, int initialLoadChunkSize, boolean useScrollableResultSet, String[] initialLoadQueryScanningBasePackages, boolean augmentInitialLoadEntries, ClusterInfo clusterInfo)
public DataIterator<Object> initialDataLoad()
#setInitialLoadEntries(String[])
initial load entries. If AbstractHibernateSpaceDataSource.getInitialLoadChunkSize()
is set to -1
, will
use DefaultScrollableDataIterator
for
each entity. If AbstractHibernateSpaceDataSource.getInitialLoadChunkSize()
is set to a non -1
value,
will use the DefaultChunkScrollableDataIterator
.initialDataLoad
in class SpaceDataSource
DataIterator
instance which contains all data to be written to Space upon
its initialization - null is treated as an empty iterator.public DataIterator<Object> getDataIterator(DataSourceQuery query)
DefaultListQueryDataIterator
for the given sql query.getDataIterator
in class SpaceDataSource
query
- The DataSourceQuery
to get results for.DataIterator
instance contains results for the provided DataSourceQuery
.Copyright © GigaSpaces.