Class CanalByteSource

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.apache.pulsar.io.core.Source<byte[]>

    public class CanalByteSource
    extends CanalAbstractSource<byte[]>
    A Simple class for mysql binlog sync to pulsar.
    • Constructor Summary

      Constructors 
      Constructor Description
      CanalByteSource()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] extractValue​(java.util.List<com.alibaba.otter.canal.protocol.FlatMessage> flatMessages)  
      java.lang.Long getMessageId​(com.alibaba.otter.canal.protocol.Message message)  
      • Methods inherited from class org.apache.pulsar.io.core.PushSource

        consume, getQueueLength, read
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CanalByteSource

        public CanalByteSource()
    • Method Detail

      • getMessageId

        public java.lang.Long getMessageId​(com.alibaba.otter.canal.protocol.Message message)
        Specified by:
        getMessageId in class CanalAbstractSource<byte[]>
      • extractValue

        public byte[] extractValue​(java.util.List<com.alibaba.otter.canal.protocol.FlatMessage> flatMessages)
        Specified by:
        extractValue in class CanalAbstractSource<byte[]>