public class JsonTableChangeSerializer extends Object implements TableChanges.TableChangesSerializer<Array>
TableChanges into a JSON format.| Constructor and Description |
|---|
JsonTableChangeSerializer() |
| Modifier and Type | Method and Description |
|---|---|
TableChanges |
deserialize(Array array,
boolean useCatalogBeforeSchema) |
static TableChanges.TableChange |
fromDocument(Document document,
boolean useCatalogBeforeSchema) |
private static Table |
fromDocument(TableId id,
Document document) |
Array |
serialize(TableChanges tableChanges) |
private Document |
toDocument(Column column) |
private Document |
toDocument(Table table) |
Document |
toDocument(TableChanges.TableChange tableChange) |
public Array serialize(TableChanges tableChanges)
serialize in interface TableChanges.TableChangesSerializer<Array>public Document toDocument(TableChanges.TableChange tableChange)
public TableChanges deserialize(Array array, boolean useCatalogBeforeSchema)
deserialize in interface TableChanges.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 namepublic static TableChanges.TableChange fromDocument(Document document, boolean useCatalogBeforeSchema)
Copyright © 2021 JBoss by Red Hat. All rights reserved.