| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.unh.sdb.common.Values
edu.unh.sdb.common.ByteValues
public class ByteValues
ByteValues is Values that store bytes in a 1-D byte array
| Constructor Summary | |
|---|---|
ByteValues()
construct a ByteValues with no data  | 
|
ByteValues(byte[] byteArray)
construct a ByteValues for a given byte array  | 
|
ByteValues(int size)
construct a ByteValues, given the size of the byteArray  | 
|
| Method Summary | |
|---|---|
 byte[] | 
byteValues()
Deprecated. Use getDataReference()  | 
 byte | 
getByte(int index)
return the byte value at of the item at the given index of the byte array  | 
 byte[] | 
getBytes()
return a reference to the byte array this object is representing  | 
 byte[] | 
getBytes(byte[] filler)
fill the passed array with this data  | 
 byte[] | 
getBytes(int start,
         int stride,
         int num)
Return byte array representing a subset of elements in the Values object Copying starts at the index specified by the start argument, the 2nd item copied will be at index start + stride where stride is the second argument; the 3rd is at start + 2*stride and so forth until the specified number of values have been copied (3rd argument).  | 
 byte[] | 
getDataReference()
Return a reference to the data array this object contains.  | 
 double | 
getDouble(int index)
return the double value represent the byte value of the given index  | 
 double[] | 
getDoubles()
Return double array representing all elements in the Values object  | 
 double[] | 
getDoubles(double[] filler)
fill the passed array with this data  | 
 float | 
getFloat(int index)
return the float value representing the byte value of the given index  | 
 float[] | 
getFloats()
Return float array representing all elements in the Values object  | 
 float[] | 
getFloats(float[] filler)
fill the passed array with this data  | 
 int | 
getInt(int index)
return the int value represent the byte value of the given index  | 
 int[] | 
getInts()
Return int array representing all elements in the Values object  | 
 int[] | 
getInts(int[] filler)
fill the passed array with this data  | 
 short | 
getShort(int index)
return the short value represent the byte value of the given index  | 
 short[] | 
getShorts()
Return a short array representing all elements in the Values object  | 
 short[] | 
getShorts(short[] filler)
fill the passed array with this data  | 
 int | 
getStorageType()
get StorageType  | 
 Values | 
reorder(int step)
Return a new Values object with the values shuffled.  | 
 void | 
setByte(int index,
        byte val)
Set the specified entry to the specified value after conversion, if needed.  | 
 void | 
setData(int index,
        byte byteData)
set the data at given index  | 
 void | 
setDouble(int index,
          double val)
Set the specified entry to the specified value after conversion, if needed.  | 
 void | 
setFloat(int index,
         float val)
Set the specified entry to the specified value after conversion, if needed.  | 
 void | 
setInt(int index,
       int val)
Set the specified entry to the specified value after conversion, if needed.  | 
 void | 
setShort(int index,
         short val)
Set the specified entry to the specified value after conversion, if needed.  | 
 void | 
setValues(int start,
          Values newVals)
Assign elements of the passed in Values object to this one beginning at the start index .  | 
 void | 
setValues(Values newVals)
Assign the data from the argument Values object to this object.  | 
 int | 
size()
return the size of the 1 D array, in which the data is stored ( number of bytes)  | 
 Values | 
spawn()
create a copy of this object  | 
 Values | 
spawn(int start,
      int stride,
      int count)
Create a new instance of ByteValues with a subsest of the data in this object.  | 
| Methods inherited from class edu.unh.sdb.common.Values | 
|---|
getBytes, getBytes, getBytes, getDoubles, getDoubles, getDoubles, getDoubles, getFloats, getFloats, getFloats, getFloats, getInts, getInts, getInts, getInts, getShorts, getShorts, getShorts, getShorts, main, spawn | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ByteValues()
public ByteValues(byte[] byteArray)
public ByteValues(int size)
| Method Detail | 
|---|
public Values spawn()
spawn in class Values
public Values spawn(int start,
                    int stride,
                    int count)
spawn in class Valuesstart - - first value to copystride - - steps between valuescount - - number of values to copy
public final void setData(int index,
                          byte byteData)
public int getStorageType()
getStorageType in class Valuespublic int size()
size in class Valuespublic Values reorder(int step)
reorder in class Values
public void setDouble(int index,
                      double val)
setDouble in class Values
public void setFloat(int index,
                     float val)
setFloat in class Values
public void setInt(int index,
                   int val)
setInt in class Values
public void setShort(int index,
                     short val)
setShort in class Values
public void setByte(int index,
                    byte val)
setByte in class Valuespublic void setValues(Values newVals)
setValues in class Values
public void setValues(int start,
                      Values newVals)
setValues in class Valuespublic double[] getDoubles()
getDoubles in class Valuespublic float[] getFloats()
getFloats in class Valuespublic int[] getInts()
getInts in class Valuespublic short[] getShorts()
getShorts in class Valuespublic byte[] getBytes()
getBytes in class Valuespublic double[] getDoubles(double[] filler)
getDoubles in class Valuespublic float[] getFloats(float[] filler)
getFloats in class Valuespublic int[] getInts(int[] filler)
getInts in class Valuespublic short[] getShorts(short[] filler)
getShorts in class Valuespublic byte[] getBytes(byte[] filler)
getBytes in class Valuespublic float getFloat(int index)
getFloat in class Valuespublic double getDouble(int index)
getDouble in class Valuespublic int getInt(int index)
getInt in class Valuespublic short getShort(int index)
getShort in class Valuespublic byte getByte(int index)
getByte in class Valuespublic byte[] byteValues()
public byte[] getDataReference()
public byte[] getBytes(int start,
                       int stride,
                       int num)
getBytes in class Values
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||