edu.unh.sdb.datasource
Class DatumBlock

java.lang.Object
  extended by edu.unh.sdb.datasource.DataCollection
      extended by edu.unh.sdb.datasource.DataBlock
          extended by edu.unh.sdb.datasource.DatumBlock
All Implemented Interfaces:
Indexable

Deprecated.

public class DatumBlock
extends DataBlock

A DatumBlock is a DataBlock that stores its data as an internal array of FloatDatums.


Field Summary
 
Fields inherited from class edu.unh.sdb.datasource.DataCollection
attributeOrder, axisOrdering, axisWeights, bounds, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc
 
Constructor Summary
DatumBlock(Datum[] data, ISBounds isb, AxisOrdering ordering, RecordDescriptor recordDesc)
          Deprecated. Construct a datablock with the given data, ISBounds, axis axisOrdering and RecordDescriptor.
DatumBlock(Datum[] data, ISBounds isb, RecordDescriptor recordDesc)
          Deprecated. Construct a datablock with the given data and ISBounds.
DatumBlock(ISBounds isb, RecordDescriptor recordDesc)
          Deprecated. Construct a datablock with the given bounds and number of attributes.
 
Method Summary
 Datum[] data()
          Deprecated. Return a reference to the actual array containing the data.
 void datum(Datum datum, IndexSpaceID id)
          Deprecated. Given an array of coordinates, load the corresponding datum into the datum argument.
 void datum(Datum dtm, IndexSpaceID did, FieldIDMapper mp)
          Deprecated. 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)
          Deprecated. Get the Datum and fill its values in the passed Datum at positions specified by the corresponding RecordSpec.
 void datum(Datum datum, int[] coords)
          Deprecated. Given an array of coordinates, load the corresponding datum into the datum argument.
 Datum datum(IndexSpaceID did)
          Deprecated. Given an IndexSpaceID, return the corresponding datum.
 Datum datum(IndexSpaceID did, RecordSpec spec)
          Deprecated. Given an IndexSpaceID, return the corresponding datum with attributes specified in the RecordSpec.
 Values getValues()
          Deprecated. Returns a Values array which encapsulates a 1D array of the data values in the block with one entry for every point in the block.
 void setDatum(IndexSpaceID isid, Datum d)
          Deprecated. Set the location specified by the IndexSpaceID to the given datum.
 void subblock(DataBlock theBlock, ISBounds dstBounds, ISBounds srcBounds)
          Deprecated. 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)
          Deprecated. 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)
          Deprecated. Reads a subblock defined by srcBounds into the region of the Datablock argument defined by dstBounds.
 DataBlock subblock(ISBounds db)
          Deprecated. Return a new DataBlock that is a subset of this datablock.
 
Methods inherited from class edu.unh.sdb.datasource.DataBlock
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, size, 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
 

Constructor Detail

DatumBlock

public DatumBlock(Datum[] data,
                  ISBounds isb,
                  AxisOrdering ordering,
                  RecordDescriptor recordDesc)
Deprecated. 
Construct a datablock with the given data, ISBounds, axis axisOrdering and RecordDescriptor. The bounds will be moved to the origin.


DatumBlock

public DatumBlock(Datum[] data,
                  ISBounds isb,
                  RecordDescriptor recordDesc)
Deprecated. 
Construct a datablock with the given data and ISBounds. The default axis axisOrdering is used, and the bounds will be moved to the origin.


DatumBlock

public DatumBlock(ISBounds isb,
                  RecordDescriptor recordDesc)
Deprecated. 
Construct a datablock with the given bounds and number of attributes. The data array for the block will be created and filled with null datums.

Method Detail

subblock

public DataBlock subblock(ISBounds db)
Deprecated. 
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)
Deprecated. 
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)
Deprecated. 
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)
Deprecated. 
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

datum

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

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

datum

public void datum(Datum datum,
                  IndexSpaceID id)
Deprecated. 
Given an array of coordinates, load the corresponding datum into the datum argument.

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

datum

public void datum(Datum datum,
                  int[] coords)
Deprecated. 
Given an array of coordinates, load the corresponding datum into the datum argument.

Overrides:
datum in class DataCollection

datum

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

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

datum

public void datum(Datum dtm,
                  IndexSpaceID did,
                  FieldIDMapper mp)
Deprecated. 
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)
Deprecated. 
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

setDatum

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

Specified by:
setDatum in class DataBlock

data

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


getValues

public Values getValues()
Deprecated. 
Description copied from class: DataBlock
Returns a Values array which encapsulates a 1D array of the data values in the block with one entry for every point in the block. The type of the Values object is determined by the underlying storage type(s) needed. This default implementation returns the Values in the order and type defined by the block. This implementation is expected to be overridden by the child classes for efficiency.

Overrides:
getValues in class DataBlock