public class NonSerializingDataset extends java.lang.Object implements Dataset
| Constructor and Description |
|---|
NonSerializingDataset(Dataset delegate) |
NonSerializingDataset(java.util.List<java.lang.String> columnNames,
java.util.List<java.lang.Class<?>> columnTypes) |
| Modifier and Type | Method and Description |
|---|---|
int |
binarySearch(int column,
java.lang.Object key)
Performs a binary search on the specified column, looking for the specified key.
|
int |
getColumnCount()
Returns the number of columns.
|
int |
getColumnIndex(java.lang.String name)
Returns the index of the given column, case insensitive
|
java.lang.String |
getColumnName(int col)
Returns the name of the given column.
|
java.util.List<java.lang.String> |
getColumnNames()
Returns an unmodifiable list of this dataset's column names, in order.
|
java.lang.Class<?> |
getColumnType(int col)
Returns the type of the given column.
|
java.util.List<java.lang.Class<?>> |
getColumnTypes()
Returns an unmodifiable list of this dataset's column types, in order.
|
Dataset |
getDelegateDataset() |
double |
getPrimitiveValueAt(int row,
int col)
If the given column is a numeric type or a Date, then the value will be returned as a double.
|
QualityCode |
getQualityAt(int row,
int col)
Returns the quality of the value at the given location.
|
int |
getRowCount()
Return the number of rows in this dataset
|
java.lang.Object |
getValueAt(int row,
int col)
Returns the value in the dataset at the given location.
|
java.lang.Object |
getValueAt(int row,
java.lang.String colName)
Returns the value at the given row and at a column named colName.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetColumnAsListpublic NonSerializingDataset(java.util.List<java.lang.String> columnNames,
java.util.List<java.lang.Class<?>> columnTypes)
public NonSerializingDataset(Dataset delegate)
public Dataset getDelegateDataset()
public java.util.List<java.lang.String> getColumnNames()
DatasetgetColumnNames in interface Datasetpublic java.util.List<java.lang.Class<?>> getColumnTypes()
DatasetgetColumnTypes in interface Datasetpublic int getColumnCount()
DatasetgetColumnCount in interface Datasetpublic int getRowCount()
DatasetgetRowCount in interface Datasetpublic int getColumnIndex(java.lang.String name)
DatasetgetColumnIndex in interface Datasetname - the name of the column to look upwpublic java.lang.String getColumnName(int col)
DatasetgetColumnName in interface Datasetpublic java.lang.Class<?> getColumnType(int col)
DatasetgetColumnType in interface Datasetpublic java.lang.Object getValueAt(int row,
int col)
DatasetgetValueAt in interface Datasetpublic QualityCode getQualityAt(int row, int col)
DatasetgetQualityAt in interface Datasetpublic java.lang.Object getValueAt(int row,
java.lang.String colName)
DatasetgetValueAt in interface Datasetpublic double getPrimitiveValueAt(int row,
int col)
DatasetgetPrimitiveValueAt in interface Datasetpublic int binarySearch(int column,
java.lang.Object key)
DatasetbinarySearch in interface Datasetpublic java.lang.String toString()
toString in class java.lang.Object