Class EnumColumnDef
- java.lang.Object
-
- com.zendesk.maxwell.schema.columndef.ColumnDef
-
- com.zendesk.maxwell.schema.columndef.EnumeratedColumnDef
-
- com.zendesk.maxwell.schema.columndef.EnumColumnDef
-
- All Implemented Interfaces:
Cloneable
public class EnumColumnDef extends EnumeratedColumnDef
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asJSON(Object value, MaxwellOutputConfig config)
static EnumColumnDef
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 EnumColumnDef 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 String asJSON(Object value, MaxwellOutputConfig config) throws ColumnDefCastException
- Overrides:
asJSON
in classColumnDef
- Throws:
ColumnDefCastException
-
-