| |
|
| java.lang.Object org.geotools.data.AbstractDataStore org.geotools.data.memory.MemoryDataStore
MemoryDataStore | public class MemoryDataStore extends AbstractDataStore (Code) | | This is an example implementation of a DataStore used for testing.
It serves as an example implementation of:
-
FeatureListenerManager use: allows handling of FeatureEvents
This class will also illustrate the use of In-Process locking when the time comes.
author: jgarnett |
Field Summary | |
protected Map | memory Memory holds Map of Feature by fid by typeName. | protected Map | schema |
memory | protected Map memory(Code) | | Memory holds Map of Feature by fid by typeName.
|
schema | protected Map schema(Code) | | Schema holds FeatureType by typeName
|
MemoryDataStore | public MemoryDataStore()(Code) | | |
addFeature | public void addFeature(Feature feature)(Code) | | Adds a single Feature to the correct typeName entry.
This is an internal opperation used for setting up MemoryDataStore - please use
FeatureWriter for generatl use.
This method is willing to create new FeatureTypes for MemoryDataStore.
Parameters: feature - Individual feature to add |
addFeatures | public void addFeatures(Collection collection)(Code) | | Configures MemoryDataStore with Collection.
You may use this to create a MemoryDataStore from a FeatureCollection.
Parameters: collection - Collection of features to add throws: IllegalArgumentException - If provided collection is empty |
addFeatures | public void addFeatures(Feature[] features)(Code) | | Configures MemoryDataStore with feature array.
Parameters: features - Array of features to add throws: IllegalArgumentException - If provided feature array is empty |
features | protected Map features(String typeName) throws IOException(Code) | | Access featureMap for typeName.
Parameters: typeName - A Map of Features by FID throws: IOException - If typeName cannot be found |
Methods inherited from org.geotools.data.AbstractDataStore | protected FeatureWriter createFeatureWriter(String typeName, Transaction transaction) throws IOException(Code)(Java Doc) protected InProcessLockingManager createLockingManager()(Code)(Java Doc) protected Map createMetadata(String typeName)(Code)(Java Doc) public void createSchema(FeatureType featureType) throws IOException(Code)(Java Doc) public void dispose()(Code)(Java Doc) protected Envelope getBounds(Query query) throws IOException(Code)(Java Doc) protected int getCount(Query query) throws IOException(Code)(Java Doc) abstract protected FeatureReader getFeatureReader(String typeName) throws IOException(Code)(Java Doc) public FeatureReader getFeatureReader(Query query, Transaction transaction) throws IOException(Code)(Java Doc) protected FeatureReader getFeatureReader(String typeName, Query query) throws IOException(Code)(Java Doc) public FeatureSource getFeatureSource(String typeName) throws IOException(Code)(Java Doc) protected FeatureWriter getFeatureWriter(String typeName) throws IOException(Code)(Java Doc) public FeatureWriter getFeatureWriter(String typeName, Filter filter, Transaction transaction) throws IOException(Code)(Java Doc) public FeatureWriter getFeatureWriter(String typeName, Transaction transaction) throws IOException(Code)(Java Doc) public FeatureWriter getFeatureWriterAppend(String typeName, Transaction transaction) throws IOException(Code)(Java Doc) public LockingManager getLockingManager()(Code)(Java Doc) abstract public FeatureType getSchema(String typeName) throws IOException(Code)(Java Doc) protected Set getSupportedHints()(Code)(Java Doc) abstract public String[] getTypeNames() throws IOException(Code)(Java Doc) protected Filter getUnsupportedFilter(String typeName, Filter filter)(Code)(Java Doc) public FeatureSource getView(Query query) throws IOException, SchemaException(Code)(Java Doc) public void updateSchema(String typeName, FeatureType featureType)(Code)(Java Doc)
|
|
|
|