edu.unh.sdb.datasource
Class VRDataBlock

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

public class VRDataBlock
extends DataBlock


Field Summary
protected  VRIndexable vrIndexable
           
 
Fields inherited from class edu.unh.sdb.datasource.DataCollection
attributeOrder, axisOrdering, axisWeights, bounds, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc
 
Constructor Summary
VRDataBlock(DataBlock theBlock)
           
 
Method Summary
 void datum(Datum dtm, IndexSpaceID did)
          Return by reference the Datum correspoinding to the given ndexSpaceID.
 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.
 void datum(Datum dtm, int[] coordArray)
          Given an array of coordinates, copy the correspoinding datum int the first parameter
 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.
 boolean decr()
          Decrease Resolution Level by 1
 DataBlock getDataSource()
           
 boolean incr()
          Increase Resolution Level by 1
 void setDatum(IndexSpaceID id, Datum d)
          Set the location specified by the IndexSpaceID to the given datum
 int size()
          Return the number of datums .
 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 bounds)
          Return a new DataBlock that is a subset of this DataCollection.
 DataBlock subblock(ISBounds isb, RecordSpec rs)
          Returns a DataBlock that is an attribute projection of a spatial subset of the DataSource.Override parent method for inefficiency.
 DataBlock subblock(RecordSpec rs, ISBounds isb)
          Deprecated.  
 
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
 

Field Detail

vrIndexable

protected VRIndexable vrIndexable
Constructor Detail

VRDataBlock

public VRDataBlock(DataBlock theBlock)
Method Detail

datum

public void datum(Datum dtm,
                  int[] coordArray)
Given an array of coordinates, copy the correspoinding datum int the first parameter

Overrides:
datum in class DataCollection

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)
Return by reference the Datum correspoinding to the given ndexSpaceID.

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

setDatum

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

Specified by:
setDatum in class DataBlock

subblock

public DataBlock subblock(ISBounds bounds)
Description copied from class: DataCollection
Return a new DataBlock that is a subset of this DataCollection. The data may be shared.

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

subblock

public DataBlock subblock(RecordSpec rs,
                          ISBounds isb)
Deprecated. 

Returns a DataBlock that is an attribute projection of a spatial subset of the DataSource.Override parent method for inefficiency.


subblock

public DataBlock subblock(ISBounds isb,
                          RecordSpec rs)
Returns a DataBlock that is an attribute projection of a spatial subset of the DataSource.Override parent method for inefficiency.

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 the datasource and datums in the 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 DataBlock attributes to be written into the DataBlock datums.

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

size

public int size()
Description copied from class: DataCollection
Return the number of datums .

Overrides:
size in class DataCollection

incr

public boolean incr()
Increase Resolution Level by 1


decr

public boolean decr()
Decrease Resolution Level by 1


getDataSource

public DataBlock getDataSource()