Package com.illumon.iris.db.util.config
Class TableInputHandler
java.lang.Object
com.illumon.iris.db.util.config.TableInputHandler
- All Implemented Interfaces:
Serializable
public class TableInputHandler extends Object implements Serializable
Methods for assisting in input table construction.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTableInputHandler.ColumnConfigConfiguration for an input table column.static interfaceTableInputHandler.ColumnConfigAttributeAn attribute for a column.static classTableInputHandler.EnumValuesUsed to create an allowable set of items to select from for the particular column.static classTableInputHandler.TimeoutException -
Constructor Summary
Constructors Constructor Description TableInputHandler(TableDefinition definition, String[] keys) -
Method Summary
Modifier and Type Method Description voidaddAttribute(String columnName, TableInputHandler.ColumnConfigAttribute configAttribute)static TableInputHandler.ColumnConfigc(String name, Class type, TableInputHandler.ColumnConfigAttribute... attributes)Creates a column configuration for a "normal" input table column.static TableInputHandler.ColumnConfigcKey(String name, Class type, TableInputHandler.ColumnConfigAttribute... attributes)Creates a column configuration for a "key" input table column.voidclearAttributes(String columnName)booleanequals(Object o)TableDefinitiongetDefinition()Object[]getEnums(String columnName, Database db)FieldEntrygetFieldEntry(Database db, String name)String[]getKeyColumnNames()static Set<String>getRestrictedColumnNames()Gets the set of special column names that may not be used with input tables.booleanhasColumn(String name)inthashCode()voidinit(Database db, String namespace, String tableName)booleanisKey(String name)
-
Constructor Details
-
Method Details
-
isKey
-
hasColumn
-
getFieldEntry
-
getEnums
-
getKeyColumnNames
-
init
-
c
public static TableInputHandler.ColumnConfig c(String name, Class type, TableInputHandler.ColumnConfigAttribute... attributes)Creates a column configuration for a "normal" input table column.- Parameters:
name- column nametype- column typeattributes- column attributes- Returns:
- column configuration
-
cKey
public static TableInputHandler.ColumnConfig cKey(String name, Class type, TableInputHandler.ColumnConfigAttribute... attributes)Creates a column configuration for a "key" input table column.- Parameters:
name- column nametype- column typeattributes- column attributes- Returns:
- column configuration
-
getRestrictedColumnNames
Gets the set of special column names that may not be used with input tables.- Returns:
- the set of special column names that may not be used with input tables.
-
addAttribute
public void addAttribute(String columnName, TableInputHandler.ColumnConfigAttribute configAttribute) -
clearAttributes
-
equals
-
hashCode
public int hashCode() -
getDefinition
-