|
|||||||||
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
edu.unh.sdb.datasource.CompositeBlock
public class CompositeBlock
Field Summary |
---|
Fields inherited from class edu.unh.sdb.datasource.DataCollection |
---|
attributeOrder, axisOrdering, axisWeights, bounds, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc |
Constructor Summary | |
---|---|
CompositeBlock(ISBounds isb,
RecordDescriptor recordDesc)
Construct a datablock with the given bounds and RecordDescriptor. |
|
CompositeBlock(ISBounds isb,
RecordDescriptor recordDesc,
boolean attrOrder)
Construct a datablock with the given bounds and RecordDescriptor. |
|
CompositeBlock(ISBounds isb,
RecordDescriptor recordDesc,
FieldIDMapper fm)
Construct a datablock with the given bounds and RecordDescriptor. |
|
CompositeBlock(ISBounds isb,
RecordDescriptor recordDesc,
RecordSpec rs)
Construct a datablock with the given bounds and RecordDescriptor. |
Method Summary | |
---|---|
void |
datum(Datum datum,
IndexSpaceID did)
Given IndexSpaceID, load the corresponding datum into the datum argument. |
void |
datum(Datum dtm,
IndexSpaceID did,
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 did,
RecordSpec recSpec)
Get the Datum and fill its values in the passed Datum at positions specified by the corresponding RecordSpec. |
void |
datum(Datum datum,
int[] coords)
Given an array of coordinates, load the corresponding datum into the datum argument. |
Datum |
datum(IndexSpaceID did)
Given an IndexSpaceID, return the corresponding datum. |
Datum |
datum(IndexSpaceID did,
RecordSpec spec)
Given an IndexSpaceID, return the corresponding datum with attributes specified in the RecordSpec. |
BasicBlock |
getBasicBlock(int bbID)
given a BasicBlock ID, return a reference to the corresponding basicBlock |
byte |
getByte(IndexSpaceID did,
int fieldNumber)
get the field value at the ISID position as a byte. |
byte |
getByteAttribute(IndexSpaceID did,
int fieldNumber)
get the byte attribute for a given IndexSpaceID and attributeID |
double |
getDouble(IndexSpaceID did,
int fieldNumber)
get the field value at the ISID position as a double. |
double |
getDoubleAttribute(IndexSpaceID did,
int fieldNumber)
get the double attribute for a given IndexSpaceID and attributeID |
void |
getDoubleAttributes(double[] dstArray,
RecordSpec recordSpec,
boolean pointOrder)
User passes in a pre-allocated double array, attributes specified by recordSpec are copied from this compositeBlock to the dstArray. |
float |
getFloat(IndexSpaceID did,
int fieldNumber)
get the field value at the ISID position as a float. |
float |
getFloatAttribute(IndexSpaceID did,
int fieldNumber)
get the float attribute for a given IndexSpaceID and attributeID |
void |
getFloatAttributes(float[] dstArray,
RecordSpec recordSpec,
boolean pointOrder)
User passes in a pre-allocated float array, attributes specified by recordSpec are copied from this CompositeBlock to the dstArray. |
double |
getIndexedDoubleAttribute(int OneDIndex,
int fieldNumber)
get indexedFieldShort , OneDIndex is the conceptual index of the datum in the one D array |
float |
getIndexedFloatAttribute(int OneDIndex,
int fieldNumber)
get indexed float attribute , OneDIndex is the conceptual index of the datum in the one D array |
int |
getIndexedIntAttribute(int OneDIndex,
int fieldNumber)
get indexed int attribue, OneDIndex is the conceptual index of the datum in the one D array |
short |
getIndexedShortAttribute(int OneDIndex,
int fieldNumber)
get indexed Short attribute, OneDIndex is the conceptual index of the datum in the one D array |
int |
getInt(IndexSpaceID did,
int fieldNumber)
get the field value at the ISID position as an int. |
int |
getIntAttribute(IndexSpaceID did,
int fieldNumber)
get the int attribute for a given IndexSpaceID and attributeID |
void |
getIntAttributes(int[] dstArray,
RecordSpec recordSpec,
boolean pointOrder)
User passes in a pre-allocated int array, attributes specified by recordSpec are copied from this Compositeblock to the dstArray. |
int |
getNumBasicBlock()
return number of basicBlocks contained in this Compositeblock |
short |
getShort(IndexSpaceID did,
int fieldNumber)
get the field value at the ISID position as a short. |
short |
getShortAttribute(IndexSpaceID did,
int fieldNumber)
get the short attribute for a given IndexSpaceID and attributeID |
void |
getShortAttributes(short[] dstArray,
RecordSpec recordSpec,
boolean pointOrder)
User passes in a pre-allocated short array, attributes specified by recordSpec are copied from the BasicBlock to the dstArray. |
Values |
getValues(int attr)
return a Values array consisting of the data for the specified attribute. |
edu.unh.sdb.datasource.CompositeBlock.FieldInfo |
locateAttribute(int fieldID)
given a fieldID (fieldID of this compositeBlock, return a array with length of two, first element of the array represents the basicBlock number, and second element represents the corresponding fieldID in the basicBlock. |
protected void |
setAttributeOrderRod(java.nio.ByteBuffer rod,
int rodSize,
int iniDataArrayOffset,
int dataArrayStep,
int attributeID,
int attributeByteSize,
int storageType)
set a rod of data in the corresponding location of this datablock, assume the rod contains only one attribute, works for attributeOrder |
void |
setBytes(int attr,
byte[] newValues)
Assign attribute values for all points in the block |
void |
setDatum(IndexSpaceID isid,
Datum d)
Set the location specified by the IndexSpaceID to the given datum. |
void |
setDoubles(int attr,
double[] newValues)
Assign attribute values for all points in the block |
void |
setField(int index,
double doubleData,
int fieldID)
set double data of a given attribute at a given index ( index of the datum in the one D array ) |
void |
setField(int index,
float floatData,
int fieldID)
set float data of a given attribute at a given index ( index of the datum in the one D array ) |
void |
setField(int index,
int intData,
int fieldID)
set int data of a given attribute at a given index ( index of the datum in the one D array ) |
void |
setField(int index,
short shortData,
int fieldID)
set short data of a given attribute at a given index ( index of the datum in the one D array ) |
void |
setFloats(int attr,
float[] newValues)
Assign attribute values for all points in the block |
void |
setInts(int attr,
int[] newValues)
Assign attribute values for all points in the block |
protected void |
setrod(java.nio.ByteBuffer rod,
int rodSize,
int iniDataArrayOffset,
int dataArrayStep,
FieldIDMapper mp,
RecordDescriptor sourceRecordDesc)
set a rod of data in the corresponding location of this datablock |
protected void |
setrod(java.nio.ByteBuffer rod,
int rodSize,
int iniDataArrayOffset,
int dataArrayStep,
RecordDescriptor sourceRecordDesc)
set a rod of data in the corresponding location of this datablock |
protected void |
setrod(java.nio.ByteBuffer rod,
int rodSize,
int iniDataArrayOffset,
int dataArrayStep,
RecordSpec recSpec,
RecordDescriptor sourceRecordDesc)
set a rod of data in the corresponding location of this datablock |
void |
setShorts(int attr,
short[] newValues)
Assign attribute values for all points in the block |
void |
setValues(int attr,
Values newValues)
Assign attribute values for all points in the block |
void |
subblock(DataBlock dstBlock,
ISBounds dstBounds,
ISBounds srcBounds)
Reads a subblock defined by srcBounds into the region of the Datablock argument defined by dstBounds. |
void |
subblock(DataBlock dstBlock,
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 dstBlock,
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 db)
Return a new DataBlock( currently it returns a CompositeBlock) that is a subset of this datablock. |
DataBlock |
subblock(ISBounds srcBounds,
RecordSpec rs)
the returning DataBlock is a CompositeBlock |
Methods inherited from class edu.unh.sdb.datasource.DataBlock |
---|
getValues, setByAttribute, setByte, setBytes, setBytesByAttribute, setBytesByPoint, setDouble, setDoubles, setDoublesByAttribute, setDoublesByPoint, setFloat, setFloats, setFloatsByAttribute, setFloatsByPoint, setInt, setInts, setIntsByAttribute, setIntsByPoint, setShort, setShorts, setShortsByAttribute, setShortsByPoint, setValues, setValuesByAttribute, setValuesByPoint, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CompositeBlock(ISBounds isb, RecordDescriptor recordDesc)
public CompositeBlock(ISBounds isb, RecordDescriptor recordDesc, boolean attrOrder)
public CompositeBlock(ISBounds isb, RecordDescriptor recordDesc, RecordSpec rs)
public CompositeBlock(ISBounds isb, RecordDescriptor recordDesc, FieldIDMapper fm)
Method Detail |
---|
public edu.unh.sdb.datasource.CompositeBlock.FieldInfo locateAttribute(int fieldID)
public BasicBlock getBasicBlock(int bbID)
public int getNumBasicBlock()
protected void setrod(java.nio.ByteBuffer rod, int rodSize, int iniDataArrayOffset, int dataArrayStep, FieldIDMapper mp, RecordDescriptor sourceRecordDesc)
protected void setrod(java.nio.ByteBuffer rod, int rodSize, int iniDataArrayOffset, int dataArrayStep, RecordSpec recSpec, RecordDescriptor sourceRecordDesc)
protected void setrod(java.nio.ByteBuffer rod, int rodSize, int iniDataArrayOffset, int dataArrayStep, RecordDescriptor sourceRecordDesc)
protected void setAttributeOrderRod(java.nio.ByteBuffer rod, int rodSize, int iniDataArrayOffset, int dataArrayStep, int attributeID, int attributeByteSize, int storageType)
public final void setField(int index, float floatData, int fieldID)
public final void setField(int index, int intData, int fieldID)
public final void setField(int index, double doubleData, int fieldID)
public final void setField(int index, short shortData, int fieldID)
public Values getValues(int attr)
getValues
in class DataCollection
public double getDouble(IndexSpaceID did, int fieldNumber)
getDouble
in class DataCollection
public float getFloat(IndexSpaceID did, int fieldNumber)
getFloat
in class DataCollection
public int getInt(IndexSpaceID did, int fieldNumber)
getInt
in class DataCollection
public short getShort(IndexSpaceID did, int fieldNumber)
getShort
in class DataCollection
public byte getByte(IndexSpaceID did, int fieldNumber)
getByte
in class DataCollection
public final double getDoubleAttribute(IndexSpaceID did, int fieldNumber)
public final float getFloatAttribute(IndexSpaceID did, int fieldNumber)
public final int getIntAttribute(IndexSpaceID did, int fieldNumber)
public final short getShortAttribute(IndexSpaceID did, int fieldNumber)
public final byte getByteAttribute(IndexSpaceID did, int fieldNumber)
public float getIndexedFloatAttribute(int OneDIndex, int fieldNumber)
public short getIndexedShortAttribute(int OneDIndex, int fieldNumber)
public int getIndexedIntAttribute(int OneDIndex, int fieldNumber)
public double getIndexedDoubleAttribute(int OneDIndex, int fieldNumber)
public void getShortAttributes(short[] dstArray, RecordSpec recordSpec, boolean pointOrder)
public void getDoubleAttributes(double[] dstArray, RecordSpec recordSpec, boolean pointOrder)
public void getFloatAttributes(float[] dstArray, RecordSpec recordSpec, boolean pointOrder)
public void getIntAttributes(int[] dstArray, RecordSpec recordSpec, boolean pointOrder)
public Datum datum(IndexSpaceID did)
datum
in interface Indexable
datum
in class DataCollection
public void datum(Datum datum, IndexSpaceID did)
datum
in interface Indexable
datum
in class DataCollection
public void datum(Datum datum, int[] coords)
datum
in class DataCollection
public Datum datum(IndexSpaceID did, RecordSpec spec)
datum
in interface Indexable
datum
in class DataCollection
public void datum(Datum dtm, IndexSpaceID did, FieldIDMapper mp)
datum
in interface Indexable
datum
in class DataCollection
public void datum(Datum dtm, IndexSpaceID did, RecordSpec recSpec)
datum
in interface Indexable
datum
in class DataCollection
public void setDatum(IndexSpaceID isid, Datum d)
setDatum
in class DataBlock
public DataBlock subblock(ISBounds db)
subblock
in interface Indexable
subblock
in class DataCollection
public void subblock(DataBlock dstBlock, ISBounds dstBounds, ISBounds srcBounds)
subblock
in interface Indexable
subblock
in class DataCollection
public void subblock(DataBlock dstBlock, ISBounds dstBounds, ISBounds srcBounds, FieldIDMapper mp)
subblock
in interface Indexable
subblock
in class DataCollection
public DataBlock subblock(ISBounds srcBounds, RecordSpec rs)
subblock
in interface Indexable
subblock
in class DataCollection
public void subblock(DataBlock dstBlock, ISBounds dstBounds, ISBounds srcBounds, RecordSpec spec)
subblock
in interface Indexable
subblock
in class DataCollection
public void setDoubles(int attr, double[] newValues)
setDoubles
in class DataBlock
public void setFloats(int attr, float[] newValues)
setFloats
in class DataBlock
public void setInts(int attr, int[] newValues)
setInts
in class DataBlock
public void setShorts(int attr, short[] newValues)
setShorts
in class DataBlock
public void setBytes(int attr, byte[] newValues)
setBytes
in class DataBlock
public void setValues(int attr, Values newValues)
setValues
in class DataBlock
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |