public class IntegerAnonymizer extends AbstractAnonymizer<String>
| Modifier and Type | Field and Description |
|---|---|
private Map<Integer,String> |
latestIntegerMap
The latest anonymized Integer value map
|
attributeAnonymizers, caseSensitive, schemaManager| Constructor and Description |
|---|
IntegerAnonymizer()
Creates a new instance of IntegerAnonymizer.
|
IntegerAnonymizer(Map<Integer,String> latestIntegerMap)
Creates a new instance of IntegerAnonymizer.
|
| 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)
|
private String |
computeNewIntegerValue(String valStr)
Compute the next Integer value
|
Map<Integer,String> |
getLatestIntegerMap() |
void |
setLatestIntegerMap(Map<Integer,String> latestIntegerMap)
Set the Map containing anonymized integers
|
computeNewValue, computeNewValue, getLatestBytesMap, getLatestStringMap, setAnonymizers, setLatestBytesMap, setLatestStringMap, setSchemaManagerpublic IntegerAnonymizer()
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,String> getLatestIntegerMap()
public void setLatestIntegerMap(Map<Integer,String> latestIntegerMap)
latestIntegerMap - The Map containing the latest anonymized value for each integerCopyright © 2003–2019 The Apache Software Foundation. All rights reserved.