public class BinaryAnonymizer extends AbstractAnonymizer<byte[]>
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) |
getLatestStringMap, setAnonymizers, setLatestStringMap, setSchemaManager
public BinaryAnonymizer()
public BinaryAnonymizer(Map<Integer,byte[]> latestBytesMap)
latestBytesMap
- The map containing the latest value for each lengthpublic 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–2020 The Apache Software Foundation. All rights reserved.