|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractDataStore
ArrayDataStore
public final class ArrayDataStore
Simple example of an AbstractDataStore built around the provided array of features.
Please note that this is a simple example and all the features must be of the same FeatureType.
This class is used by DataUtilities.source(SimpleFeature[])
.
Field Summary |
---|
Fields inherited from class AbstractDataStore |
---|
isWriteable, listenerManager, LOGGER |
Constructor Summary | |
---|---|
ArrayDataStore(SimpleFeature[] featureArray)
Create a read-only DataStore wrapped around the provided feature array. |
Method Summary | |
---|---|
protected FeatureReader<SimpleFeatureType,SimpleFeature> |
getFeatureReader(String typeName)
Subclass must implement. |
SimpleFeatureType |
getSchema(String typeName)
Retrive schema information for typeName |
String[] |
getTypeNames()
helper method for retrieving all the names. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayDataStore(SimpleFeature[] featureArray)
featureArray
- SimpleFeature array, if empty FeatureTypes.EMPTY is usedMethod Detail |
---|
public String[] getTypeNames()
AbstractDataStore
getTypeNames
in interface DataStore
getTypeNames
in class AbstractDataStore
DataStore
public SimpleFeatureType getSchema(String typeName) throws IOException
AbstractDataStore
getSchema
in interface DataStore
getSchema
in class AbstractDataStore
typeName
- the feature type name
IOException
- if typeName
is not availableprotected FeatureReader<SimpleFeatureType,SimpleFeature> getFeatureReader(String typeName) throws IOException
AbstractDataStore
getFeatureReader
in class AbstractDataStore
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |