public class SerializedRecord extends Object
| Constructor and Description |
|---|
SerializedRecord(EventRecord source)
Create the SerializedRecord given an EventRecord.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
arrangeKeys(ArrayList<String> keys)
Arrange the keys to provide a more readable printing order:
first goes the timestamp, then the hostname and then the type, followed
by all other keys found.
|
String |
get(String fieldName)
Get the value of a property of the EventRecord.
|
boolean |
isValid()
Check if the SerializedRecord is a valid one, i.e., whether
it represents meaningful metric values.
|
void |
set(String fieldName,
String fieldValue)
Set the value of a property of the EventRecord.
|
String |
toString()
Creates and returns a string reperssentation of the object
|
public SerializedRecord(EventRecord source)
public void set(String fieldName, String fieldValue)
fieldName - the name of the property to setfieldValue - the value of the property to setpublic String get(String fieldName)
fieldName - the name of the property to get.public static void arrangeKeys(ArrayList<String> keys)
keys - The input ArrayList of keys to re-arrange.public boolean isValid()
Copyright © 2009 The Apache Software Foundation