edu.unh.sdb.datasource
Class ARBlock

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

public class ARBlock
extends DataBlock


Field Summary
 
Fields inherited from class edu.unh.sdb.datasource.DataCollection
attributeOrder, axisOrdering, axisWeights, bounds, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc
 
Constructor Summary
ARBlock(ComponentInfo[] cinfo)
          Construct a AR datablock with the given ComponentInfo array.
 
Method Summary
 void datum(Datum dtm, IndexSpaceID isid)
          Return by reference the Datum corresponding to the given IndexSpaceID.
 void datum(Datum dtm, IndexSpaceID isid, 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 isid, RecordSpec recSpec)
          Get the Datum and fill its values in the passed Datum at positions specified by the corresponding RecordSpec.
 void fill()
          Fill in this ARBlock with actual data
 void init()
          reset the interating position
static void main(java.lang.String[] args)
           
 ComponentInfo next()
          Retrieve the next component block from this ARBlock
 void setDatum(IndexSpaceID isid, Datum d)
          Set the location specified by the IndexSpaceID to the given datum.
 int size()
          Return the number of elements in the datablock.
 void subblock(DataBlock blk, ISBounds blkisb, ISBounds dsisb)
          Get a block of data of the DataSource, pass by reference.
 void subblock(DataBlock blk, ISBounds blkisb, ISBounds dsisb, FieldIDMapper mp)
          Pass by reference subblock method taking FieldIDMapper
 void subblock(DataBlock blk, ISBounds blkisb, ISBounds dsisb, RecordSpec spec)
          Get a block of data of the DataSource.
 
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, 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, subblock, useBytesOnly, volume
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ARBlock

public ARBlock(ComponentInfo[] cinfo)
Construct a AR datablock with the given ComponentInfo array. The ComponentInfo array gives the information that describe the sub-blocks's coverage and resolution.

Method Detail

size

public int size()
Return the number of elements in the datablock.

Overrides:
size in class DataCollection

datum

public void datum(Datum dtm,
                  IndexSpaceID isid)
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 isid,
                  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 isid,
                  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

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 void subblock(DataBlock blk,
                     ISBounds blkisb,
                     ISBounds dsisb,
                     RecordSpec spec)
Get a block of data of the DataSource. The DataBlock is passed by reference

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

subblock

public void subblock(DataBlock blk,
                     ISBounds blkisb,
                     ISBounds dsisb)
Get a block of data of the DataSource, pass by reference.

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

subblock

public void subblock(DataBlock blk,
                     ISBounds blkisb,
                     ISBounds dsisb,
                     FieldIDMapper mp)
Pass by reference subblock method taking FieldIDMapper

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

fill

public void fill()
Fill in this ARBlock with actual data


next

public ComponentInfo next()
Retrieve the next component block from this ARBlock


init

public void init()
reset the interating position


main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException