Package io.debezium.connector
Class AbstractSourceInfo
java.lang.Object
io.debezium.connector.AbstractSourceInfo
- Direct Known Subclasses:
BaseSourceInfo
Common information provided by all connectors in either source field or offsets
- Author:
- Jiri Pechanec
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
database()
org.apache.kafka.connect.data.Schema
schema()
Returns the schema of specific sub-types.protected String
sequence()
Returns extra sequencing metadata about a change event formatted as a stringified JSON array.protected String
protected abstract SnapshotRecord
snapshot()
org.apache.kafka.connect.data.Struct
struct()
Returns thesource
struct representing this source info.protected SourceInfoStructMaker<AbstractSourceInfo>
protected abstract Instant
-
Field Details
-
DEBEZIUM_VERSION_KEY
- See Also:
-
DEBEZIUM_CONNECTOR_KEY
- See Also:
-
SERVER_NAME_KEY
- See Also:
-
TIMESTAMP_KEY
- See Also:
-
SNAPSHOT_KEY
- See Also:
-
DATABASE_NAME_KEY
- See Also:
-
SCHEMA_NAME_KEY
- See Also:
-
TABLE_NAME_KEY
- See Also:
-
COLLECTION_NAME_KEY
- See Also:
-
SEQUENCE_KEY
- See Also:
-
config
-
-
Constructor Details
-
AbstractSourceInfo
-
-
Method Details
-
schema
public org.apache.kafka.connect.data.Schema schema()Returns the schema of specific sub-types. Implementations should call#schemaBuilder()
to add all shared fields to their schema. -
structMaker
-
timestamp
- Returns:
- timestamp of the event
-
snapshot
- Returns:
- status whether the record is from snapshot or streaming phase
-
database
- Returns:
- name of the database
-
serverName
- Returns:
- logical name of the server
-
struct
public org.apache.kafka.connect.data.Struct struct()Returns thesource
struct representing this source info. -
sequence
Returns extra sequencing metadata about a change event formatted as a stringified JSON array. The metadata contained in a sequence must be ordered sequentially in order to be understood and compared. Note: if a source's sequence metadata contains any string values, those strings must be correctly escaped before being included in the stringified JSON array.
-