public class BinaryAnonymizer extends AbstractAnonymizer<byte[]>
| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,byte[]> |
latestBytesMap
The latest anonymized byte[] value map
|
attributeAnonymizers, caseSensitive, schemaManager| Constructor and Description |
|---|
BinaryAnonymizer()
Creates a new instance of BinaryAnonymizer.
|
BinaryAnonymizer(Map<Integer,byte[]> latestBytesMap)
Creates a new instance of BinaryAnonymizer.
|
| Modifier and Type | Method and Description |
|---|---|
Attribute |
anonymize(Map<Value,Value> valueMap,
Set<Value> valueSet,
Attribute attribute)
Anonymize an attribute using pure random values (either chars of bytes, depending on the Attribute type)
|
Map<Integer,byte[]> |
getLatestBytesMap() |
void |
setLatestBytesMap(Map<Integer,byte[]> latestBytesMap) |
computeNewValue, computeNewValue, getLatestStringMap, setAnonymizers, setLatestStringMap, setSchemaManagerpublic BinaryAnonymizer()
public Attribute anonymize(Map<Value,Value> valueMap, Set<Value> valueSet, Attribute attribute)
valueMap - The existing map of value to the associated anonymized counterpartvalueSet - The existing set of anonymized counterpartattribute - The attribute to anonymizepublic Map<Integer,byte[]> getLatestBytesMap()
getLatestBytesMap in interface Anonymizer<byte[]>getLatestBytesMap in class AbstractAnonymizer<byte[]>public void setLatestBytesMap(Map<Integer,byte[]> latestBytesMap)
setLatestBytesMap in interface Anonymizer<byte[]>setLatestBytesMap in class AbstractAnonymizer<byte[]>latestBytesMap - The latest byte[] anonymized value mapCopyright © 2003–2022 The Apache Software Foundation. All rights reserved.