public interface FeatureSetProvider extends Disposable
Modifier and Type | Method and Description |
---|---|
boolean |
canFilter() |
boolean |
canIterateFromIndex() |
boolean |
canOrder() |
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)
Returns an iterator over the elements in this set, in the order
(if any) defined when the collection was obtained.
|
long |
getSize() |
boolean |
isEmpty() |
DisposableIterator |
iterator()
Deprecated.
use
fastIterator() instead |
DisposableIterator |
iterator(long index)
Deprecated.
use
fastIterator() instead |
dispose
boolean canFilter()
boolean canOrder()
boolean canIterateFromIndex()
long getSize() throws DataException
DataException
boolean isEmpty() throws DataException
DataException
DisposableIterator iterator() throws DataException
fastIterator()
insteadFast 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.
DataException
- if there is an error getting the iteratorDisposableIterator iterator(long index) throws DataException
fastIterator()
insteadFast 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.
index
- 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 iteratorDisposableIterator fastIterator() throws DataException
DataException
- if there is an error getting the iteratorfastIterator()
,
fastIterator(long)
DisposableIterator fastIterator(long index) throws DataException
index
- 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 iteratorfastIterator()
,
fastIterator(long)