|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gigaspaces.datasource.SpaceDataSource org.openspaces.persistency.patterns.SpaceDataSourceSplitter
public class SpaceDataSourceSplitter
A space data source that redirects the query operations to the given data source that can handle the given type.
Constructor Summary | |
---|---|
SpaceDataSourceSplitter(ManagedEntriesSpaceDataSource[] dataSources)
|
Method Summary | |
---|---|
Object |
getById(DataSourceIdQuery idQuery)
Delegates the query to the corresponding data source |
DataIterator<Object> |
getDataIterator(DataSourceQuery query)
Delegates the query to the corresponding data source |
DataIterator<Object> |
getDataIteratorByIds(com.gigaspaces.datasource.DataSourceIdsQuery idsQuery)
Delegates the query to the corresponding data source |
protected SpaceDataSource |
getDataSource(String entry)
|
DataIterator<Object> |
initialDataLoad()
Iterates through all the given data sources and assembles their respective DataIterator s
from SpaceDataSource.initialDataLoad() . |
DataIterator<SpaceTypeDescriptor> |
initialMetadataLoad()
Iterates through all the given data sources and assembles their respective DataIterator s
from SpaceDataSource.initialMetadataLoad() . |
void |
setInitalLoadThreadPoolSize(int initalLoadThreadPoolSize)
|
Methods inherited from class com.gigaspaces.datasource.SpaceDataSource |
---|
supportsInheritance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpaceDataSourceSplitter(ManagedEntriesSpaceDataSource[] dataSources)
Method Detail |
---|
public void setInitalLoadThreadPoolSize(int initalLoadThreadPoolSize)
protected SpaceDataSource getDataSource(String entry)
public DataIterator<Object> initialDataLoad()
DataIterator
s
from SpaceDataSource.initialDataLoad()
. Constructs a ConcurrentMultiDataIterator
on top of them.
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<SpaceTypeDescriptor> initialMetadataLoad()
DataIterator
s
from SpaceDataSource.initialMetadataLoad()
. Constructs a SerialMultiDataIterator
on top of them.
initialMetadataLoad
in class SpaceDataSource
DataIterator
instance which contains all SpaceTypeDescriptor
instances to be introduced to the Space upon its initialization - null is treated as an empty iterator.public DataIterator<Object> getDataIterator(DataSourceQuery query)
getDataIterator
in class SpaceDataSource
query
- The DataSourceQuery
to get results for.
DataIterator
instance contains results for the provided DataSourceQuery
.public Object getById(DataSourceIdQuery idQuery)
getById
in class SpaceDataSource
idQuery
- The DataSourceIdQuery
to get a result for.
SpaceDataSource
which matches the provided DataSourceIdQuery
.public DataIterator<Object> getDataIteratorByIds(com.gigaspaces.datasource.DataSourceIdsQuery idsQuery)
getDataIteratorByIds
in class SpaceDataSource
idsQuery
- The DataSourceIdsQuery
to get a result for.
DataIterator
instance contains results for the provided DataSourceIdsQuery
.
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |