Class AnonymizingTypeTranslator.DefaultAnonymizer
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.translator.AnonymizingTypeTranslator.DefaultAnonymizer
-
- All Implemented Interfaces:
AnonymizingTypeTranslator.Anonymizer
- Enclosing class:
- AnonymizingTypeTranslator
public static class AnonymizingTypeTranslator.DefaultAnonymizer extends Object implements AnonymizingTypeTranslator.Anonymizer
This default implementation keeps a map from type (Java Class) to another map from instances to anonymized token.
-
-
Constructor Summary
Constructors Constructor Description DefaultAnonymizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
anonymize(Object obj)
Return an anonymized token for the supplied object of the form "type:instance#".
-
-
-
Method Detail
-
anonymize
public Object anonymize(Object obj)
Return an anonymized token for the supplied object of the form "type:instance#".- Specified by:
anonymize
in interfaceAnonymizingTypeTranslator.Anonymizer
- Parameters:
obj
- aTraversal
object of one of the following types: String, Long, Double, FLoat, Integer, Class, TImestamp, Date, UUID,Vertex
,Edge
,VertexProperty
- Returns:
- an anonymized version of the supplied object
-
-