public class TSRecord extends Object
| Modifier and Type | Field and Description |
|---|---|
List<DataPoint> |
dataPointList
all value of this TSRecord.
|
String |
deviceId
deviceId of this TSRecord.
|
long |
time
timestamp of this TSRecord.
|
| Constructor and Description |
|---|
TSRecord(long timestamp,
String deviceId)
constructor of TSRecord.
|
| Modifier and Type | Method and Description |
|---|---|
TSRecord |
addTuple(DataPoint tuple)
add one data point to this TSRecord.
|
void |
setTime(long timestamp) |
String |
toString()
output this TSRecord in String format.For example: {device id: d1 time: 123456 ,data:[
{measurement id: s1 type:INT32 value: 1 } {measurement id: s2 type: FLOAT value: 11.11 }
{measurement id: s3 type: BOOLEAN value: true }]}
|
public long time
public String deviceId
public TSRecord(long timestamp,
String deviceId)
timestamp - timestamp of this TSRecorddeviceId - deviceId of this TSRecordpublic void setTime(long timestamp)
public TSRecord addTuple(DataPoint tuple)
tuple - data point to be addedpublic String toString()
Copyright © 2022 The Apache Software Foundation. All rights reserved.