Class ColumnHandlerFactory
java.lang.Object
com.illumon.iris.db.plot.util.tables.ColumnHandlerFactory
- All Implemented Interfaces:
Serializable
public class ColumnHandlerFactory extends Object implements Serializable
Creates
ColumnHandlerFactory.ColumnHandler instances with specified data types.- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceColumnHandlerFactory.ColumnHandlerHolds a table column.static classColumnHandlerFactory.TypeClassification -
Method Summary
-
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:
com.fishlib.base.verify.RequirementFailure-tableHandleandcolumnNamemust not be null.IllegalArgumentException- ifcolumnNameis not a column in the tableUnsupportedOperationException- data in thecolumnNamemust 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:
com.fishlib.base.verify.RequirementFailure-tableandcolumnNamemust not be null.IllegalArgumentException- ifcolumnNameis 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:
com.fishlib.base.verify.RequirementFailure-tableHandleandcolumnNamemust not be null.IllegalArgumentException- ifcolumnNameis not a column in the tableUnsupportedOperationException- data in thecolumnNamemust 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:
com.fishlib.base.verify.RequirementFailure-tableandcolumnNamemust not be null.IllegalArgumentException- ifcolumnNameis not a column in thetableUnsupportedOperationException- 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:
com.fishlib.base.verify.RequirementFailure-tableHandleandcolumnNamemust not be null.IllegalArgumentException- ifcolumnNameis 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:
com.fishlib.base.verify.RequirementFailure-tableandcolumnNamemust not be null.IllegalArgumentException- ifcolumnNameis not a column in thetablecom.fishlib.base.verify.RequirementFailure-tableandcolumnNamemust not be null.IllegalArgumentException- ifcolumnNameis not a column in thetable
-