Class AbstractSourceInfo

java.lang.Object
io.debezium.connector.AbstractSourceInfo
Direct Known Subclasses:
BaseSourceInfo

public abstract class AbstractSourceInfo extends Object
Common information provided by all connectors in either source field or offsets
Author:
Jiri Pechanec
  • Field Details

  • Constructor Details

  • 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

      protected SourceInfoStructMaker<AbstractSourceInfo> structMaker()
    • timestamp

      protected abstract Instant timestamp()
      Returns:
      timestamp of the event
    • snapshot

      protected abstract SnapshotRecord snapshot()
      Returns:
      status whether the record is from snapshot or streaming phase
    • database

      protected abstract String database()
      Returns:
      name of the database
    • serverName

      protected String serverName()
      Returns:
      logical name of the server
    • struct

      public org.apache.kafka.connect.data.Struct struct()
      Returns the source struct representing this source info.
    • sequence

      protected String 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.