public class InfluxDBSink extends BatchSink<com.influxdb.client.write.Point,org.apache.pulsar.client.api.schema.GenericRecord>
| Modifier and Type | Field and Description |
|---|---|
protected InfluxDBClientBuilder |
influxDBClientBuilder |
| Constructor and Description |
|---|
InfluxDBSink() |
| Modifier and Type | Method and Description |
|---|---|
protected com.influxdb.client.write.Point |
buildPoint(org.apache.pulsar.functions.api.Record<org.apache.pulsar.client.api.schema.GenericRecord> record) |
void |
close() |
void |
open(Map<String,Object> config,
SinkContext sinkContext) |
protected void |
writePoints(List<com.influxdb.client.write.Point> points) |
protected InfluxDBClientBuilder influxDBClientBuilder
public void open(Map<String,Object> config, SinkContext sinkContext) throws Exception
Exceptionprotected final com.influxdb.client.write.Point buildPoint(org.apache.pulsar.functions.api.Record<org.apache.pulsar.client.api.schema.GenericRecord> record)
buildPoint in class BatchSink<com.influxdb.client.write.Point,org.apache.pulsar.client.api.schema.GenericRecord>protected void writePoints(List<com.influxdb.client.write.Point> points) throws Exception
writePoints in class BatchSink<com.influxdb.client.write.Point,org.apache.pulsar.client.api.schema.GenericRecord>ExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.