Class InfluxDBGenericRecordSink

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.apache.pulsar.io.core.Sink<org.apache.pulsar.client.api.schema.GenericRecord>

    public class InfluxDBGenericRecordSink
    extends java.lang.Object
    implements org.apache.pulsar.io.core.Sink<org.apache.pulsar.client.api.schema.GenericRecord>
    Delegate for InfluxDB sinks, one for InfluxDB v1, the other for InfluxDB v2
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.pulsar.io.core.Sink<org.apache.pulsar.client.api.schema.GenericRecord> sink  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void open​(java.util.Map<java.lang.String,​java.lang.Object> map, org.apache.pulsar.io.core.SinkContext sinkContext)  
      void write​(org.apache.pulsar.functions.api.Record<org.apache.pulsar.client.api.schema.GenericRecord> record)  
      • Methods inherited from class java.lang.Object

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

      • sink

        protected org.apache.pulsar.io.core.Sink<org.apache.pulsar.client.api.schema.GenericRecord> sink
    • Constructor Detail

      • InfluxDBGenericRecordSink

        public InfluxDBGenericRecordSink()
    • Method Detail

      • open

        public void open​(java.util.Map<java.lang.String,​java.lang.Object> map,
                         org.apache.pulsar.io.core.SinkContext sinkContext)
                  throws java.lang.Exception
        Specified by:
        open in interface org.apache.pulsar.io.core.Sink<org.apache.pulsar.client.api.schema.GenericRecord>
        Throws:
        java.lang.Exception
      • write

        public void write​(org.apache.pulsar.functions.api.Record<org.apache.pulsar.client.api.schema.GenericRecord> record)
                   throws java.lang.Exception
        Specified by:
        write in interface org.apache.pulsar.io.core.Sink<org.apache.pulsar.client.api.schema.GenericRecord>
        Throws:
        java.lang.Exception
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception