public class StringAnonymizer extends AbstractAnonymizer<String>
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) |
getLatestBytesMap, setAnonymizers, setLatestBytesMap, setSchemaManager
public StringAnonymizer()
public StringAnonymizer(Map<Integer,String> latestStringMap)
latestStringMap
- 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,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–2020 The Apache Software Foundation. All rights reserved.