public class Row extends DataAccessor
Class for easily accessing a row of a data source.
Example:
Row row = new Row(data, 2); Number value = row.get(3);
DataSource
,
Serialized FormConstructor and Description |
---|
Row(DataSource source,
int row)
Initializes a new instances with the specified data source and
row index.
|
Modifier and Type | Method and Description |
---|---|
Comparable<?> |
get(int col)
Returns the value of the data source for the specified index.
|
double |
getStatistics(String key)
Returns the specified statistical information for this data.
|
boolean |
isColumnNumeric(int columnIndex)
Returns whether the column at the specified index contains numbers.
|
int |
size()
Returns the number of elements in this column.
|
public Row(DataSource source, int row)
source
- Data source.row
- Row index.public Comparable<?> get(int col)
DataAccessor
get
in class DataAccessor
col
- Index.public int size()
DataAccessor
size
in class DataAccessor
public double getStatistics(String key)
DataAccessor
getStatistics
in class DataAccessor
key
- Requested Statistical information.public boolean isColumnNumeric(int columnIndex)
columnIndex
- Index of the column to test.true
if the column is numeric, otherwise false
.Copyright © 2009-2013. All Rights Reserved.