Package io.prestosql.testing
Class StatefulSleepingSum
- java.lang.Object
-
- io.prestosql.metadata.SqlScalarFunction
-
- io.prestosql.testing.StatefulSleepingSum
-
- All Implemented Interfaces:
io.prestosql.metadata.SqlFunction
public class StatefulSleepingSum extends io.prestosql.metadata.SqlScalarFunction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStatefulSleepingSum.State
-
Field Summary
Fields Modifier and Type Field Description static StatefulSleepingSumSTATEFUL_SLEEPING_SUM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.prestosql.operator.scalar.ScalarFunctionImplementationspecialize(io.prestosql.metadata.BoundVariables boundVariables, int arity, io.prestosql.metadata.Metadata metadata)static longstatefulSleepingSum(StatefulSleepingSum.State state, double sleepProbability, long sleepDurationMillis, long a, long b)
-
-
-
Field Detail
-
STATEFUL_SLEEPING_SUM
public static final StatefulSleepingSum STATEFUL_SLEEPING_SUM
-
-
Method Detail
-
specialize
public io.prestosql.operator.scalar.ScalarFunctionImplementation specialize(io.prestosql.metadata.BoundVariables boundVariables, int arity, io.prestosql.metadata.Metadata metadata)- Specified by:
specializein classio.prestosql.metadata.SqlScalarFunction
-
statefulSleepingSum
public static long statefulSleepingSum(StatefulSleepingSum.State state, double sleepProbability, long sleepDurationMillis, long a, long b)
-
-