public class ParamReader
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static ParamReader |
createReader(HapiParam param)
Returns a ParamReader instance for a given HAPI parameter.
|
int |
getByteCount()
Returns the number of bytes in a HAPI binary stream read by this reader.
|
int |
getColumnCount()
Returns the number of StarTable columns read by this reader.
|
ColumnInfo |
getColumnInfo(int icol)
Returns the column metadata for one of the StarTable columns
read by this reader.
|
int |
getFieldCount()
Returns the number of HAPI table fields read by this reader.
|
void |
readBinaryValues(byte[] buf,
int istart,
java.lang.Object[] result)
Converts from HAPI binary stream bytes to StarTable cell values.
|
void |
readStringValues(java.lang.String[] cells,
int istart,
java.lang.Object[] result)
Converts from HAPI CSV text cell values to StarTable cell values.
|
public int getColumnCount()
public ColumnInfo getColumnInfo(int icol)
icol - column index, in range 0..getColumnCount()public int getFieldCount()
public int getByteCount()
public void readStringValues(java.lang.String[] cells,
int istart,
java.lang.Object[] result)
cells - array of CSV field valuesistart - index of first CSV field of interest in cellsresult - columnCount-element array into which output values
will be writtenpublic void readBinaryValues(byte[] buf,
int istart,
java.lang.Object[] result)
buf - buffer containing HAPI binary stream dataistart - index of first byte of interest in bufferresult - columnCount-element array into which output values
will be writtenpublic static ParamReader createReader(HapiParam param)
param - HAPI parameter