|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSortedFeatureIterator
public class SortedFeatureIterator
Constructor Summary | |
---|---|
SortedFeatureIterator(SimpleFeatureIterator iterator,
SimpleFeatureType schema,
SortBy[] sortBy,
int maxFeatures)
Builds a new sorting feature iterator |
Method Summary | |
---|---|
static boolean |
canSort(SimpleFeatureType schema,
SortBy[] sortBy)
Checks if the schema and the sortBy are suitable for merge/sort. |
void |
close()
Closes this iterator and releases any system resources associated with it. |
boolean |
hasNext()
Does another Feature exist in this Iteration. |
SimpleFeature |
next()
Get the next Feature in this iteration. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SortedFeatureIterator(SimpleFeatureIterator iterator, SimpleFeatureType schema, SortBy[] sortBy, int maxFeatures) throws IOException
iterator
- The iterator to be sortedschema
- The iterator schemasortBy
- The sorting directivesmaxFeatures
- The maximum number of features to keep in memory
IOException
Method Detail |
---|
public static final boolean canSort(SimpleFeatureType schema, SortBy[] sortBy)
Serializable
, all sorting attributes need to be Comparable
schema
- sortBy
-
public boolean hasNext()
FeatureIterator
Iterator defin: Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
hasNext
in interface FeatureIterator<SimpleFeature>
public SimpleFeature next() throws NoSuchElementException
FeatureIterator
next
in interface FeatureIterator<SimpleFeature>
NoSuchElementException
- If no more Features exist.public void close()
FeatureIterator
close
in interface Closeable
close
in interface FeatureIterator<SimpleFeature>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |