|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<org.opengis.feature.Feature>
org.geotools.data.SampleDataAccessFeatureCollection
public class SampleDataAccessFeatureCollection
Collection of features from a SampleDataAccess
.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
SampleDataAccessFeatureCollection()
|
Method Summary | |
---|---|
void |
accepts(org.opengis.feature.FeatureVisitor visitor,
org.opengis.util.ProgressListener progress)
Visit the contents of a feature collection. |
boolean |
addAll(FeatureCollection<? extends org.opengis.feature.type.FeatureType,? extends org.opengis.feature.Feature> resource)
|
void |
addListener(CollectionListener listener)
Unsupported operation. |
void |
close(FeatureIterator<org.opengis.feature.Feature> close)
Nothing to close. |
void |
close(java.util.Iterator<org.opengis.feature.Feature> close)
Nothing to close. |
FeatureIterator<org.opengis.feature.Feature> |
features()
Get an iterator over the features. |
ReferencedEnvelope |
getBounds()
Not yet implemented. |
java.lang.String |
getID()
Not yet implemented. |
org.opengis.feature.type.FeatureType |
getSchema()
Return type of features. |
void |
purge()
Close any outstanding resources released by this resources. |
void |
removeListener(CollectionListener listener)
Unsupported operation. |
FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature> |
sort(org.opengis.filter.sort.SortBy order)
Unsupported operation. |
FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature> |
subCollection(org.opengis.filter.Filter filter)
Unsupported operation. |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.geotools.feature.FeatureCollection |
---|
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode |
Constructor Detail |
---|
public SampleDataAccessFeatureCollection()
Method Detail |
---|
public void accepts(org.opengis.feature.FeatureVisitor visitor, org.opengis.util.ProgressListener progress) throws java.io.IOException
FeatureCollection
The order of traversal is dependent on the FeatureCollection implementation; some collections are able to make efficient use of an internal index in order to quickly visit features located in the same region.
accepts
in interface FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
visitor
- Closure applied to each feature in turn.progress
- Used to report progress, may be used to interrupt the operation
java.io.IOException
FeatureCollection.accepts(org.opengis.feature.FeatureVisitor,
org.opengis.util.ProgressListener)
public boolean addAll(FeatureCollection<? extends org.opengis.feature.type.FeatureType,? extends org.opengis.feature.Feature> resource)
addAll
in interface FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
FeatureCollection.addAll(org.geotools.feature.FeatureCollection)
public void addListener(CollectionListener listener) throws java.lang.NullPointerException
addListener
in interface FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
listener
- The listener to add
java.lang.NullPointerException
- If the listener is null.FeatureCollection.addListener(org.geotools.feature.CollectionListener)
public void close(FeatureIterator<org.opengis.feature.Feature> close)
close
in interface FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
FeatureCollection.close(org.geotools.feature.FeatureIterator)
public void close(java.util.Iterator<org.opengis.feature.Feature> close)
close
in interface FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
FeatureCollection.close(java.util.Iterator)
public FeatureIterator<org.opengis.feature.Feature> features()
features
in interface FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
FeatureCollection.features()
public ReferencedEnvelope getBounds()
getBounds
in interface FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
FeatureCollection.getBounds()
public java.lang.String getID()
getID
in interface FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
FeatureCollection.getID()
public org.opengis.feature.type.FeatureType getSchema()
getSchema
in interface FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
FeatureCollection.getSchema()
public void purge()
FeatureCollection
This method should be used with great caution, it is however available to allow the use of the ResourceCollection with algorthims that are unaware of the need to close iterators after use.
Example of using a normal Collections utility method:
Collections.sort( collection );
collection.purge();
purge
in interface FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
FeatureCollection.purge()
public void removeListener(CollectionListener listener) throws java.lang.NullPointerException
removeListener
in interface FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
listener
- The listener to remove
java.lang.NullPointerException
- If the listener is null.FeatureCollection.removeListener(org.geotools.feature.CollectionListener)
public FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature> sort(org.opengis.filter.sort.SortBy order)
sort
in interface FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
FeatureCollection.sort(org.opengis.filter.sort.SortBy)
public FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature> subCollection(org.opengis.filter.Filter filter)
subCollection
in interface FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
FeatureCollection.subCollection(org.opengis.filter.Filter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |