Interface CountMinSketchAgentForge
- All Known Implementing Classes:
CountMinSketchAgentStringUTF16Forge
public interface CountMinSketchAgentForge
For use with Count-min sketch aggregation functions:
The agent implementation encapsulates transformation of value objects to byte-array and back (when needed),
and may override or provide custom behavior.
This is an extension API and may use internal classes. As such the interface may change between versions.
-
Method Summary
Modifier and TypeMethodDescriptioncodegenMake
(CodegenMethod parent, CodegenClassScope classScope) Provides the code for the agent.Class[]
Returns an array of types that the agent can handle, for validation purposes.
-
Method Details
-
getAcceptableValueTypes
Class[] getAcceptableValueTypes()Returns an array of types that the agent can handle, for validation purposes. For example, an agent that accepts byte-array type values should return "new Class[] {String.class}". Interfaces and supertype classes can also be part of the class array.- Returns:
- class array of acceptable type
-
codegenMake
Provides the code for the agent.- Parameters:
parent
- parent methodsclassScope
- class scope- Returns:
- expression
-