public class DataKey
extends java.lang.Object
implements java.io.Serializable
Base class for all keys associated to data records in SensorHub. Keys are used to store time stamped data records in storage.
Modifier and Type | Field and Description |
---|---|
java.lang.String |
producerID
ID of data producer (i.e.
|
java.lang.String |
recordType
ID of record type (i.e.
|
double |
timeStamp
Time stamp of data record (e.g.
|
Constructor and Description |
---|
DataKey(java.lang.String recordType,
double timeStamp)
Default constructor providing basic indexing metadata
|
DataKey(java.lang.String recordType,
java.lang.String producerID,
double timeStamp)
Constructor with specific producer ID
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
protected void |
toString(java.lang.StringBuilder buf) |
public java.lang.String recordType
public double timeStamp
public java.lang.String producerID
public DataKey(java.lang.String recordType, double timeStamp)
recordType
- recordType
timeStamp
- timeStamp
public DataKey(java.lang.String recordType, java.lang.String producerID, double timeStamp)
recordType
- recordType
producerID
- producerID
timeStamp
- timeStamp