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 ContentFeatureSourcecreateFeatureSource(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.voiddispose()Disposes of this data store and releases any resource that it is using.STACClientgetClient()Returns theSTACClientused by the storeintgetFeatureTypeItems()intgetFetchSize()intgetHardLimit()STACClient.SearchModegetSearchMode()voidsetFeatureTypeItems(int featureTypeItems)voidsetFetchSize(int fetchSize)voidsetHardLimit(int hardLimit)Maximum number of STAC items a collection will ever provide (set to zero or negative not to have this limit).voidsetSearchMode(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:ContentDataStoreCreates a set of qualified names corresponding to the types that the datastore provides.Namespaces may be left
nullfor data stores which do not support namespace qualified type names.- Specified by:
createTypeNamesin 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:ContentDataStoreInstantiates new feature source for the entry.Subclasses should override this method to return a specific subclass of
ContentFeatureSource.- Specified by:
createFeatureSourcein classContentDataStore- Parameters:
entry- The entry.- Returns:
- An new instance of
ContentFeatureSourcefor the entry. - Throws:
IOException
-
dispose
public void dispose()
Description copied from interface:DataAccessDisposes of this data store and releases any resource that it is using.A
DataStorecannot be used afterdisposehas been called, neither can any data access object it helped create, such asFeatureReader,FeatureSourceorFeatureCollection.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:
disposein interfaceDataAccess<SimpleFeatureType,SimpleFeature>- Overrides:
disposein 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 theSTACClientused by the store
-
-