public class DebeziumJsonSerializer extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
DebeziumJsonSerializer.Builder
Builder for JsonDebeziumSchemaSerializer.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
EXECUTE_DDL |
static String |
INVALID_RESULT |
| Constructor and Description |
|---|
DebeziumJsonSerializer(StarRocksOptions starRocksOptions,
Pattern pattern,
String sourceTableName) |
| Modifier and Type | Method and Description |
|---|---|
static DebeziumJsonSerializer.Builder |
builder() |
protected boolean |
checkTable(com.fasterxml.jackson.databind.JsonNode recordRoot)
When cdc synchronizes multiple tables, it will capture multiple table schema changes
|
protected String |
extractDatabase(com.fasterxml.jackson.databind.JsonNode record) |
protected String |
extractTable(com.fasterxml.jackson.databind.JsonNode record) |
String |
process(String record) |
boolean |
schemaChange(com.fasterxml.jackson.databind.JsonNode recordRoot) |
public static final String INVALID_RESULT
public static final String EXECUTE_DDL
public DebeziumJsonSerializer(StarRocksOptions starRocksOptions, Pattern pattern, String sourceTableName)
public String process(String record) throws IOException
IOException@VisibleForTesting public boolean schemaChange(com.fasterxml.jackson.databind.JsonNode recordRoot)
protected boolean checkTable(com.fasterxml.jackson.databind.JsonNode recordRoot)
protected String extractDatabase(com.fasterxml.jackson.databind.JsonNode record)
protected String extractTable(com.fasterxml.jackson.databind.JsonNode record)
public static DebeziumJsonSerializer.Builder builder()
Copyright © 2024. All rights reserved.