| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.unh.sdb.datasource.DataCollection
edu.unh.sdb.datasource.DataBlock
public abstract class DataBlock
An abstract parent class for datablocks--used to transport blocks of data around the system
| Field Summary | 
|---|
| Fields inherited from class edu.unh.sdb.datasource.DataCollection | 
|---|
attributeOrder, axisOrdering, axisWeights, bounds, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc | 
| Constructor Summary | |
|---|---|
protected  | 
DataBlock()
Empty Constructor  | 
  | 
DataBlock(DataBlock b)
Construct a DataBlock from the given DataBlock.  | 
  | 
DataBlock(ISBounds isb,
          AxisOrdering ordering,
          RecordDescriptor recordDesc)
Deprecated. Use DataBlock( ISBounds, RecordDescriptor, AxisOrdering )  | 
  | 
DataBlock(ISBounds isb,
          RecordDescriptor recordDesc)
Construct a datablock with the given bounds and number of attributes.  | 
  | 
DataBlock(ISBounds isb,
          RecordDescriptor recordDesc,
          AxisOrdering ordering)
Construct a datablock with the given bounds, axis axisOrdering and RecordDescriptor.  | 
| Method Summary | |
|---|---|
 Values | 
getValues()
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.  | 
protected  void | 
setByAttribute(Values vals)
 | 
 void | 
setByte(IndexSpaceID isid,
        int attr,
        byte v)
For the position of the 1st argument, set the attribute specified by the 2nd argument to the value of the 3rd argument.  | 
 void | 
setBytes(IndexSpaceID isid,
         byte[] newVals)
Set all attributes of the Datum at the specified isid to the values in passed array.  | 
 void | 
setBytes(int attr,
         byte[] newVals)
Set the specified attribute of the Datum at all points to the values in passed attribute array.  | 
 void | 
setBytesByAttribute(byte[] newVals)
Set all the attributes of all points in the block.  | 
 void | 
setBytesByPoint(byte[] newVals)
Set all the attributes of all points in the block.  | 
abstract  void | 
setDatum(IndexSpaceID isid,
         Datum d)
Set the location specified by the IndexSpaceID to the given datum.  | 
 void | 
setDouble(IndexSpaceID isid,
          int attr,
          double v)
For the position of the 1st argument, set the attribute specified by the 2nd argument to the value of the 3rd argument.  | 
 void | 
setDoubles(IndexSpaceID isid,
           double[] newVals)
Set all attributes of the Datum at the specified isid to the values in passed array.  | 
 void | 
setDoubles(int attr,
           double[] newVals)
Set the specified attribute of the Datum at all points to the values in passed attribute array.  | 
 void | 
setDoublesByAttribute(double[] newVals)
Set all the attributes of all points in the block.  | 
 void | 
setDoublesByPoint(double[] newVals)
Set all the attributes of all points in the block.  | 
 void | 
setFloat(IndexSpaceID isid,
         int attr,
         float v)
For the position of the 1st argument, set the attribute specified by the 2nd argument to the value of the 3rd argument.  | 
 void | 
setFloats(IndexSpaceID isid,
          float[] newVals)
Set all attributes of the Datum at the specified isid to the values in passed array.  | 
 void | 
setFloats(int attr,
          float[] newVals)
Set the specified attribute of the Datum at all points to the values in passed attribute array.  | 
 void | 
setFloatsByAttribute(float[] newVals)
Set all the attributes of all points in the block.  | 
 void | 
setFloatsByPoint(float[] newVals)
Set all the attributes of all points in the block.  | 
 void | 
setInt(IndexSpaceID isid,
       int attr,
       int v)
For the position of the 1st argument, set the attribute specified by the 2nd argument to the value of the 3rd argument.  | 
 void | 
setInts(IndexSpaceID isid,
        int[] newVals)
Set all attributes of the Datum at the specified isid to the values in passed array.  | 
 void | 
setInts(int attr,
        int[] newVals)
Set the specified attribute of the Datum at all points to the values in passed attribute array.  | 
 void | 
setIntsByAttribute(int[] newVals)
Set all the attributes of all points in the block.  | 
 void | 
setIntsByPoint(int[] newVals)
Set all the attributes of all points in the block.  | 
 void | 
setShort(IndexSpaceID isid,
         int attr,
         short v)
For the position of the 1st argument, set the attribute specified by the 2nd argument to the value of the 3rd argument.  | 
 void | 
setShorts(IndexSpaceID isid,
          short[] newVals)
Set all attributes of the Datum at the specified isid to the values in passed array.  | 
 void | 
setShorts(int attr,
          short[] newVals)
Set the specified attribute of the Datum at all points to the values in passed attribute array.  | 
 void | 
setShortsByAttribute(short[] newVals)
Set all the attributes of all points in the block.  | 
 void | 
setShortsByPoint(short[] newVals)
Set all the attributes of all points in the block.  | 
 void | 
setValues(int attr,
          Values newVals)
Set the specified attribute of the Datum at all points to the values in passed Values object.  | 
protected  boolean | 
setValues(Values vals)
Set all the attributes of all points in the block.  | 
 void | 
setValuesByAttribute(Values vals)
Set all the attributes of all points in the block.  | 
 void | 
setValuesByPoint(Values vals)
Set all the attributes of all points in the block.  | 
 java.lang.String | 
toString()
Write the values of the entire DataBlock index space to a string in a nice format.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
protected DataBlock()
public DataBlock(ISBounds isb,
                 AxisOrdering ordering,
                 RecordDescriptor recordDesc)
public DataBlock(ISBounds isb,
                 RecordDescriptor recordDesc,
                 AxisOrdering ordering)
public DataBlock(ISBounds isb,
                 RecordDescriptor recordDesc)
public DataBlock(DataBlock b)
| Method Detail | 
|---|
public Values getValues()
getValues in class DataCollection
public abstract void setDatum(IndexSpaceID isid,
                              Datum d)
public void setDouble(IndexSpaceID isid,
                      int attr,
                      double v)
public void setFloat(IndexSpaceID isid,
                     int attr,
                     float v)
public void setInt(IndexSpaceID isid,
                   int attr,
                   int v)
public void setShort(IndexSpaceID isid,
                     int attr,
                     short v)
public void setByte(IndexSpaceID isid,
                    int attr,
                    byte v)
public void setDoubles(IndexSpaceID isid,
                       double[] newVals)
public void setFloats(IndexSpaceID isid,
                      float[] newVals)
public void setInts(IndexSpaceID isid,
                    int[] newVals)
public void setShorts(IndexSpaceID isid,
                      short[] newVals)
public void setBytes(IndexSpaceID isid,
                     byte[] newVals)
public void setDoubles(int attr,
                       double[] newVals)
public void setFloats(int attr,
                      float[] newVals)
public void setInts(int attr,
                    int[] newVals)
public void setShorts(int attr,
                      short[] newVals)
public void setBytes(int attr,
                     byte[] newVals)
public void setValues(int attr,
                      Values newVals)
public void setValuesByPoint(Values vals)
public void setValuesByAttribute(Values vals)
protected void setByAttribute(Values vals)
public void setDoublesByPoint(double[] newVals)
public void setDoublesByAttribute(double[] newVals)
public void setFloatsByPoint(float[] newVals)
public void setFloatsByAttribute(float[] newVals)
public void setIntsByPoint(int[] newVals)
public void setIntsByAttribute(int[] newVals)
public void setShortsByPoint(short[] newVals)
public void setShortsByAttribute(short[] newVals)
public void setBytesByPoint(byte[] newVals)
public void setBytesByAttribute(byte[] newVals)
protected boolean setValues(Values vals)
public java.lang.String toString()
toString in class java.lang.Object
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||