Package io.trino.testing
Class StatefulSleepingSum
- java.lang.Object
-
- io.trino.metadata.SqlScalarFunction
-
- io.trino.testing.StatefulSleepingSum
-
- All Implemented Interfaces:
SqlFunction
public class StatefulSleepingSum extends 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 protected ScalarFunctionImplementationspecialize(BoundSignature boundSignature)static longstatefulSleepingSum(StatefulSleepingSum.State state, double sleepProbability, long sleepDurationMillis, long a, long b)-
Methods inherited from class io.trino.metadata.SqlScalarFunction
getFunctionMetadata, specialize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.metadata.SqlFunction
getFunctionDependencies, getFunctionDependencies
-
-
-
-
Field Detail
-
STATEFUL_SLEEPING_SUM
public static final StatefulSleepingSum STATEFUL_SLEEPING_SUM
-
-
Method Detail
-
specialize
protected ScalarFunctionImplementation specialize(BoundSignature boundSignature)
- Overrides:
specializein classSqlScalarFunction
-
statefulSleepingSum
public static long statefulSleepingSum(StatefulSleepingSum.State state, double sleepProbability, long sleepDurationMillis, long a, long b)
-
-