public class SpaceDataSourceSplitter extends SpaceDataSource
Constructor and Description |
---|
SpaceDataSourceSplitter(ManagedEntriesSpaceDataSource[] dataSources) |
Modifier and Type | Method and Description |
---|---|
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) |
supportsInheritance
public SpaceDataSourceSplitter(ManagedEntriesSpaceDataSource[] dataSources)
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
.Copyright © GigaSpaces.