public class Anonymizer
extends java.lang.Object
| Constructor and Description |
|---|
Anonymizer() |
| Modifier and Type | Method and Description |
|---|---|
static SerializedRecord |
anonymize(EventRecord er)
Anonymize hostnames, ip addresses and file names/paths
that appear in fields of an EventRecord, after it gets
serialized into a SerializedRecord.
|
static SerializedRecord |
anonymize(SerializedRecord sr)
Anonymize hostnames, ip addresses and file names/paths
that appear in fields of a SerializedRecord.
|
static java.lang.String |
getMD5Hash(java.lang.String text)
Create the MD5 digest of an input text.
|
public static SerializedRecord anonymize(SerializedRecord sr) throws java.lang.Exception
sr - the input SerializedRecordjava.lang.Exceptionpublic static SerializedRecord anonymize(EventRecord er) throws java.lang.Exception
er - the input EventRecordjava.lang.Exceptionpublic static java.lang.String getMD5Hash(java.lang.String text)
text - the input textCopyright © 2009 The Apache Software Foundation