Class CountMinSketchAgentStringUTF16Forge

java.lang.Object
com.espertech.esper.common.client.util.CountMinSketchAgentStringUTF16Forge
All Implemented Interfaces:
CountMinSketchAgentForge

public class CountMinSketchAgentStringUTF16Forge extends Object implements CountMinSketchAgentForge
Count-min sketch agent that handles String-type values and uses UTF-16 encoding to transform strings to byte-array and back.
  • Constructor Details

    • CountMinSketchAgentStringUTF16Forge

      public CountMinSketchAgentStringUTF16Forge()
  • Method Details

    • getAcceptableValueTypes

      public Class[] 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 interface CountMinSketchAgentForge
      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 interface CountMinSketchAgentForge
      Parameters:
      parent - parent methods
      classScope - class scope
      Returns:
      expression