Class ColumnHandlerFactory
java.lang.Object
com.illumon.iris.db.plot.util.tables.ColumnHandlerFactory
- All Implemented Interfaces:
Serializable
Creates
ColumnHandlerFactory.ColumnHandler instances with specified data types.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceHolds a table column.static enum -
Method Summary
Modifier and TypeMethodDescriptionnewComparableHandler(TableHandle tableHandle, String columnName, PlotInfo plotInfo) Creates a new ColumnHandler instance with a comparableColumnHandlerFactory.TypeClassification.newComparableHandler(Table table, String columnName, PlotInfo plotInfo) Creates a new ColumnHandler instance with a comparableColumnHandlerFactory.TypeClassification.newNumericHandler(TableHandle tableHandle, String columnName, PlotInfo plotInfo) Creates a new ColumnHandler instance with a numericColumnHandlerFactory.TypeClassification.newNumericHandler(Table table, String columnName, PlotInfo plotInfo) Creates a new ColumnHandler instance with a numericColumnHandlerFactory.TypeClassification.newObjectHandler(TableHandle tableHandle, String columnName, PlotInfo plotInfo) Creates a new ColumnHandler instance with a objectColumnHandlerFactory.TypeClassification.newObjectHandler(Table table, 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:
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
-