Package io.deephaven.plot.util.tables
Class ColumnHandlerFactory
java.lang.Object
io.deephaven.plot.util.tables.ColumnHandlerFactory
- All Implemented Interfaces:
Serializable
Creates
ColumnHandlerFactory.ColumnHandler
instances with specified data types.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Holds a table column.static enum
-
Method Summary
Modifier and TypeMethodDescriptionnewComparableHandler
(Table table, String columnName, PlotInfo plotInfo) Creates a new ColumnHandler instance with a comparableColumnHandlerFactory.TypeClassification
.newComparableHandler
(TableHandle tableHandle, String columnName, PlotInfo plotInfo) Creates a new ColumnHandler instance with a comparableColumnHandlerFactory.TypeClassification
.newNumericHandler
(Table table, String columnName, PlotInfo plotInfo) Creates a new ColumnHandler instance with a numericColumnHandlerFactory.TypeClassification
.newNumericHandler
(TableHandle tableHandle, String columnName, PlotInfo plotInfo) Creates a new ColumnHandler instance with a numericColumnHandlerFactory.TypeClassification
.newObjectHandler
(Table table, String columnName, PlotInfo plotInfo) Creates a new ColumnHandler instance with a objectColumnHandlerFactory.TypeClassification
.newObjectHandler
(TableHandle tableHandle, String columnName, PlotInfo plotInfo) Creates a new ColumnHandler instance with a objectColumnHandlerFactory.TypeClassification
.
-
Method Details
-
newNumericHandler
public static ColumnHandlerFactory.ColumnHandler newNumericHandler(TableHandle tableHandle, String columnName, PlotInfo plotInfo) Creates a new ColumnHandler instance with a numericColumnHandlerFactory.TypeClassification
.- Parameters:
tableHandle
- holds the tablecolumnName
- column in the table- Returns:
- new numeric ColumnHandler
- Throws:
RequirementFailure
-tableHandle
andcolumnName
must not be null.IllegalArgumentException
- ifcolumnName
is not a column in the tableUnsupportedOperationException
- data in thecolumnName
must be numeric
-
newNumericHandler
public static ColumnHandlerFactory.ColumnHandler newNumericHandler(Table table, String columnName, PlotInfo plotInfo) Creates a new ColumnHandler instance with a numericColumnHandlerFactory.TypeClassification
.- Parameters:
table
- tablecolumnName
- column in the table- Returns:
- new numeric ColumnHandler
- Throws:
RequirementFailure
-table
andcolumnName
must not be null.IllegalArgumentException
- ifcolumnName
is not a column in the tableUnsupportedOperationException
- data in the column must be numeric
-
newComparableHandler
public static ColumnHandlerFactory.ColumnHandler newComparableHandler(TableHandle tableHandle, String columnName, PlotInfo plotInfo) Creates a new ColumnHandler instance with a comparableColumnHandlerFactory.TypeClassification
.- Parameters:
tableHandle
- holds the tablecolumnName
- column in the table- Returns:
- new comparable ColumnHandler
- Throws:
RequirementFailure
-tableHandle
andcolumnName
must not be null.IllegalArgumentException
- ifcolumnName
is not a column in the tableUnsupportedOperationException
- data in thecolumnName
must beComparable
-
newComparableHandler
public static ColumnHandlerFactory.ColumnHandler newComparableHandler(Table table, String columnName, PlotInfo plotInfo) Creates a new ColumnHandler instance with a comparableColumnHandlerFactory.TypeClassification
.- Parameters:
table
- tablecolumnName
- column in the table- Returns:
- new comparable ColumnHandler
- Throws:
RequirementFailure
-table
andcolumnName
must not be null.IllegalArgumentException
- ifcolumnName
is not a column in thetable
UnsupportedOperationException
- data in the column must beComparable
-
newObjectHandler
public static ColumnHandlerFactory.ColumnHandler newObjectHandler(TableHandle tableHandle, String columnName, PlotInfo plotInfo) Creates a new ColumnHandler instance with a objectColumnHandlerFactory.TypeClassification
.- Parameters:
tableHandle
- holds the tablecolumnName
- column in the table- Returns:
- new object ColumnHandler
- Throws:
RequirementFailure
-tableHandle
andcolumnName
must not be null.IllegalArgumentException
- ifcolumnName
is not a column in the table
-
newObjectHandler
public static ColumnHandlerFactory.ColumnHandler newObjectHandler(Table table, String columnName, PlotInfo plotInfo) Creates a new ColumnHandler instance with a objectColumnHandlerFactory.TypeClassification
.- Parameters:
table
- tablecolumnName
- column in the table- Returns:
- new object ColumnHandler
- Throws:
RequirementFailure
-table
andcolumnName
must not be null.IllegalArgumentException
- ifcolumnName
is not a column in thetable
RequirementFailure
-table
andcolumnName
must not be null.IllegalArgumentException
- ifcolumnName
is not a column in thetable
-