Class CountMinSketchAgentStringUTF16Forge
java.lang.Object
com.espertech.esper.common.client.util.CountMinSketchAgentStringUTF16Forge
- All Implemented Interfaces:
CountMinSketchAgentForge
Count-min sketch agent that handles String-type values and uses UTF-16 encoding
to transform strings to byte-array and back.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.espertech.esper.common.internal.bytecodemodel.model.expression.CodegenExpression
codegenMake
(com.espertech.esper.common.internal.bytecodemodel.base.CodegenMethod parent, com.espertech.esper.common.internal.bytecodemodel.base.CodegenClassScope classScope) Provides the code for the agent.Class[]
Returns an array of types that the agent can handle, for validation purposes.
-
Constructor Details
-
CountMinSketchAgentStringUTF16Forge
public CountMinSketchAgentStringUTF16Forge()
-
-
Method Details
-
getAcceptableValueTypes
Description copied from interface:CountMinSketchAgentForge
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.- Specified by:
getAcceptableValueTypes
in interfaceCountMinSketchAgentForge
- Returns:
- class array of acceptable type
-
codegenMake
public com.espertech.esper.common.internal.bytecodemodel.model.expression.CodegenExpression codegenMake(com.espertech.esper.common.internal.bytecodemodel.base.CodegenMethod parent, com.espertech.esper.common.internal.bytecodemodel.base.CodegenClassScope classScope) Description copied from interface:CountMinSketchAgentForge
Provides the code for the agent.- Specified by:
codegenMake
in interfaceCountMinSketchAgentForge
- Parameters:
parent
- parent methodsclassScope
- class scope- Returns:
- expression
-