Package io.debezium.relational.history
Class JsonTableChangeSerializer
java.lang.Object
io.debezium.relational.history.JsonTableChangeSerializer
- All Implemented Interfaces:
TableChanges.TableChangesSerializer<Array>
public class JsonTableChangeSerializer
extends Object
implements TableChanges.TableChangesSerializer<Array>
Ther serializer responsible for converting of
TableChanges into a JSON format.- Author:
- Jiri Pechanec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(Array array, boolean useCatalogBeforeSchema) static TableChanges.TableChangefromDocument(Document document, boolean useCatalogBeforeSchema) private static TablefromDocument(TableId id, Document document) serialize(TableChanges tableChanges) private DocumenttoDocument(Column column) toDocument(TableChanges.TableChange tableChange) private DocumenttoDocument(Table table)
-
Constructor Details
-
JsonTableChangeSerializer
public JsonTableChangeSerializer()
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceTableChanges.TableChangesSerializer<Array>
-
toDocument
-
toDocument
-
toDocument
-
deserialize
- Specified by:
deserializein interfaceTableChanges.TableChangesSerializer<Array>useCatalogBeforeSchema- true if the parsed string contains only 2 items and the first should be used as the catalog and the second as the table name, or false if the first should be used as the schema and the second as the table name
-
fromDocument
-
fromDocument
public static TableChanges.TableChange fromDocument(Document document, boolean useCatalogBeforeSchema)
-