public class StringAnonymizer extends AbstractAnonymizer<String>
| Modifier and Type | Field and Description |
|---|---|
private Map<Integer,String> |
latestStringMap
The latest anonymized String value map
|
attributeAnonymizers, caseSensitive, schemaManager| Constructor and Description |
|---|
StringAnonymizer()
Creates a new instance of StringAnonymizer.
|
StringAnonymizer(Map<Integer,String> latestStringMap)
Creates a new instance of StringAnonymizer.
|
| 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,String> |
getLatestStringMap() |
void |
setLatestStringMap(Map<Integer,String> latestStringMap) |
computeNewValue, computeNewValue, getLatestBytesMap, setAnonymizers, setLatestBytesMap, setSchemaManagerpublic StringAnonymizer()
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> getLatestStringMap()
getLatestStringMap in interface Anonymizer<String>getLatestStringMap in class AbstractAnonymizer<String>public void setLatestStringMap(Map<Integer,String> latestStringMap)
setLatestStringMap in interface Anonymizer<String>setLatestStringMap in class AbstractAnonymizer<String>latestStringMap - The latest String anonymized value mapCopyright © 2003–2019 The Apache Software Foundation. All rights reserved.