Package dev.frostlake.demo
Class LateralJoinDemo
java.lang.Object
dev.frostlake.demo.AbstractDemo
dev.frostlake.demo.LateralJoinDemo
Demonstration of LATERAL JOIN functionality in Frostlake SQL Engine
LATERAL allows subqueries to reference columns from the outer query,
enabling correlated subqueries in the FROM clause.
-
Field Summary
Fields inherited from class dev.frostlake.demo.AbstractDemo
engine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGet the demo title to display at the startprotected intGet maximum number of rows to display in result sets Subclasses can override to show more or fewer rowsstatic voidprotected voidrunDemo()Main entry point - subclasses should implement this to define their demo logicMethods inherited from class dev.frostlake.demo.AbstractDemo
execute, getRowCount, printQuery, printResultSet, printResultSet, printSectionHeader, printSeparator, printSubsection, printSuccess, printTable, printTitle, setup, setupDatabase, shutdown
-
Constructor Details
-
LateralJoinDemo
public LateralJoinDemo()
-
-
Method Details
-
main
-
getDemoTitle
Description copied from class:AbstractDemoGet the demo title to display at the start- Specified by:
getDemoTitlein classAbstractDemo- Returns:
- the title
AbstractDemo.execute()prints before running the demo
-
runDemo
Description copied from class:AbstractDemoMain entry point - subclasses should implement this to define their demo logic- Specified by:
runDemoin classAbstractDemo- Throws:
Exception- if any demo step fails;AbstractDemo.execute()reports it and still shuts down
-
getMaxDisplayRows
protected int getMaxDisplayRows()Description copied from class:AbstractDemoGet maximum number of rows to display in result sets Subclasses can override to show more or fewer rows- Overrides:
getMaxDisplayRowsin classAbstractDemo- Returns:
- the row display cap, 100 unless overridden
-