@Internal public class SchemaManager extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SchemaManager.Serializer
Serializer for
SchemaManager. |
| 限定符和类型 | 字段和说明 |
|---|---|
static SchemaManager.Serializer |
SERIALIZER |
| 构造器和说明 |
|---|
SchemaManager() |
SchemaManager(Map<org.apache.flink.cdc.common.event.TableId,SortedMap<Integer,org.apache.flink.cdc.common.schema.Schema>> originalSchemas,
Map<org.apache.flink.cdc.common.event.TableId,SortedMap<Integer,org.apache.flink.cdc.common.schema.Schema>> evolvedSchemas,
org.apache.flink.cdc.common.pipeline.SchemaChangeBehavior behavior) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
applyEvolvedSchemaChange(org.apache.flink.cdc.common.event.SchemaChangeEvent schemaChangeEvent)
Apply schema change to a table.
|
void |
applyOriginalSchemaChange(org.apache.flink.cdc.common.event.SchemaChangeEvent schemaChangeEvent)
Apply schema change to a table.
|
boolean |
equals(Object o) |
boolean |
evolvedSchemaExists(org.apache.flink.cdc.common.event.TableId tableId) |
Set<org.apache.flink.cdc.common.event.TableId> |
getAllOriginalTables() |
org.apache.flink.cdc.common.pipeline.SchemaChangeBehavior |
getBehavior() |
org.apache.flink.cdc.common.schema.Schema |
getEvolvedSchema(org.apache.flink.cdc.common.event.TableId tableId,
int version)
Get schema at the specified version of a table.
|
Optional<org.apache.flink.cdc.common.schema.Schema> |
getLatestEvolvedSchema(org.apache.flink.cdc.common.event.TableId tableId)
Get the latest evolved schema of the specified table.
|
Optional<org.apache.flink.cdc.common.schema.Schema> |
getLatestOriginalSchema(org.apache.flink.cdc.common.event.TableId tableId)
Get the latest original schema of the specified table.
|
org.apache.flink.cdc.common.schema.Schema |
getOriginalSchema(org.apache.flink.cdc.common.event.TableId tableId,
int version)
Get schema at the specified version of a table.
|
int |
hashCode() |
boolean |
originalSchemaExists(org.apache.flink.cdc.common.event.TableId tableId) |
void |
registerNewEvolvedSchema(org.apache.flink.cdc.common.event.TableId tableId,
org.apache.flink.cdc.common.schema.Schema newSchema) |
void |
registerNewOriginalSchema(org.apache.flink.cdc.common.event.TableId tableId,
org.apache.flink.cdc.common.schema.Schema newSchema) |
boolean |
schemaExists(Map<org.apache.flink.cdc.common.event.TableId,SortedMap<Integer,org.apache.flink.cdc.common.schema.Schema>> schemaMap,
org.apache.flink.cdc.common.event.TableId tableId) |
String |
toString() |
public static final SchemaManager.Serializer SERIALIZER
public SchemaManager()
public SchemaManager(Map<org.apache.flink.cdc.common.event.TableId,SortedMap<Integer,org.apache.flink.cdc.common.schema.Schema>> originalSchemas, Map<org.apache.flink.cdc.common.event.TableId,SortedMap<Integer,org.apache.flink.cdc.common.schema.Schema>> evolvedSchemas, org.apache.flink.cdc.common.pipeline.SchemaChangeBehavior behavior)
public org.apache.flink.cdc.common.pipeline.SchemaChangeBehavior getBehavior()
public final boolean schemaExists(Map<org.apache.flink.cdc.common.event.TableId,SortedMap<Integer,org.apache.flink.cdc.common.schema.Schema>> schemaMap, org.apache.flink.cdc.common.event.TableId tableId)
public final boolean originalSchemaExists(org.apache.flink.cdc.common.event.TableId tableId)
public final boolean evolvedSchemaExists(org.apache.flink.cdc.common.event.TableId tableId)
public final Set<org.apache.flink.cdc.common.event.TableId> getAllOriginalTables()
public Optional<org.apache.flink.cdc.common.schema.Schema> getLatestEvolvedSchema(org.apache.flink.cdc.common.event.TableId tableId)
public Optional<org.apache.flink.cdc.common.schema.Schema> getLatestOriginalSchema(org.apache.flink.cdc.common.event.TableId tableId)
public org.apache.flink.cdc.common.schema.Schema getEvolvedSchema(org.apache.flink.cdc.common.event.TableId tableId,
int version)
public org.apache.flink.cdc.common.schema.Schema getOriginalSchema(org.apache.flink.cdc.common.event.TableId tableId,
int version)
public void applyOriginalSchemaChange(org.apache.flink.cdc.common.event.SchemaChangeEvent schemaChangeEvent)
public void applyEvolvedSchemaChange(org.apache.flink.cdc.common.event.SchemaChangeEvent schemaChangeEvent)
@VisibleForTesting
public void registerNewOriginalSchema(org.apache.flink.cdc.common.event.TableId tableId,
org.apache.flink.cdc.common.schema.Schema newSchema)
@VisibleForTesting
public void registerNewEvolvedSchema(org.apache.flink.cdc.common.event.TableId tableId,
org.apache.flink.cdc.common.schema.Schema newSchema)
Copyright © 2025 The Apache Software Foundation. All rights reserved.