Package org.geotools.stac.store
Class STACDataStore
Object
ContentDataStore
STACDataStore
- All Implemented Interfaces:
DataAccess<SimpleFeatureType,
,SimpleFeature> DataStore
-
Field Summary
Fields inherited from class ContentDataStore
dataStoreFactory, entries, featureFactory, filterFactory, geometryFactory, JOINED_FEATURE_TYPE, lockingManager, namespaceURI, typeFactory, WRITER_ADD, WRITER_COMMIT, WRITER_UPDATE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ContentFeatureSource
createFeatureSource
(ContentEntry entry) Instantiates new feature source for the entry.Creates a set of qualified names corresponding to the types that the datastore provides.void
dispose()
Disposes of this data store and releases any resource that it is using.Returns theSTACClient
used by the storeint
int
int
void
setFeatureTypeItems
(int featureTypeItems) void
setFetchSize
(int fetchSize) void
setHardLimit
(int hardLimit) Maximum number of STAC items a collection will ever provide (set to zero or negative not to have this limit).void
setSearchMode
(STACClient.SearchMode searchMode) Methods inherited from class ContentDataStore
createContentState, createSchema, ensureEntry, ensureFeatureStore, entry, getDataStoreFactory, getEntry, getFeatureFactory, getFeatureReader, getFeatureSource, getFeatureSource, getFeatureSource, getFeatureSource, getFeatureTypeFactory, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getFilterFactory, getGeometryFactory, getInfo, getLockingManager, getLogger, getNames, getNamespaceURI, getSchema, getSchema, getTypeNames, name, removeEntry, removeSchema, removeSchema, setDataStoreFactory, setFeatureFactory, setFeatureTypeFactory, setFilterFactory, setGeometryFactory, setNamespaceURI, updateSchema, updateSchema
-
Constructor Details
-
STACDataStore
-
-
Method Details
-
getSearchMode
-
setSearchMode
-
getFetchSize
public int getFetchSize() -
setFetchSize
public void setFetchSize(int fetchSize) -
createTypeNames
Description copied from class:ContentDataStore
Creates a set of qualified names corresponding to the types that the datastore provides.Namespaces may be left
null
for data stores which do not support namespace qualified type names.- Specified by:
createTypeNames
in classContentDataStore
- Returns:
- A list of
Name
. - Throws:
IOException
- Any errors occuring connecting to data.
-
createFeatureSource
Description copied from class:ContentDataStore
Instantiates new feature source for the entry.Subclasses should override this method to return a specific subclass of
ContentFeatureSource
.- Specified by:
createFeatureSource
in classContentDataStore
- Parameters:
entry
- The entry.- Returns:
- An new instance of
ContentFeatureSource
for the entry. - Throws:
IOException
-
dispose
public void dispose()Description copied from interface:DataAccess
Disposes of this data store and releases any resource that it is using.A
DataStore
cannot be used afterdispose
has been called, neither can any data access object it helped create, such asFeatureReader
,FeatureSource
orFeatureCollection
.This operation can be called more than once without side effects.
There is no thread safety assurance associated with this method. For example, client code will have to make sure this method is not called while retrieving/saving data from/to the storage, or be prepared for the consequences.
- Specified by:
dispose
in interfaceDataAccess<SimpleFeatureType,
SimpleFeature> - Overrides:
dispose
in classContentDataStore
-
setHardLimit
public void setHardLimit(int hardLimit) Maximum number of STAC items a collection will ever provide (set to zero or negative not to have this limit).- Parameters:
hardLimit
-
-
getHardLimit
public int getHardLimit() -
getFeatureTypeItems
public int getFeatureTypeItems() -
setFeatureTypeItems
public void setFeatureTypeItems(int featureTypeItems) -
getClient
Returns theSTACClient
used by the store
-