Package eoxserver :: Package resources :: Package coverages :: Module data :: Class DataSourceWrapper
[hide private]
[frames] | no frames]

Class DataSourceWrapper

source code


This class implements :class:`~.DataSourceInterface`. It inherits from :class:`~.RecordWrapper`. .. method:: setAttrs(**kwargs) :class:`DataSourceWrapper` defines two attributes that can be assigned to an instance: * ``location``: the location of the data source (a local or remote path to a directory) * ``search_pattern``: the search pattern defined for the data source (optional) .. method:: sync See :meth:`.RecordWrapper.sync`. .. method:: getRecord See :meth:`.RecordWrapper.getRecord`
Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
getType(self)
Returns ``"data_source"``.
source code
 
detect(self)
Detect files at the location that match the given search pattern.
source code
 
contains(self, wrapper)
Check if the DataSource contains a coverage with a certain ID
source code
 
_validate_record(self, record) source code
 
_validate_attrs(self, **kwargs) source code
 
_set_attrs(self, **kwargs) source code
 
_fetch_unique_record(self) source code
 
_get_query(self, fields=None) source code
 
_get_query_set(self, query) source code
 
_create_record(self) source code

Inherited from core.records.RecordWrapper: delete, getRecord, setAttrs, setRecord, sync

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  REGISTRY_CONF = {'factory_ids': ('resources.coverages.data.Dat...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

getType(self)

source code 
Returns ``"data_source"``.
Overrides: core.records.RecordWrapper.getType

detect(self)

source code 
Detect files at the location that match the given search pattern. Returns a list of locations. If no location has been defined yet, return an empty list.

_validate_record(self, record)

source code 
Overrides: core.records.RecordWrapper._validate_record

_validate_attrs(self, **kwargs)

source code 
Overrides: core.records.RecordWrapper._validate_attrs

_set_attrs(self, **kwargs)

source code 
Overrides: core.records.RecordWrapper._set_attrs

_fetch_unique_record(self)

source code 
Overrides: core.records.RecordWrapper._fetch_unique_record

_get_query(self, fields=None)

source code 
Overrides: core.records.RecordWrapper._get_query

_get_query_set(self, query)

source code 
Overrides: core.records.RecordWrapper._get_query_set

_create_record(self)

source code 
Overrides: core.records.RecordWrapper._create_record

Class Variable Details [hide private]

REGISTRY_CONF

Value:
{'factory_ids': ('resources.coverages.data.DataSourceFactory'),
 'impl_id': 'resources.coverages.data.DataSourceWrapper',
 'name': 'Data Source Wrapper'}