[
https://issues.apache.org/jira/browse/BEAM-2546?focusedWorklogId=391134&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-391134
]
ASF GitHub Bot logged work on BEAM-2546:
----------------------------------------
Author: ASF GitHub Bot
Created on: 22/Feb/20 15:07
Start Date: 22/Feb/20 15:07
Worklog Time Spent: 10m
Work Description: iemejia commented on pull request #10604: BEAM-2546
Beam IO for InfluxDB
URL: https://github.com/apache/beam/pull/10604#discussion_r382915916
##########
File path:
sdks/java/io/influxdb/src/test/java/org/apache/beam/sdk/io/influxdb/Model.java
##########
@@ -0,0 +1,75 @@
+package org.apache.beam.sdk.io.influxdb;
+
+import org.apache.beam.sdk.coders.AvroCoder;
+import org.apache.beam.sdk.coders.DefaultCoder;
+import org.influxdb.dto.Point;
+
+import java.util.HashMap;
+import java.util.Map;
+import java.util.concurrent.TimeUnit;
+
+@DefaultCoder(AvroCoder.class)
+public class Model implements LineProtocolConvertable {
+ private String measurement;
+ private Map<String, String> tags;
+ private Map<String, Object> fields;
+ private Long time;
+ private TimeUnit timeUnit;
+
+
+ Model() {
+ tags = new HashMap();
+ fields = new HashMap();
+ }
+
+
+ public Long getTime() {
+ return time;
+ }
+
+ public void setTime(Long time) {
+ this.time = time;
+ }
+
+ public TimeUnit getTimeUnit() {
+ return timeUnit;
+ }
+
+ public void setTimeUnit(TimeUnit timeUnit) {
+ this.timeUnit = timeUnit;
+ }
+
+ public void addFeild(String name, Object value){
Review comment:
Field
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 391134)
> Create InfluxDbIO
> -----------------
>
> Key: BEAM-2546
> URL: https://issues.apache.org/jira/browse/BEAM-2546
> Project: Beam
> Issue Type: New Feature
> Components: io-ideas
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Time Spent: 3.5h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)