|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Access Feature content using Feature "Id".
Many FeatureCollection classes will make use of this API to avoid unnecessary caching of content. Supporting this interface will allow SubCollections to occur based on FeatureIds, with a suitable improvement in memory consumption.
For an addition improvement in memory comsumption SubCollections may use of a sparse reprsentation where only (beginId,endId] ranges are kept in memory.
Nested Class Summary |
Nested classes inherited from class org.geotools.feature.Feature |
Feature.NULL |
Method Summary | |
Feature |
getFeatureMember(java.lang.String id)
Access Feature content by feature id. |
Feature |
removeFeatureMember(java.lang.String id)
Optional Method |
Methods inherited from interface org.geotools.feature.FeatureCollection |
accepts, addListener, close, close, features, getFeatureType, getSchema, removeListener, sort, subCollection |
Methods inherited from interface org.geotools.data.collection.ResourceCollection |
iterator, purge |
Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray |
Methods inherited from interface org.geotools.data.FeatureResults |
collection, getBounds, getCount, reader |
Methods inherited from interface org.geotools.feature.Feature |
getAttribute, getAttribute, getAttributes, getBounds, getDefaultGeometry, getID, getNumberOfAttributes, getParent, setAttribute, setAttribute, setDefaultGeometry, setParent |
Method Detail |
public Feature getFeatureMember(java.lang.String id) throws java.util.NoSuchElementException
id
-
java.util.NoSuchElementException
- if a Feature with the indicated id is not presentpublic Feature removeFeatureMember(java.lang.String id)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |