edu.unh.sdb.datasource
Class URCellBlock

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

public class URCellBlock
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
URCellBlock()
          Construct a URCellBlock without arguments
URCellBlock(DataBlock b)
          Construct a URCellBlock with a given URCellBlock
URCellBlock(ISBounds isb, AxisOrdering ordering, RecordDescriptor recordDesc)
          Construct a URCellBlock with the given bounds, axis axisOrdering and RecordDescriptor.
URCellBlock(ISBounds isb, RecordDescriptor recordDesc)
          Construct a URCellBlock with the given bounds and number of attributes
 
Method Summary
 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.
 ISBounds getBaseBounds()
          Get the base bounds
 Cell getCell(IntegerIndexSpaceID position)
          Return a cell corresponding to the specified position
 DimResolution getDimResolution()
          Get the dimensional resolution
 int[] getPath()
          Get the path of an uniform region cell block in a ARRS tree
 DataBlock getPointDataBlock()
          Get the data source
 void setDatum(IndexSpaceID isid, Datum d)
          Set the location specified by the IndexSpaceID to the given datum.
 void setDimResolution(DimResolution resolution)
          Set the resolution
 void setPath(int[] path)
          Set the path of a uniform region cell block in a ARRS tree
 void setPointDataBlock(DataBlock block)
          Set a point data block to a uniform cell block
 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 URCellBlock.
 DataBlock subblock(RecordSpec rs, ISBounds db)
          Return a subblock corresponding to the given RecordSpec and the given ISBounds.
 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 cellRes)
          Fill a cell block with the specified resolution and the specified bounds
 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
 
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, 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

URCellBlock

public URCellBlock()
Construct a URCellBlock without arguments


URCellBlock

public URCellBlock(ISBounds isb,
                   AxisOrdering ordering,
                   RecordDescriptor recordDesc)
Construct a URCellBlock with the given bounds, axis axisOrdering and RecordDescriptor. The bounds will be moved to the origin.


URCellBlock

public URCellBlock(ISBounds isb,
                   RecordDescriptor recordDesc)
Construct a URCellBlock with the given bounds and number of attributes


URCellBlock

public URCellBlock(DataBlock b)
Construct a URCellBlock with a given URCellBlock

Method Detail

setDimResolution

public void setDimResolution(DimResolution resolution)
Set the resolution


setPath

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


setPointDataBlock

public void setPointDataBlock(DataBlock block)
Set a point data block to a uniform cell block


getPath

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


getDimResolution

public DimResolution getDimResolution()
Get the dimensional resolution


getBaseBounds

public ISBounds getBaseBounds()
Get the base bounds


toString

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

Overrides:
toString in class DataBlock

toString

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


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

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)
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,
                     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.

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

subblock

public DataBlock subblock(RecordSpec rs,
                          ISBounds db)
Return a subblock corresponding to the given RecordSpec and the given ISBounds.


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

getPointDataBlock

public DataBlock getPointDataBlock()
Get the data source


getCell

public Cell getCell(IntegerIndexSpaceID position)
Return a cell corresponding to the specified position


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 ublock,
                        ISBounds b,
                        ISBounds cellRes)
Fill a cell block with the specified resolution and the specified bounds

Specified by:
urCellBlock in interface CellIndexable