edu.unh.sdb.datasource
Class ARRSCellDataSource

java.lang.Object
  extended by edu.unh.sdb.datasource.DataCollection
      extended by edu.unh.sdb.datasource.DataSource
          extended by edu.unh.sdb.datasource.CellDataSource
              extended by edu.unh.sdb.datasource.ARRSCellDataSource
All Implemented Interfaces:
CellIndexable, Indexable
Direct Known Subclasses:
ARRSCellCopyDS

public abstract class ARRSCellDataSource
extends CellDataSource


Field Summary
protected  DataSource pointDS
           
protected  ARRSTree subtree
           
protected  ARRSTree tree
           
 
Fields inherited from class edu.unh.sdb.datasource.DataSource
fdlDescriptor, isActivated, name, wsName
 
Fields inherited from class edu.unh.sdb.datasource.DataCollection
attributeOrder, axisOrdering, axisWeights, bounds, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc
 
Constructor Summary
ARRSCellDataSource()
          Construct a ARRSCellDataSource without arguments
ARRSCellDataSource(ARRSTree tree, DataSource pointds)
          Construct a ARRSCellDataSource with an ARRSTree
 
Method Summary
 void activate()
          Construct a ARRSCellDataSource with the given base bounds and number of attributes ***************** rdb delete **************** public ARRSCellDataSource( ISBounds basebounds, RecordDescriptor recordDesc ) { super( basebounds, recordDesc ); this.pointDS = null; this.tree = null; this.subtree = null; }
 Datum[] data()
          Return a reference to the actual array containing the data.
 void datum(Datum dtm, IndexSpaceID did)
          Return by reference the Datum corresponding to the given IndexSpaceID.
 void datum(Datum dtm, IndexSpaceID did, FieldIDMapper mp)
          Get the Datum and fill its values in the passed Datum at positions specified by the corresponding FieldIDMapper.
 void datum(Datum dtm, IndexSpaceID did, RecordSpec recSpec)
          Get the Datum and fill its values in the passed Datum at positions specified by the corresponding RecordSpec.
 void deactivate()
          The DataSource will release any resources used during the readling or processing of data.
 ARRSTree getARRSTree()
          Get an ARRS tree
 ISBounds getBaseBounds()
          Get the base bounds
 DataSource getPointDS()
          Get the point datasource
protected  void init()
           
 void setARRSTree(ARRSTree tree)
          Set an ARRS tree
 void setBaseBounds(ISBounds basebounds)
          Set the base bounds
 void setDatum(IndexSpaceID isid, Datum d)
          Set the location specified by the IndexSpaceID to the given datum.
 void setPointDS(DataSource pds)
          Set the point datasource
 int size()
          Return the number of datums .
abstract  void subblock(DataBlock theBlock, ISBounds bd)
          Reads a subblock defined by the specified bounds into the DataBlock argument
 void subblock(DataBlock theBlock, ISBounds dstBounds, ISBounds srcBounds)
          Reads a subblock defined by srcBounds into the region of the Datablock argument defined by dstBounds.
 void subblock(DataBlock theBlock, ISBounds dstBounds, ISBounds srcBounds, FieldIDMapper mp)
          Reads a subblock defined by srcBounds into the region of the Datablock argument defined by dstBounds.
abstract  DataBlock subblock(ISBounds db)
          Return a new DataBlock that is a subset of this datablock.
abstract  void urCellBlock(DataBlock urBlock, ISBounds b, ISBounds res)
          Return a cell block with the specified bounds and the specified resolution
 
Methods inherited from class edu.unh.sdb.datasource.DataSource
checkActivated, clearCache, copyBestID, create, create, create, createRemote, createRemote, createRemoteClient, createRemoteClient, createRemoteDataSource, createRemoteDataSource, createRemoteDataSourceUDP, createRemoteUDP, createRemoteUDP, dumpData, equals, getName, getValues, isActivated, main, toString, toString
 
Methods inherited from class edu.unh.sdb.datasource.DataCollection
byteSize, computeOffset, computeOffset, copyBounds, createDataBlock, createDataBlock, createDataBlock, createDatum, createDatum, createDatum, createDatum, createDatum, createDatum, datum, datum, datum, datum, dim, getAxisOrdering, getAxisWeight, getAxisWeights, getBounds, getByte, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytesByAttribute, getBytesByAttribute, getBytesByPoint, getBytesByPoint, getDataOrder, getDimensionsArray, getDouble, getDoubles, getDoubles, getDoubles, getDoubles, getDoubles, getDoubles, getDoublesByAttribute, getDoublesByAttribute, getDoublesByPoint, getDoublesByPoint, getFloat, getFloats, getFloats, getFloats, getFloats, getFloats, getFloats, getFloatsByAttribute, getFloatsByAttribute, getFloatsByPoint, getFloatsByPoint, getInt, getInts, getInts, getInts, getInts, getInts, getInts, getIntsByAttribute, getIntsByAttribute, getIntsByPoint, getIntsByPoint, getLowerBoundsArray, getNumAttributes, getRecordDescriptor, getShort, getShorts, getShorts, getShorts, getShorts, getShorts, getShorts, getShortsByAttribute, getShortsByAttribute, getShortsByPoint, getShortsByPoint, getStorageType, getValues, getValuesByAttribute, getValuesByPoint, longVolume, setAxisOrdering, setBounds, setRecordDescriptor, subblock, subblock, subblock, subblock, subblock, subblock, subblock, subblock, useBytesOnly, volume
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.unh.sdb.datasource.Indexable
copyBounds, datum, datum, dim, getBounds, getNumAttributes, getRecordDescriptor, subblock, subblock, subblock
 

Field Detail

pointDS

protected DataSource pointDS

tree

protected ARRSTree tree

subtree

protected ARRSTree subtree
Constructor Detail

ARRSCellDataSource

public ARRSCellDataSource()
Construct a ARRSCellDataSource without arguments


ARRSCellDataSource

public ARRSCellDataSource(ARRSTree tree,
                          DataSource pointds)
Construct a ARRSCellDataSource with an ARRSTree

Method Detail

activate

public void activate()
Construct a ARRSCellDataSource with the given base bounds and number of attributes ***************** rdb delete **************** public ARRSCellDataSource( ISBounds basebounds, RecordDescriptor recordDesc ) { super( basebounds, recordDesc ); this.pointDS = null; this.tree = null; this.subtree = null; }

Overrides:
activate in class DataSource

deactivate

public void deactivate()
Description copied from class: DataSource
The DataSource will release any resources used during the readling or processing of data. It is important that all child classes call super.deactivate()

Overrides:
deactivate in class DataSource

setBaseBounds

public void setBaseBounds(ISBounds basebounds)
Set the base bounds


setPointDS

public void setPointDS(DataSource pds)
Set the point datasource


setARRSTree

public void setARRSTree(ARRSTree tree)
Set an ARRS tree


init

protected void init()

getARRSTree

public ARRSTree getARRSTree()
Get an ARRS tree


getPointDS

public DataSource getPointDS()
Get the point datasource


size

public int size()
Description copied from class: DataCollection
Return the number of datums .

Overrides:
size in class DataCollection

getBaseBounds

public ISBounds getBaseBounds()
Get the base bounds


setDatum

public void setDatum(IndexSpaceID isid,
                     Datum d)
Set the location specified by the IndexSpaceID to the given datum.


subblock

public abstract DataBlock subblock(ISBounds db)
Return a new DataBlock that is a subset of this datablock. The Data is shared between the two DataBlocks.

Specified by:
subblock in interface Indexable
Overrides:
subblock in class DataCollection

subblock

public abstract void subblock(DataBlock theBlock,
                              ISBounds bd)
Reads a subblock defined by the specified bounds into the DataBlock argument

Overrides:
subblock in class DataCollection

subblock

public void subblock(DataBlock theBlock,
                     ISBounds dstBounds,
                     ISBounds srcBounds)
Reads a subblock defined by srcBounds into the region of the Datablock argument defined by dstBounds. The FieldIDMapper argument determines the mapping between datums in this DataBlock and datums in the argument DataBlock.

Specified by:
subblock in interface Indexable
Specified by:
subblock in class DataCollection

subblock

public void subblock(DataBlock theBlock,
                     ISBounds dstBounds,
                     ISBounds srcBounds,
                     FieldIDMapper mp)
Reads a subblock defined by srcBounds into the region of the Datablock argument defined by dstBounds. The FieldIDMapper argument determines the mapping between datums in this DataBlock and datums in the argument DataBlock.

Specified by:
subblock in interface Indexable
Specified by:
subblock in class DataCollection

data

public Datum[] data()
Return a reference to the actual array containing the data.


datum

public void datum(Datum dtm,
                  IndexSpaceID did)
Return by reference the Datum corresponding to the given IndexSpaceID.

Specified by:
datum in interface Indexable
Overrides:
datum in class DataCollection

datum

public void datum(Datum dtm,
                  IndexSpaceID did,
                  FieldIDMapper mp)
Get the Datum and fill its values in the passed Datum at positions specified by the corresponding FieldIDMapper.

Specified by:
datum in interface Indexable
Specified by:
datum in class DataCollection

datum

public void datum(Datum dtm,
                  IndexSpaceID did,
                  RecordSpec recSpec)
Get the Datum and fill its values in the passed Datum at positions specified by the corresponding RecordSpec.

Specified by:
datum in interface Indexable
Overrides:
datum in class DataCollection

urCellBlock

public abstract void urCellBlock(DataBlock urBlock,
                                 ISBounds b,
                                 ISBounds res)
Return a cell block with the specified bounds and the specified resolution