|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.ornl.csed.csiir.idr.kdd.dataservice.server.models.ResultSetResponse.ListSet
public static class ResultSetResponse.ListSet
The ListSet class represents a list of lists and allows them to be iterated as a matrix of rows and columns. Each inner list is treated as a column and a row contains the value from each column with the same index. If the supplied column lists are different lengths, all missing values are returned as null.
Nested Class Summary | |
---|---|
static class |
ResultSetResponse.ListSet.ListSetCell
|
static class |
ResultSetResponse.ListSet.ListSetRow
The ListSetRow class represents a row in the ListSet and allows iteration over the cell values in the row. |
Method Summary | |
---|---|
int |
columnSize()
Retrieves the number of columns. |
java.util.Date |
getDate(int rowIndex,
int columnIndex)
Retrieves the Java Date representation of the cell value at the given row index and column index. |
java.lang.Double |
getDouble(int rowIndex,
int columnIndex)
Retrieves the Java Double representation of the cell value at the given row index and column index. |
java.lang.Float |
getFloat(int rowIndex,
int columnIndex)
Retrieves the Java Float representation of the cell value at the given row index and column index. |
java.lang.Integer |
getInteger(int rowIndex,
int columnIndex)
Retrieves the Java Integer representation of the cell value at the given row index and column index. |
java.lang.Long |
getLong(int rowIndex,
int columnIndex)
Retrieves the Java Long representation of the cell value at the given row index and column index. |
java.lang.Object |
getObject(int rowIndex,
int columnIndex)
Retrieves the Java Object representation of the value at the given row index and column index. |
java.lang.String |
getString(int rowIndex,
int columnIndex)
Retrieves the Java String representation of the cell value at the given row index and column index. |
java.util.Iterator<ResultSetResponse.ListSet.ListSetRow> |
iterator()
Retrieve an iterator over the rows. |
int |
rowSize()
Retrieves the number of rows. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int columnSize()
public int rowSize()
public java.lang.Object getObject(int rowIndex, int columnIndex) throws java.lang.IndexOutOfBoundsException
rowIndex
- the row indexcolumnIndex
- the column index
java.lang.IndexOutOfBoundsException
public java.lang.String getString(int rowIndex, int columnIndex) throws java.lang.IndexOutOfBoundsException
rowIndex
- the row indexcolumnIndex
- the column index
java.lang.IndexOutOfBoundsException
public java.lang.Integer getInteger(int rowIndex, int columnIndex) throws java.lang.IndexOutOfBoundsException, java.lang.NumberFormatException
rowIndex
- the row indexcolumnIndex
- the column index
java.lang.IndexOutOfBoundsException
java.lang.NumberFormatException
public java.lang.Long getLong(int rowIndex, int columnIndex) throws java.lang.IndexOutOfBoundsException, java.lang.NumberFormatException
rowIndex
- the row indexcolumnIndex
- the column index
java.lang.IndexOutOfBoundsException
java.lang.NumberFormatException
public java.lang.Float getFloat(int rowIndex, int columnIndex) throws java.lang.IndexOutOfBoundsException, java.lang.NumberFormatException
rowIndex
- the row indexcolumnIndex
- the column index
java.lang.IndexOutOfBoundsException
java.lang.NumberFormatException
public java.lang.Double getDouble(int rowIndex, int columnIndex) throws java.lang.IndexOutOfBoundsException, java.lang.NumberFormatException
rowIndex
- the row indexcolumnIndex
- the column index
java.lang.IndexOutOfBoundsException
java.lang.NumberFormatException
public java.util.Date getDate(int rowIndex, int columnIndex) throws java.lang.IndexOutOfBoundsException, java.text.ParseException
rowIndex
- the row indexcolumnIndex
- the column index
java.lang.IndexOutOfBoundsException
java.text.ParseException
public java.util.Iterator<ResultSetResponse.ListSet.ListSetRow> iterator()
iterator
in interface java.lang.Iterable<ListSetRow>
Iterable.iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |