|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- public interface DataProvider<T>
DataProvider is responsible for retrieving space data
from external data source.
This interfaces should be implemented for simple space access.
DataProvider is used by the space in the following scenarios:
- reads by UID.
- empty template.
- non-abstract class without extended match codes.
Any other scenario requires an implementation of the SQLDataProvider
SQLDataProvider
Field Summary |
---|
Fields inherited from interface com.gigaspaces.datasource.ManagedDataSource |
---|
DATA_CLASS_PROPS, NUMBER_OF_PARTITIONS, STATIC_PARTITION_NUMBER |
Method Summary | |
---|---|
int |
count(T template)
Count number of object in the data source that match given template. |
DataIterator<T> |
iterator(T template)
Create an iterator over all objects that match the given template. |
T |
read(T template)
Read one object that matches the given template. |
Methods inherited from interface com.gigaspaces.datasource.ManagedDataSource |
---|
init, initialLoad, shutdown |
Method Detail |
---|
T read(T template) throws DataSourceException
template
-
DataSourceException
DataIterator<T> iterator(T template) throws DataSourceException
template
-
DataIterator
or null if no data was found that match the given template
DataSourceException
int count(T template) throws DataSourceException
template
-
DataSourceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |