Class StatefulSleepingSum

  • All Implemented Interfaces:
    io.prestosql.metadata.SqlFunction

    public class StatefulSleepingSum
    extends io.prestosql.metadata.SqlScalarFunction
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.prestosql.operator.scalar.ScalarFunctionImplementation specialize​(io.prestosql.metadata.BoundVariables boundVariables, int arity, io.prestosql.metadata.Metadata metadata)  
      static long statefulSleepingSum​(StatefulSleepingSum.State state, double sleepProbability, long sleepDurationMillis, long a, long b)  
      • Methods inherited from class io.prestosql.metadata.SqlScalarFunction

        builder, getFunctionMetadata
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • specialize

        public io.prestosql.operator.scalar.ScalarFunctionImplementation specialize​(io.prestosql.metadata.BoundVariables boundVariables,
                                                                                    int arity,
                                                                                    io.prestosql.metadata.Metadata metadata)
        Specified by:
        specialize in class io.prestosql.metadata.SqlScalarFunction
      • statefulSleepingSum

        public static long statefulSleepingSum​(StatefulSleepingSum.State state,
                                               double sleepProbability,
                                               long sleepDurationMillis,
                                               long a,
                                               long b)