public class KeyValueData extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
KeyValueData.KeyValueDataType |
| Constructor and Description |
|---|
KeyValueData(String key,
Serializable value)
Build a KeyValueData object providing the name and the value for the key-value pair.
|
KeyValueData(String key,
Serializable value,
long timestamp)
Build a KeyValueData object providing the name and the value for the key-value pair
and the timestamp in which this data was accumulated.
|
KeyValueData(String key,
Serializable value,
long timestamp,
KeyValueData.KeyValueDataType type)
Build a KeyValueData object providing the name and the value for the key-value pair
and the timestamp in which this data was accumulated and their type.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
Get the key.
|
long |
getTimestamp()
Get the timestamp associated with the key-value pair.
|
KeyValueData.KeyValueDataType |
getType()
Get the KeyValueData type.
|
Serializable |
getValue()
Get the value embedding in this object.
|
String |
toString() |
public KeyValueData(String key, Serializable value, long timestamp, KeyValueData.KeyValueDataType type)
key - The String representing the keyvalue - The Object representing the value of the pair.timestamp - The timestamp is in milliseconds.public KeyValueData(String key, Serializable value, long timestamp)
key - The String representing the keyvalue - The Object representing the value of the pair.timestamp - The timestamp is in milliseconds.public KeyValueData(String key, Serializable value)
key - The String representing the keyvalue - The Object representing the value of the pair.public long getTimestamp()
public Serializable getValue()
public String getKey()
public KeyValueData.KeyValueDataType getType()
Copyright © 2016 LSST. All rights reserved.