public class Anonymizer extends 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 String |
getMD5Hash(String text)
Create the MD5 digest of an input text.
|
public static SerializedRecord anonymize(SerializedRecord sr) throws Exception
sr
- the input SerializedRecordException
public static SerializedRecord anonymize(EventRecord er) throws Exception
er
- the input EventRecordException
Copyright © 2010 The Apache Software Foundation