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 Type
    Method
    Description
    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)
    Provides the code for the agent.
    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

      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)
      Provides the code for the agent.
      Parameters:
      parent - parent methods
      classScope - class scope
      Returns:
      expression