Package dev.frostlake.functions.table
Class ResultScan
java.lang.Object
dev.frostlake.functions.TableFunction
dev.frostlake.functions.table.ResultScan
RESULT_SCAN table function - retrieves cached query results by query ID.
SELECT * FROM TABLE(RESULT_SCAN('<query_id>'))
SELECT * FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()))
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecute with positional argument (query ID)Execute the table function with named argumentsvoidvalidateArgs(Map<String, Object> namedArgs) Validate the arguments passed to the functionMethods inherited from class dev.frostlake.functions.TableFunction
execute, getName
-
Constructor Details
-
ResultScan
-
-
Method Details
-
execute
Description copied from class:TableFunctionExecute the table function with named arguments- Specified by:
executein classTableFunction
-
execute
Execute with positional argument (query ID)- Parameters:
queryId- The query ID (UUID string)- Returns:
- ResultSet from the cached query
-
validateArgs
Description copied from class:TableFunctionValidate the arguments passed to the function- Specified by:
validateArgsin classTableFunction
-