public class OGRFetureSetProvider extends AbstractFeatureSetProvider implements FeatureSetProvider, ResourceConsumer
LOGGER
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) |
createFastIterator, createIterator, createSpatialIterator, fastIterator, fastIterator, fastIterator, getFeatureType, getProviderFeatureType, getQuery, getSpatialIndex, getStore, getStoreFeatureType, iterator, iterator, iterator, toString
dispose, dispose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fastIterator, fastIterator, iterator, iterator
dispose
public OGRFetureSetProvider(AbstractFeatureStoreProvider store, FeatureQuery query, FeatureType featureType)
store
- Source of this feature setquery
- QueryfeatureType
- Featuretype requestedpublic boolean canFilter()
canFilter
in interface FeatureSetProvider
public boolean canOrder()
canOrder
in interface FeatureSetProvider
public boolean canIterateFromIndex()
canIterateFromIndex
in interface FeatureSetProvider
public long getSize() throws DataException
getSize
in interface FeatureSetProvider
DataException
public boolean isEmpty() throws DataException
isEmpty
in interface FeatureSetProvider
DataException
protected AbstractFeatureProviderIterator createIterator(long index) throws DataException
AbstractFeatureSetProvider
Iterator
, begginning at the specified data index.createIterator
in class AbstractFeatureSetProvider
index
- the first element position to be returned by the
Iterator
Iterator
DataException
- if there is an error creating the Iterator
protected AbstractFeatureProviderIterator createFastIterator(long index) throws DataException
AbstractFeatureSetProvider
Iterator
, 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 AbstractFeatureSetProvider
index
- the first element position to be returned by the
Iterator
Iterator
DataException
- if there is an error creating the Iterator
protected void doDispose() throws BaseException
AbstractDisposable
AbstractDisposable.dispose()
method, to be
implemented by child classes.doDispose
in class AbstractDisposable
BaseException
AbstractDisposable.dispose()
public boolean closeResourceRequested(ResourceProvider resource)
closeResourceRequested
in interface ResourceConsumer
public void resourceChanged(ResourceProvider resource)
resourceChanged
in interface ResourceConsumer