public abstract class DataBlock extends DataCollection
attributeOrder, axisOrdering, axisWeights, bounds, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc
Modifier | Constructor and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
byteSize, computeOffset, computeOffset, copyBounds, createDataBlock, createDataBlock, createDataBlock, createDatum, createDatum, createDatum, createDatum, createDatum, createDatum, datum, datum, datum, datum, datum, datum, datum, dim, getAttributeNames, 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, getUpperBoundsArray, getValues, getValuesByAttribute, getValuesByPoint, longVolume, setAxisOrdering, setBounds, setRecordDescriptor, size, subblock, subblock, subblock, subblock, subblock, subblock, subblock, subblock, subblock, subblock, subblock, subblock, useBytesOnly, volume
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)
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