Package io.deephaven.plot.util.tables
Interface ColumnHandlerFactory.ColumnHandler
- Enclosing class:
- ColumnHandlerFactory
public static interface ColumnHandlerFactory.ColumnHandler
Holds a table column. Allows access to the column's data and the underlying table.
-
Method Summary
Modifier and TypeMethodDescriptionget
(int i) Gets the object in rowi
of the column.Gets the column's name.double
getDouble
(int i) Gets the object in rowi
of the column as a double.Gets the handle for the underlying table.int
size()
Gets the number of rows in the column.type()
Gets the data type of the column.Gets the column'sColumnHandlerFactory.TypeClassification
.
-
Method Details
-
getTableHandle
TableHandle getTableHandle()Gets the handle for the underlying table.- Returns:
- handle for the table
-
getColumnName
String getColumnName()Gets the column's name.- Returns:
- name of the column being held
-
size
int size()Gets the number of rows in the column.- Returns:
- size of the column
-
get
Gets the object in rowi
of the column.- Parameters:
i
- index- Returns:
- object in row
i
of the column
-
type
Class type()Gets the data type of the column.- Returns:
- column's data type
-
typeClassification
ColumnHandlerFactory.TypeClassification typeClassification()Gets the column'sColumnHandlerFactory.TypeClassification
.- Returns:
- column's
ColumnHandlerFactory.TypeClassification
-
getDouble
double getDouble(int i) Gets the object in rowi
of the column as a double.- Parameters:
i
- index- Returns:
- column's value at row
i
as a double - Throws:
UnsupportedOperationException
- if the value in the column can not be converted to double
-