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
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate final CommonConnectorConfigstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Stringdatabase()org.apache.kafka.connect.data.Schemaschema()Returns the schema of specific sub-types.protected Stringsequence()Returns extra sequencing metadata about a change event formatted as a stringified JSON array.protected Stringprotected abstract SnapshotRecordsnapshot()org.apache.kafka.connect.data.Structstruct()Returns thesourcestruct 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:
-
TIMESTAMP_US_KEY
- See Also:
-
TIMESTAMP_NS_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 thesourcestruct 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.
-