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
-
-
Field Summary
-
Fields inherited from class com.zendesk.maxwell.schema.columndef.EnumeratedColumnDef
enumValues
-
-
Constructor Summary
Constructors Constructor Description SetColumnDef(String name, String type, short pos, String[] enumValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
asJSON(Object value, MaxwellOutputConfig config)
String
toSQL(Object value)
-
Methods inherited from class com.zendesk.maxwell.schema.columndef.EnumeratedColumnDef
getEnumValues
-
-
-
-
Method Detail
-
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
-
-