|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.unh.sdb.common.Values
public abstract class Values
Constructor Summary | |
---|---|
Values()
|
Method Summary | |
---|---|
abstract byte |
getByte(int index)
|
abstract byte[] |
getBytes()
Return a byte array representing all elements in the Values object |
byte[] |
getBytes(byte[] filler)
Fill byte array representing all elements in the Values object If the passed array is not the right size, a a correct size array is allocated and returned. |
byte[] |
getBytes(int start,
int stride)
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 we get to the end of the array. |
byte[] |
getBytes(int start,
int stride,
byte[] fill)
Reference version of getBytes( start, stride ) The passed array is returned for convenience, but if it is not the right size, a new array is allocated and returned. |
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[] |
getBytes(int start,
int stride,
int num,
byte[] fill)
Reference version of getBytes( start, stride, num ) The passed array is returned for convenience, but if it is not the right size, a new array is allocated and returned. |
abstract double |
getDouble(int index)
|
abstract double[] |
getDoubles()
Return double array representing all elements in the Values object |
double[] |
getDoubles(double[] filler)
Fill double array representing all elements in the Values object If the passed array is not the right size, a a correct size array is allocated and returned. |
double[] |
getDoubles(int start,
int stride)
Return double 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 we get to the end of the array. |
double[] |
getDoubles(int start,
int stride,
double[] fill)
Reference version of getDoubles( start, stride ) The passed array is returned for convenience, but if it is not the right size, a new array is allocated and returned. |
double[] |
getDoubles(int start,
int stride,
int num)
Return double 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). |
double[] |
getDoubles(int start,
int stride,
int num,
double[] fill)
Reference version of getDoubles( start, stride, num ) The passed array is returned for convenience, but if it is not the right size, a new array is allocated and returned. |
abstract float |
getFloat(int index)
|
abstract float[] |
getFloats()
Return float array representing all elements in the Values object |
float[] |
getFloats(float[] filler)
Fill float array representing all elements in the Values object If the passed array is not the right size, a a correct size array is allocated and returned. |
float[] |
getFloats(int start,
int stride)
Return float 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 we get to the end of the array. |
float[] |
getFloats(int start,
int stride,
float[] fill)
Reference version of getFloats( start, stride ) The passed array is returned for convenience, but if it is not the right size, a new array is allocated and returned. |
float[] |
getFloats(int start,
int stride,
int num)
Return floats 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). |
float[] |
getFloats(int start,
int stride,
int num,
float[] fill)
Reference version of getFloats( start, stride, num ) The passed array is returned for convenience, but if it is not the right size, a new array is allocated and returned. |
abstract int |
getInt(int index)
|
abstract int[] |
getInts()
Return int array representing all elements in the Values object |
int[] |
getInts(int[] filler)
Fill int array representing all elements in the Values object If the passed array is not the right size, a a correct size array is allocated and returned. |
int[] |
getInts(int start,
int stride)
Return int 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 we get to the end of the array. |
int[] |
getInts(int start,
int stride,
int num)
Return int 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). |
int[] |
getInts(int start,
int stride,
int[] fill)
Reference version of getInts( start, stride ) The passed array is returned for convenience, but if it is not the right size, a new array is allocated and returned. |
int[] |
getInts(int start,
int stride,
int num,
int[] fill)
Reference version of getInts( start, stride, num ) The passed array is returned for convenience, but if it is not the right size, a new array is allocated and returned. |
abstract short |
getShort(int index)
|
abstract short[] |
getShorts()
Return a short array representing all elements in the Values object |
short[] |
getShorts(int start,
int stride)
Return short 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 we get to the end of the array. |
short[] |
getShorts(int start,
int num,
int stride)
Return short 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). |
short[] |
getShorts(int start,
int stride,
int num,
short[] fill)
Reference version of getShorts( start, stride, num ) The passed array is returned for convenience, but if it is not the right size, a new array is allocated and returned. |
short[] |
getShorts(int start,
int stride,
short[] fill)
Reference version of getShorts( start, stride ) The passed array is returned for convenience, but if it is not the right size, a new array is allocated and returned. |
short[] |
getShorts(short[] filler)
Fill short array representing all elements in the Values object If the passed array is not the right size, an warning is issued and a correct size array is allocated and returned. |
abstract int |
getStorageType()
|
static void |
main(java.lang.String[] args)
|
abstract Values |
reorder(int step)
Return a new Values object with the values shuffled. |
abstract void |
setByte(int index,
byte val)
|
abstract void |
setDouble(int index,
double val)
|
abstract void |
setFloat(int index,
float val)
|
abstract void |
setInt(int index,
int val)
|
abstract void |
setShort(int index,
short val)
|
abstract void |
setValues(int start,
Values newVal)
Assign elements of the passed in Values object to this one beginning at the start index . |
abstract void |
setValues(Values newVal)
Assign the data from the argument Values object to this object. |
abstract int |
size()
|
abstract Values |
spawn()
create a new copy of this Values class, but NO data is copied |
Values |
spawn(int start,
int stride)
Create a new instance of ShortValues with a subsest of the data in this object. |
abstract Values |
spawn(int start,
int stride,
int count)
create a new instance of this Values class; copy a subset of the data to new. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Values()
Method Detail |
---|
public abstract double getDouble(int index)
public abstract float getFloat(int index)
public abstract int getInt(int index)
public abstract short getShort(int index)
public abstract byte getByte(int index)
public abstract void setDouble(int index, double val)
public abstract void setFloat(int index, float val)
public abstract void setInt(int index, int val)
public abstract void setShort(int index, short val)
public abstract void setByte(int index, byte val)
public abstract int size()
public abstract int getStorageType()
public abstract Values spawn()
public abstract Values spawn(int start, int stride, int count)
public Values spawn(int start, int stride)
start
- - first value to copystride
- - steps between valuespublic abstract Values reorder(int step)
public abstract void setValues(Values newVal)
public abstract void setValues(int start, Values newVal)
public abstract double[] getDoubles()
public abstract float[] getFloats()
public abstract int[] getInts()
public abstract short[] getShorts()
public abstract byte[] getBytes()
public double[] getDoubles(double[] filler)
public float[] getFloats(float[] filler)
public int[] getInts(int[] filler)
public short[] getShorts(short[] filler)
public byte[] getBytes(byte[] filler)
public double[] getDoubles(int start, int stride)
public double[] getDoubles(int start, int stride, double[] fill)
public float[] getFloats(int start, int stride)
public float[] getFloats(int start, int stride, float[] fill)
public int[] getInts(int start, int stride)
public int[] getInts(int start, int stride, int[] fill)
public short[] getShorts(int start, int stride)
public short[] getShorts(int start, int stride, short[] fill)
public byte[] getBytes(int start, int stride)
public byte[] getBytes(int start, int stride, byte[] fill)
public double[] getDoubles(int start, int stride, int num)
public float[] getFloats(int start, int stride, int num)
public int[] getInts(int start, int stride, int num)
public short[] getShorts(int start, int num, int stride)
public byte[] getBytes(int start, int stride, int num)
public double[] getDoubles(int start, int stride, int num, double[] fill)
public float[] getFloats(int start, int stride, int num, float[] fill)
public int[] getInts(int start, int stride, int num, int[] fill)
public short[] getShorts(int start, int stride, int num, short[] fill)
public byte[] getBytes(int start, int stride, int num, byte[] fill)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |