Package dev.frostlake.functions.table
Class Generator
java.lang.Object
dev.frostlake.functions.TableFunction
dev.frostlake.functions.table.Generator
GENERATOR table function - generates rows with sequential numbers
Supports:
- ROWCOUNT => n (generates n rows)
- TIMELIMIT => seconds (generates rows for specified time period)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA positional argument is not one GENERATOR can use, and live answers zero rows rather than refuse.Execute the table function with named argumentsvoidvalidateArgs(Map<String, Object> namedArgs) GENERATOR is the permissive end of the table-function family: it IGNORES what it does not recognise instead of refusing it.Methods inherited from class dev.frostlake.functions.TableFunction
getName
-
Constructor Details
-
Generator
public Generator()
-
-
Method Details
-
execute
A positional argument is not one GENERATOR can use, and live answers zero rows rather than refuse.- Overrides:
executein classTableFunction
-
execute
Description copied from class:TableFunctionExecute the table function with named arguments- Specified by:
executein classTableFunction
-
validateArgs
GENERATOR is the permissive end of the table-function family: it IGNORES what it does not recognise instead of refusing it. Live answers zero rows — not an error — forGENERATOR(), for the positionalGENERATOR(3)and forGENERATOR(NOSUCH => 3)alike, so an argument it cannot use simply leaves the row count unset. Only the values of ROWCOUNT and TIMELIMIT are judged.- Specified by:
validateArgsin classTableFunction
-