kafka-connect-transformers

February 23, 2018 ยท View on GitHub

Transformations

  • LogicalFieldToString - Format logical fields value
  • MapKeyToString - Replace map key to string value
  • NestingFields - Create nesting fields from value to new field

LogicalFieldToString

com.datamountaineer.streamreactor.connect.transforms.LogicalFieldToString

Use the concrete transformation type designed for the record key (com.datamountaineer.streamreactor.connect.transforms.LogicalFieldToStringKey)orvalue(com.datamountaineer.streamreactor.connect.transforms.LogicalFieldToStringKey) or value (com.datamountaineer.streamreactor.connect.transforms.LogicalFieldToStringValue).

NAMEDESCRIPTIONTYPEDEFAULTVALID VALUESIMPORTANCE
fieldsField names to be formatted.listnon-empty listhigh
formatFormat to apply.stringvalid DecimalFormat, DateFormat formathigh

MapKeyToString

com.datamountaineer.streamreactor.connect.transforms.MapKeyToString

Use the concrete transformation type designed for the record key (com.datamountaineer.streamreactor.connect.transforms.MapKeyToStringKey)orvalue(com.datamountaineer.streamreactor.connect.transforms.MapKeyToStringKey) or value (com.datamountaineer.streamreactor.connect.transforms.MapKeyToStringValue).

NAMEDESCRIPTIONTYPEDEFAULTVALID VALUESIMPORTANCE
fieldsField names to be cast.listnon-empty listhigh

NestingFields

com.datamountaineer.streamreactor.connect.transforms.NestingFields

Use the concrete transformation type designed for the record key (com.datamountaineer.streamreactor.connect.transforms.NestingFieldsKey)orvalue(com.datamountaineer.streamreactor.connect.transforms.NestingFieldsKey) or value (com.datamountaineer.streamreactor.connect.transforms.NestingFieldsValue).

NAMEDESCRIPTIONTYPEDEFAULTVALID VALUESIMPORTANCE
fieldsField names to add in the nested field.listnon-empty listhigh
nested.nameNested field name.stringnon-empty stringhigh