public class OGRFetureSetProvider extends AbstractFeatureSetProvider implements FeatureSetProvider, ResourceConsumer
| Constructor and Description |
|---|
OGRFetureSetProvider(AbstractFeatureStoreProvider store,
FeatureQuery query,
FeatureType featureType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canFilter() |
boolean |
canIterateFromIndex() |
boolean |
canOrder() |
boolean |
closeResourceRequested(ResourceProvider resource) |
protected AbstractFeatureProviderIterator |
createFastIterator(long index)
Creates a new fast
Iterator, begginning at the specified data
index. |
protected AbstractFeatureProviderIterator |
createIterator(long index)
Creates a new
Iterator, begginning at the specified data index. |
protected void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
long |
getSize() |
boolean |
isEmpty() |
void |
resourceChanged(ResourceProvider resource) |
fastIterator, fastIterator, getFeatureType, getQuery, getStore, iterator, iteratordispose, disposeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfastIterator, fastIterator, iterator, iteratordisposepublic OGRFetureSetProvider(AbstractFeatureStoreProvider store, FeatureQuery query, FeatureType featureType)
store - Source of this feature setquery - QueryfeatureType - Featuretype requestedpublic boolean canFilter()
canFilter in interface FeatureSetProviderpublic boolean canOrder()
canOrder in interface FeatureSetProviderpublic boolean canIterateFromIndex()
canIterateFromIndex in interface FeatureSetProviderpublic long getSize()
throws DataException
getSize in interface FeatureSetProviderDataExceptionpublic boolean isEmpty()
throws DataException
isEmpty in interface FeatureSetProviderDataExceptionprotected AbstractFeatureProviderIterator createIterator(long index) throws DataException
AbstractFeatureSetProviderIterator, begginning at the specified data index.createIterator in class AbstractFeatureSetProviderindex - the first element position to be returned by the
IteratorIteratorDataException - if there is an error creating the Iteratorprotected AbstractFeatureProviderIterator createFastIterator(long index) throws DataException
AbstractFeatureSetProviderIterator, begginning at the specified data
index. By fast this means the object instances of data (
FeatureProvider) may be reused between the
Iterator.next() method invocations.createFastIterator in class AbstractFeatureSetProviderindex - the first element position to be returned by the
IteratorIteratorDataException - if there is an error creating the Iteratorprotected void doDispose()
throws BaseException
AbstractDisposableAbstractDisposable.dispose() method, to be
implemented by child classes.doDispose in class AbstractDisposableBaseExceptionAbstractDisposable.dispose()public boolean closeResourceRequested(ResourceProvider resource)
closeResourceRequested in interface ResourceConsumerpublic void resourceChanged(ResourceProvider resource)
resourceChanged in interface ResourceConsumer