edu.unh.sdb.datasource
Class RegCellDataSource

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.RegCellDataSource
All Implemented Interfaces:
CellIndexable, Indexable

public class RegCellDataSource
extends CellDataSource
implements CellIndexable


Field Summary
 
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
RegCellDataSource(DataSource ds)
          Constructor sets all data members to copies of the corresponding members from a point DataSource corresponding to this cell data source.
 
Method Summary
 void activate()
          The DataSource will perform any initialization required in order to begin reading/processing data.
 void datum(Datum dtm, IndexSpaceID did)
          PBR: Return by reference the Datum corresponding to the given IndexSpaceID.
 void datum(Datum dtm, IndexSpaceID did, FieldIDMapper mp)
          PBR: Return by reference the Datum corresponding to the given IndexSpaceID.
 void datum(Datum dtm, IndexSpaceID did, RecordSpec recSpec)
          PBR: Return by reference the Datum corresponding to the given IndexSpaceID.
 Datum datum(IndexSpaceID did)
          Return the Datum corresponding to the given IndexSpaceID.
 Datum datum(IndexSpaceID did, RecordSpec spec)
          Return the Datum corresponding to the given IndexSpaceID.
 void deactivate()
          The DataSource will release any resources used during the readling or processing of data.
 Cell getCell(IndexSpaceID cellISID)
          Get a cell in the cell data source
 DataBlock getCellData(IndexSpaceID cellISID)
          Get the point block of a cell
 Datum[] getCornerDatums(IndexSpaceID cellISID)
          Get the datums of the corners in a cell
 IndexSpaceID[] getCorners(IndexSpaceID cellISID)
          Get the corners of a cell
 DimResolution getDimResolution()
          Get the dimensional resolution
 int[] getPath()
          Get the path of an uniform region cell datasource in a ARRS tree
 DataSource getPointDS()
          Get the point data source relative to a cell data souce
 void setDimResolution(DimResolution resolution)
          Set the resolution
 void setPath(int[] path)
          Set the path of an uniform cell datasource in a ARRS tree
 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.
 void subblock(DataBlock theBlock, ISBounds dstBounds, ISBounds srcBounds, RecordSpec rs)
          Reads a subblock defined by srcBounds into the region of the Datablock argument defined by dstBounds.
 DataBlock subblock(ISBounds db)
          Return a new DataBlock that is a subset of this datablock.
 java.lang.String toString()
          Return a String representing the object.
 java.lang.String toString(java.lang.String indent)
          Return a String representing the object indented by the argument string.
 void urCellBlock(DataBlock ublock, ISBounds b, ISBounds res)
          Return a cell block with the specified resolution and the specified bounds
 
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
 
Methods inherited from class edu.unh.sdb.datasource.DataCollection
byteSize, computeOffset, computeOffset, copyBounds, createDataBlock, createDataBlock, createDataBlock, createDatum, createDatum, createDatum, createDatum, createDatum, createDatum, 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, size, 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, dim, getBounds, getNumAttributes, getRecordDescriptor, subblock, subblock
 

Constructor Detail

RegCellDataSource

public RegCellDataSource(DataSource ds)
Constructor sets all data members to copies of the corresponding members from a point DataSource corresponding to this cell data source.

Method Detail

activate

public void activate()
The DataSource will perform any initialization required in order to begin reading/processing data.

Overrides:
activate in class DataSource

getPointDS

public DataSource getPointDS()
Get the point data source relative to a cell data souce


setDimResolution

public void setDimResolution(DimResolution resolution)
Set the resolution


setPath

public void setPath(int[] path)
Set the path of an uniform cell datasource in a ARRS tree


getPath

public int[] getPath()
Get the path of an uniform region cell datasource in a ARRS tree


getDimResolution

public DimResolution getDimResolution()
Get the dimensional resolution


getCorners

public IndexSpaceID[] getCorners(IndexSpaceID cellISID)
Get the corners of a cell


getCornerDatums

public Datum[] getCornerDatums(IndexSpaceID cellISID)
Get the datums of the corners in a cell


getCellData

public DataBlock getCellData(IndexSpaceID cellISID)
Get the point block of a cell


getCell

public Cell getCell(IndexSpaceID cellISID)
Get a cell in the cell data source


deactivate

public void deactivate()
The DataSource will release any resources used during the readling or processing of data.

Overrides:
deactivate in class DataSource

datum

public Datum datum(IndexSpaceID did)
Return the Datum corresponding to the given IndexSpaceID.

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

datum

public Datum datum(IndexSpaceID did,
                   RecordSpec spec)
Return the Datum corresponding to the given IndexSpaceID. The Datum will only contain attributes specified by the RecordSpec argument.

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

datum

public void datum(Datum dtm,
                  IndexSpaceID did)
PBR: 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)
PBR: Return by reference the Datum corresponding to the given IndexSpaceID. Only datum fields referred to by the FieldIDMapper are modified.

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

datum

public void datum(Datum dtm,
                  IndexSpaceID did,
                  RecordSpec recSpec)
PBR: Return by reference the Datum corresponding to the given IndexSpaceID. Only datum fields referred to by the RecordSpec are modified.

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

subblock

public DataBlock subblock(ISBounds db)
Return a new DataBlock that is a subset of this datablock.

Specified by:
subblock in interface Indexable
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.

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

subblock

public void subblock(DataBlock theBlock,
                     ISBounds dstBounds,
                     ISBounds srcBounds,
                     FieldIDMapper mp)
Description copied from class: DataCollection
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. It is legal to pass a null for the FieldIDMapper argument which means that all attributes are to be extracted.

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

subblock

public void subblock(DataBlock theBlock,
                     ISBounds dstBounds,
                     ISBounds srcBounds,
                     RecordSpec rs)
Description copied from class: DataCollection
Reads a subblock defined by srcBounds into the region of the Datablock argument defined by dstBounds. The RecordSpec argument specifies a subset of the attributes of this DataSource to be written into the DataBlock datums. It is legal to pass a null for the RecordSpec argument which means that all attributes are to be extracted.

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

urCellBlock

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

Specified by:
urCellBlock in interface CellIndexable

toString

public java.lang.String toString()
Return a String representing the object.

Overrides:
toString in class DataSource

toString

public java.lang.String toString(java.lang.String indent)
Return a String representing the object indented by the argument string.

Overrides:
toString in class DataSource