Package org.geotools.stac.store
Class STACDataStore
- Object
-
- ContentDataStore
-
- STACDataStore
-
- All Implemented Interfaces:
DataAccess<SimpleFeatureType,SimpleFeature>
,DataStore
public class STACDataStore extends ContentDataStore
-
-
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 Constructor Description STACDataStore(STACClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ContentFeatureSource
createFeatureSource(ContentEntry entry)
Instantiates new feature source for the entry.protected List<Name>
createTypeNames()
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.STACClient
getClient()
Returns theSTACClient
used by the storeint
getFeatureTypeItems()
int
getFetchSize()
int
getHardLimit()
STACClient.SearchMode
getSearchMode()
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 Detail
-
STACDataStore
public STACDataStore(STACClient client)
-
-
Method Detail
-
getSearchMode
public STACClient.SearchMode getSearchMode()
-
setSearchMode
public void setSearchMode(STACClient.SearchMode searchMode)
-
getFetchSize
public int getFetchSize()
-
setFetchSize
public void setFetchSize(int fetchSize)
-
createTypeNames
protected List<Name> createTypeNames() throws IOException
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
protected ContentFeatureSource createFeatureSource(ContentEntry entry) throws IOException
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
public STACClient getClient()
Returns theSTACClient
used by the store
-
-