public class LandsatStoreProvider extends DataStoreProvider
LandsatStore
instances. Given a StorageConnector
input,
this class tries to instantiate a LandsatStore
.
LandsatStoreProvider
instance can be safely used by many threads without synchronization on
the part of the caller. However the LandsatStore
instances created by this factory are not thread-safe.Defined in the sis-earth-observation
module
LOCATION
Constructor and Description |
---|
LandsatStoreProvider()
Creates a new provider.
|
Modifier and Type | Method and Description |
---|---|
ParameterDescriptorGroup |
getOpenParameters()
Returns a description of all parameters accepted by this provider for opening a Landsat file.
|
String |
getShortName()
Returns a generic name for this data store, used mostly in warnings or error messages.
|
DataStore |
open(StorageConnector connector)
Returns a
LandsatStore implementation associated with this provider. |
ProbeResult |
probeContent(StorageConnector connector)
Returns
ProbeResult.SUPPORTED if the given storage appears to be supported by LandsatStore . |
getFormat, getSupportedVersions, open
public String getShortName()
getShortName
in class DataStoreProvider
DataStoreProvider.getFormat()
public ParameterDescriptorGroup getOpenParameters()
getOpenParameters
in class DataStoreProvider
DataStoreProvider.open(ParameterValueGroup)
,
DataStore.getOpenParameters()
public ProbeResult probeContent(StorageConnector connector) throws DataStoreException
ProbeResult.SUPPORTED
if the given storage appears to be supported by LandsatStore
.
Returning SUPPORTED
from this method does not guarantee that reading or writing will succeed, only
that there appears to be a reasonable chance of success based on a brief inspection of the storage header.probeContent
in class DataStoreProvider
connector
- information about the storage (URL, stream, JDBC connection, etc).ProbeResult.SUPPORTED
if the given storage seems to be readable as a Landsat file.DataStoreException
- if an I/O or SQL error occurred.public DataStore open(StorageConnector connector) throws DataStoreException
LandsatStore
implementation associated with this provider.open
in class DataStoreProvider
connector
- information about the storage (URL, stream, etc).DataStoreException
- if an error occurred while creating the data store instance.DataStores.open(Object)
Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.