edu.unh.sdb.datasource
Class ARRSCellBlock

java.lang.Object
  extended by edu.unh.sdb.datasource.DataCollection
      extended by edu.unh.sdb.datasource.DataBlock
          extended by edu.unh.sdb.datasource.CellBlock
              extended by edu.unh.sdb.datasource.RectCellBlock
                  extended by edu.unh.sdb.datasource.ARRSCellBlock
All Implemented Interfaces:
CellIndexable, Indexable

public class ARRSCellBlock
extends RectCellBlock
implements CellIndexable


Field Summary
 
Fields inherited from class edu.unh.sdb.datasource.DataCollection
attributeOrder, axisOrdering, axisWeights, bounds, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc
 
Constructor Summary
ARRSCellBlock()
          Construct a ARRSCellBlock without arguments
ARRSCellBlock(ARRSTree tree, DataSource pointds)
          Construct a ARRSCellBlock with an ARRSTree
ARRSCellBlock(ISBounds basebounds, RecordDescriptor recordDesc)
          Construct a ARRSCellBlock with the given base bounds and number of attributes
ARRSCellBlock(java.lang.String command, java.lang.String indexFDL, java.lang.String pdsFDL)
          Deprecated. A Block should not be created from DS specs; create DS and subblock. This is also "copy" version specific.
 
Method Summary
 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 datum(Datum d, int[] coordArray)
          Given an array of coordinates, copy the corresponding datum into the first parameter.
 Datum datum(IndexSpaceID did)
          Given an IndexSpaceID, return the corresponding datum.
 Datum datum(IndexSpaceID did, RecordSpec spec)
          Given an IndexSpaceID, return the corresponding datum with attributes specified in the RecordSpec.
 ARRSTree getARRSTree()
          Get an ARRS tree
 ISBounds getBaseBounds()
          Get the base bounds
 DataSource getPointDS()
          Get the point datasource
 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
 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.
 void subblock(DataBlock theBlock, ISBounds dstBounds, ISBounds srcBounds, RecordSpec spec)
          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.
 void urCellBlock(DataBlock urBlock, ISBounds b, ISBounds res)
          Fill in a cell block with the specified bounds and the specified resolution.
 DataBlock urCellBlock(ISBounds b, ISBounds res)
          Return a cell block with the specified bounds and the specified resolution
 
Methods inherited from class edu.unh.sdb.datasource.RectCellBlock
size
 
Methods inherited from class edu.unh.sdb.datasource.DataBlock
getValues, setByAttribute, setByte, setBytes, setBytes, setBytesByAttribute, setBytesByPoint, setDouble, setDoubles, setDoubles, setDoublesByAttribute, setDoublesByPoint, setFloat, setFloats, setFloats, setFloatsByAttribute, setFloatsByPoint, setInt, setInts, setInts, setIntsByAttribute, setIntsByPoint, setShort, setShorts, setShorts, setShortsByAttribute, setShortsByPoint, setValues, setValues, setValuesByAttribute, setValuesByPoint, toString
 
Methods inherited from class edu.unh.sdb.datasource.DataCollection
byteSize, computeOffset, computeOffset, copyBounds, createDataBlock, createDataBlock, createDataBlock, createDatum, createDatum, createDatum, createDatum, createDatum, createDatum, 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, useBytesOnly, volume
 
Methods inherited from class java.lang.Object
clone, equals, 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

ARRSCellBlock

public ARRSCellBlock()
Construct a ARRSCellBlock without arguments


ARRSCellBlock

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


ARRSCellBlock

public ARRSCellBlock(ISBounds basebounds,
                     RecordDescriptor recordDesc)
Construct a ARRSCellBlock with the given base bounds and number of attributes


ARRSCellBlock

public ARRSCellBlock(java.lang.String command,
                     java.lang.String indexFDL,
                     java.lang.String pdsFDL)
Deprecated. A Block should not be created from DS specs; create DS and subblock. This is also "copy" version specific.

Construct a ARRSCellBlock with command file,indexFDL,and ARRSCellBlock

Method Detail

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


getARRSTree

public ARRSTree getARRSTree()
Get an ARRS tree


getPointDS

public DataSource getPointDS()
Get the point datasource


getBaseBounds

public ISBounds getBaseBounds()
Get the base bounds


datum

public Datum datum(IndexSpaceID did)
Given an IndexSpaceID, return the corresponding datum.

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

datum

public void datum(Datum d,
                  int[] coordArray)
Given an array of coordinates, copy the corresponding datum into the first parameter.

Overrides:
datum in class DataCollection

datum

public Datum datum(IndexSpaceID did,
                   RecordSpec spec)
Given an IndexSpaceID, return the corresponding datum with attributes specified in the RecordSpec.

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

setDatum

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

Specified by:
setDatum in class DataBlock

subblock

public 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 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.

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. A null FieldIDMapper argument implies that all fields are used.

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

subblock

public void subblock(DataBlock theBlock,
                     ISBounds dstBounds,
                     ISBounds srcBounds,
                     RecordSpec spec)
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. A null RecordSpec argument implies that all fields are used.

Specified by:
subblock in interface Indexable
Overrides:
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 DataBlock urCellBlock(ISBounds b,
                             ISBounds res)
Return a cell block with the specified bounds and the specified resolution


urCellBlock

public void urCellBlock(DataBlock urBlock,
                        ISBounds b,
                        ISBounds res)
Fill in a cell block with the specified bounds and the specified resolution. This version should: 1) check that the passed in block is the right kind and the right size; 2) if it's not correct, it should allocate a correct one; 3) in all cases it should return the block actually filled; and 4) it should accept null.

Specified by:
urCellBlock in interface CellIndexable