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 Object
asJSON(Object value, MaxwellOutputConfig config)
static SetColumnDef
create(String name, String type, short pos, String[] enumValues)
String
toSQL(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:
toSQL
in classColumnDef
- Throws:
ColumnDefCastException
-
asJSON
public Object asJSON(Object value, MaxwellOutputConfig config) throws ColumnDefCastException
- Overrides:
asJSON
in classColumnDef
- Throws:
ColumnDefCastException
-
-