public final class Sequences extends Object
DeriveFields when running distributed.| Modifier and Type | Method and Description |
|---|---|
static ScalarValuedFunction |
sequence(BigDecimal startValue,
BigDecimal stepSize)
Creates a sequence function that increments/decrements its value by the specified step
size with each invocation.
|
static ScalarValuedFunction |
sequence(double startValue,
double stepSize)
Creates a sequence function that increments/decrements its value by the specified step
size with each invocation.
|
static ScalarValuedFunction |
sequence(float startValue,
float stepSize)
Creates a sequence function that increments/decrements its value by the specified step
size with each invocation.
|
static ScalarValuedFunction |
sequence(int startValue,
int stepSize)
Creates a sequence function that increments/decrements its value by the specified step
size with each invocation.
|
static ScalarValuedFunction |
sequence(long startValue,
long stepSize)
Creates a sequence function that increments/decrements its value by the specified step
size with each invocation.
|
static ScalarValuedFunction |
sequence(ScalarTokenType resultType)
Creates a sequence function that increments the value with each invocation.
|
static ScalarValuedFunction |
sequence(ScalarTokenType resultType,
BigDecimal startValue,
BigDecimal stepSize)
Creates a sequence function that increments the value with each invocation.
|
public static ScalarValuedFunction sequence(ScalarTokenType resultType)
DeriveFields when
running distributed. You must disable distribution of DeriveFields; otherwise
each partition will see the same sequence.resultType - the type of the value to producepublic static ScalarValuedFunction sequence(ScalarTokenType resultType, BigDecimal startValue, BigDecimal stepSize)
DeriveFields when
running distributed. You must disable distribution of DeriveFields; otherwise
each partition will see the same sequence.resultType - the type of the value to producestartValue - the initial value to returnstepSize - the step sizepublic static ScalarValuedFunction sequence(int startValue, int stepSize)
DeriveFields when
running distributed. You must disable distribution of DeriveFields; otherwise
each partition will see the same sequence.startValue - the initial value to returnstepSize - the step sizepublic static ScalarValuedFunction sequence(long startValue, long stepSize)
DeriveFields when
running distributed. You must disable distribution of DeriveFields; otherwise
each partition will see the same sequence.startValue - the initial value to returnstepSize - the step sizepublic static ScalarValuedFunction sequence(float startValue, float stepSize)
DeriveFields when
running distributed. You must disable distribution of DeriveFields; otherwise
each partition will see the same sequence.startValue - the initial value to returnstepSize - the step sizepublic static ScalarValuedFunction sequence(double startValue, double stepSize)
DeriveFields when
running distributed. You must disable distribution of DeriveFields; otherwise
each partition will see the same sequence.startValue - the initial value to returnstepSize - the step sizepublic static ScalarValuedFunction sequence(BigDecimal startValue, BigDecimal stepSize)
DeriveFields when
running distributed. You must disable distribution of DeriveFields; otherwise
each partition will see the same sequence.startValue - the initial value to returnstepSize - the step sizeCopyright © 2016 Actian Corporation. All rights reserved.