GenerateIdentityValues Non-Deterministic Leaf Expression¶
GenerateIdentityValues is a non-deterministic LeafExpression (Spark SQL).
GenerateIdentityValues uses PartitionIdentityValueGenerator to generate the next IDENTITY value.
Creating Instance¶
GenerateIdentityValues takes the following to be created:
GenerateIdentityValues is created using apply utility.
Create GenerateIdentityValues¶
apply creates a GenerateIdentityValues with a new PartitionIdentityValueGenerator with the given input arguments.
apply is used when:
IdentityColumnis requested to createIdentityColumnGenerationExpr
initializeInternal¶
Nondeterministic
initializeInternal is part of the Nondeterministic (Spark SQL) abstraction.
initializeInternal requests this PartitionIdentityValueGenerator to initialize with the given partitionIndex.
evalInternal¶
Nondeterministic
evalInternal is part of the Nondeterministic (Spark SQL) abstraction.
evalInternal requests this PartitionIdentityValueGenerator for the next IDENTITY value.
Nullable¶
nullable is always false.
Generating Java Source Code for Code-Generated Expression Evaluation¶
Expression
doGenCode is part of the Expression (Spark SQL) abstraction.
doGenCode generates a Java source code with this PartitionIdentityValueGenerator to be initialized (for the current partitionIndex) followed by requesting the next IDENTITY value.