|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RandomFeatureAccess
Access Feature content using Feature "Id".
Many SimpleFeatureCollection 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.
Method Summary | |
---|---|
SimpleFeature |
getFeatureMember(String id)
Access Feature content by feature id. |
SimpleFeature |
removeFeatureMember(String id)
Optional Method |
Methods inherited from interface SimpleFeatureCollection |
---|
features, sort, subCollection |
Methods inherited from interface FeatureCollection |
---|
accepts, contains, containsAll, getBounds, getID, getSchema, isEmpty, size, toArray, toArray |
Method Detail |
---|
SimpleFeature getFeatureMember(String id) throws NoSuchElementException
id
-
NoSuchElementException
- if a Feature with the indicated id is not presentSimpleFeature removeFeatureMember(String id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |