public abstract class AbstractFeatureSetProvider extends AbstractDisposable implements FeatureSetProvider
FeatureSetProviders, adding some utility
methods.| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOGGER |
| Constructor and Description |
|---|
AbstractFeatureSetProvider(AbstractFeatureStoreProvider store,
FeatureQuery query,
FeatureType providerFeatureType) |
AbstractFeatureSetProvider(AbstractFeatureStoreProvider store,
FeatureQuery query,
FeatureType providerFeatureType,
FeatureType storeFeatureType)
Creates a new
FeatureSetProvider. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract AbstractFeatureProviderIterator |
createFastIterator(long index)
Creates a new fast
Iterator, begginning at the specified data
index. |
protected AbstractFeatureProviderIterator |
createFastIterator(long index,
long elements) |
protected abstract AbstractFeatureProviderIterator |
createIterator(long index)
Creates a new
Iterator, begginning at the specified data index. |
protected AbstractFeatureProviderIterator |
createIterator(long index,
long elements) |
protected java.util.Iterator |
createSpatialIterator(FeatureType featureType,
FeatureQuery query) |
DisposableIterator |
fastIterator()
Returns an iterator over the elements in this set, in the order
(if any) defined when the collection was obtained.
|
DisposableIterator |
fastIterator(long index) |
DisposableIterator |
fastIterator(long index,
long elements)
Returns an iterator over the elements in this set, in the order
(if any) defined when the collection was obtained.
|
protected FeatureType |
getFeatureType()
Deprecated.
use getProviderFeatureType
|
protected FeatureType |
getProviderFeatureType()
Returns the type of features from provider to load.
|
protected FeatureQuery |
getQuery()
Returns the
FeatureQuery used to create this set. |
protected SpatialIndex |
getSpatialIndex(java.lang.String name) |
protected AbstractFeatureStoreProvider |
getStore()
Return the
AbstractFeatureStoreProvider. |
protected FeatureType |
getStoreFeatureType()
Returns the type of features from store to load.
|
DisposableIterator |
iterator()
Returns an iterator over the elements in this set, in the order
(if any) defined when the collection was obtained.
|
DisposableIterator |
iterator(long index) |
DisposableIterator |
iterator(long index,
long elements)
Returns an iterator over the elements in this set, in the order
(if any) defined when the collection was obtained.
|
java.lang.String |
toString() |
dispose, dispose, doDisposeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanFilter, canIterateFromIndex, canOrder, getSize, isEmptydisposepublic AbstractFeatureSetProvider(AbstractFeatureStoreProvider store, FeatureQuery query, FeatureType providerFeatureType, FeatureType storeFeatureType)
FeatureSetProvider.store - the underlying FeatureStoreProvider to get the data
fromquery - used to create the FeatureSetProviderproviderFeatureType - the type of feature to getpublic AbstractFeatureSetProvider(AbstractFeatureStoreProvider store, FeatureQuery query, FeatureType providerFeatureType)
protected AbstractFeatureStoreProvider getStore()
AbstractFeatureStoreProvider.protected FeatureQuery getQuery()
FeatureQuery used to create this set.protected FeatureType getProviderFeatureType()
protected FeatureType getStoreFeatureType()
protected FeatureType getFeatureType()
public final DisposableIterator fastIterator() throws DataException
FeatureSetProviderfastIterator in interface FeatureSetProviderDataException - if there is an error getting the iteratorFeatureSetProvider.fastIterator(),
#fastIterator(long)public final DisposableIterator fastIterator(long index) throws DataException
DataExceptionpublic final DisposableIterator fastIterator(long index, long elements) throws DataException
FeatureSetProviderfastIterator in interface FeatureSetProviderindex - index of first element to be returned from the iterator (by a
call to the next method).DataException - if there is an error getting the iteratorFeatureSetProvider.fastIterator(),
#fastIterator(long)public final DisposableIterator iterator() throws DataException
FeatureSetProviderFast in this case means that each of the elements returned may be a reused or pooled object instance, so don't use it to be stored in any way.
If you need to store one of the FeatureProvider of the iterator,
use the FeatureProvider.getCopy() to create a clone of the
object.
iterator in interface FeatureSetProviderDataException - if there is an error getting the iteratorpublic final DisposableIterator iterator(long index) throws DataException
DataExceptionpublic final DisposableIterator iterator(long index, long elements) throws DataException
FeatureSetProviderFast in this case means that each of the elements returned may be a reused or pooled object instance, so don't use it to be stored in any way.
If you need to store one of the FeatureProvider of the iterator,
use the FeatureProvider.getCopy() to create a clone of the
object.
iterator in interface FeatureSetProviderindex - index of first element to be returned from the iterator (by a
call to the next method).DataException - if there is an error getting the iteratorprotected abstract AbstractFeatureProviderIterator createIterator(long index) throws DataException
Iterator, begginning at the specified data index.index - the first element position to be returned by the
IteratorIteratorDataException - if there is an error creating the Iteratorprotected AbstractFeatureProviderIterator createIterator(long index, long elements) throws DataException
DataExceptionprotected abstract AbstractFeatureProviderIterator createFastIterator(long index) throws DataException
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.index - the first element position to be returned by the
IteratorIteratorDataException - if there is an error creating the Iteratorprotected AbstractFeatureProviderIterator createFastIterator(long index, long elements) throws DataException
DataExceptionpublic java.lang.String toString()
toString in class java.lang.Objectprotected SpatialIndex getSpatialIndex(java.lang.String name)
protected java.util.Iterator createSpatialIterator(FeatureType featureType, FeatureQuery query)