Class DataProviderSplitter
java.lang.Object
org.openspaces.persistency.patterns.AbstractManagedDataSourceSplitter
org.openspaces.persistency.patterns.BulkDataPersisterSplitter
org.openspaces.persistency.patterns.DataProviderSplitter
- All Implemented Interfaces:
BulkDataPersister, DataProvider, ManagedDataSource
@Deprecated
public class DataProviderSplitter
extends BulkDataPersisterSplitter
implements DataProvider
Deprecated.
A data provider that redirects template based operations to the given data source that can handle
its type.
- Author:
- kimchy
-
Field Summary
Fields inherited from class AbstractManagedDataSourceSplitter
dataSourcesFields inherited from interface ManagedDataSource
NUMBER_OF_PARTITIONS, STATIC_PARTITION_NUMBER -
Constructor Summary
ConstructorsConstructorDescriptionDataProviderSplitter(ManagedDataSourceEntriesProvider[] dataSources) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Create an iterator over all objects that match the given template.
Note: null value can be passed - in case of a null template or at initial space load.Deprecated.Read one object that matches the given template.Methods inherited from class BulkDataPersisterSplitter
executeBulkMethods inherited from class AbstractManagedDataSourceSplitter
getDataSource, init, initialLoad, setInitalLoadThreadPoolSize, shutdownMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ManagedDataSource
init, initialLoad, shutdown
-
Constructor Details
-
DataProviderSplitter
Deprecated.
-
-
Method Details
-
read
Deprecated.Description copied from interface:DataProviderRead one object that matches the given template.
Used by the space for read templates with UID.- Specified by:
readin interfaceDataProvider- Returns:
- matched object or null
- Throws:
DataSourceException
-
iterator
Deprecated.Description copied from interface:DataProviderCreate an iterator over all objects that match the given template.
Note: null value can be passed - in case of a null template or at initial space load. IfSQLDataProviderinterface is also implemented - the space will useSQLDataProvider.iterator instead.- Specified by:
iteratorin interfaceDataProvider- Returns:
- a
DataIteratoror null if no data was found that match the given template - Throws:
DataSourceException
-
SpaceDataSourceSplitterinstead.