public interface Anonymizer<K>
| Modifier and Type | Method and Description |
|---|---|
Attribute |
anonymize(Map<Value<K>,Value<K>> valueMap,
Set<Value<K>> 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> 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<K>,Value<K>> valueMap, Set<Value<K>> 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> attributeAnonymizers)
attributeAnonymizers - The list of existing anonymizersMap<Integer,String> getLatestStringMap()
void setLatestStringMap(Map<Integer,String> latestStringMap)
latestValueMap - The latest String anonymized value mapMap<Integer,byte[]> getLatestBytesMap()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.