public final class Sequences extends Object
DeriveFields
when running distributed.Modifier and Type | Method and Description |
---|---|
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.
|
static ScalarValuedFunction |
sequenceDouble(double startValue,
double stepSize)
Creates a sequence function that increments/decrements its value by the specified step
size with each invocation.
|
static ScalarValuedFunction |
sequenceFloat(float startValue,
float stepSize)
Creates a sequence function that increments/decrements its value by the specified step
size with each invocation.
|
static ScalarValuedFunction |
sequenceInteger(int startValue,
int stepSize)
Creates a sequence function that increments/decrements its value by the specified step
size with each invocation.
|
static ScalarValuedFunction |
sequenceLong(long startValue,
long stepSize)
Creates a sequence function that increments/decrements its value by the specified step
size with each invocation.
|
static ScalarValuedFunction |
sequenceMoney(BigDecimal startValue,
BigDecimal stepSize)
Creates a sequence function that increments/decrements its value by the specified step
size with each invocation.
|
static ScalarValuedFunction |
sequenceNumeric(BigDecimal startValue,
BigDecimal stepSize)
Creates a sequence function that increments/decrements its value by the specified step
size 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 sequenceInteger(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 sequenceLong(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 sequenceFloat(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 sequenceDouble(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 sequenceNumeric(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 sizepublic static ScalarValuedFunction sequenceMoney(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 © 2024 Actian Corporation. All rights reserved.