K
- The type of object that will be anonymizedpublic interface Anonymizer<K>
Modifier and Type | Method and Description |
---|---|
Attribute |
anonymize(Map<Value,Value> valueMap,
Set<Value> valueSet,
Attribute attribute)
Take an attribute and its value, anonymizing all of them.
|
Map<Integer,byte[]> |
getLatestBytesMap() |
Map<Integer,String> |
getLatestStringMap() |
void |
setAnonymizers(Map<String,Anonymizer<K>> attributeAnonymizers)
Set the list of existing anonymizers
|
void |
setLatestBytesMap(Map<Integer,byte[]> latestBytesMap) |
void |
setLatestStringMap(Map<Integer,String> latestStringMap) |
void |
setSchemaManager(SchemaManager schemaManager)
Inject a SchemaManager instance in this Anonymizer
|
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 anonymizevoid setSchemaManager(SchemaManager schemaManager)
schemaManager
- The SchemaManager instancevoid setAnonymizers(Map<String,Anonymizer<K>> attributeAnonymizers)
attributeAnonymizers
- The list of existing anonymizersMap<Integer,String> getLatestStringMap()
void setLatestStringMap(Map<Integer,String> latestStringMap)
latestStringMap
- The latest String anonymized value mapMap<Integer,byte[]> getLatestBytesMap()
void setLatestBytesMap(Map<Integer,byte[]> latestBytesMap)
latestBytesMap
- The latest byte[] anonymized value mapCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.