]> git.basschouten.com Git - openhab-addons.git/blob
78093330ccd70eb7b8e7978d9e7acd9809bea1ae
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.persistence.influxdb.internal;
14
15 import java.time.Instant;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18
19 /**
20  * Row data returned from database query
21  *
22  * @author Joan Pujol Espinar - Initial contribution
23  */
24 @NonNullByDefault
25 public class InfluxRow {
26     private final String itemName;
27     private final Instant time;
28     private final Object value;
29
30     public InfluxRow(Instant time, String itemName, Object value) {
31         this.time = time;
32         this.itemName = itemName;
33         this.value = value;
34     }
35
36     public Instant getTime() {
37         return time;
38     }
39
40     public String getItemName() {
41         return itemName;
42     }
43
44     public Object getValue() {
45         return value;
46     }
47 }