public class SerializedRecord
extends java.lang.Object
Constructor and Description |
---|
SerializedRecord(EventRecord source)
Create the SerializedRecord given an EventRecord.
|
Modifier and Type | Method and Description |
---|---|
static void |
arrangeKeys(java.util.ArrayList<java.lang.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.
|
java.lang.String |
get(java.lang.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(java.lang.String fieldName,
java.lang.String fieldValue)
Set the value of a property of the EventRecord.
|
java.lang.String |
toString()
Creates and returns a string reperssentation of the object
|
public SerializedRecord(EventRecord source)
public void set(java.lang.String fieldName, java.lang.String fieldValue)
fieldName
- the name of the property to setfieldValue
- the value of the property to setpublic java.lang.String get(java.lang.String fieldName)
fieldName
- the name of the property to get.public static void arrangeKeys(java.util.ArrayList<java.lang.String> keys)
keys
- The input ArrayList of keys to re-arrange.public boolean isValid()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009 The Apache Software Foundation