Class SetColumnDef
- java.lang.Object
-
- com.zendesk.maxwell.schema.columndef.ColumnDef
-
- com.zendesk.maxwell.schema.columndef.EnumeratedColumnDef
-
- com.zendesk.maxwell.schema.columndef.SetColumnDef
-
- All Implemented Interfaces:
Cloneable
public class SetColumnDef extends EnumeratedColumnDef
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectasJSON(Object value, MaxwellOutputConfig config)static SetColumnDefcreate(String name, String type, short pos, String[] enumValues)StringtoSQL(Object value)-
Methods inherited from class com.zendesk.maxwell.schema.columndef.EnumeratedColumnDef
equals, getEnumValues, hashCode
-
Methods inherited from class com.zendesk.maxwell.schema.columndef.ColumnDef
asJSON, build, clone, cloneSelfAndSet, getInterner, getName, getPos, getType, unalias_type, withName, withPos
-
-
-
-
Method Detail
-
create
public static SetColumnDef create(String name, String type, short pos, String[] enumValues)
-
toSQL
public String toSQL(Object value) throws ColumnDefCastException
- Specified by:
toSQLin classColumnDef- Throws:
ColumnDefCastException
-
asJSON
public Object asJSON(Object value, MaxwellOutputConfig config) throws ColumnDefCastException
- Overrides:
asJSONin classColumnDef- Throws:
ColumnDefCastException
-
-