public class MazeTable extends AbstractTable implements ScannableTable
| Modifier and Type | Method and Description |
|---|---|
static ScannableTable |
generate(int width,
int height,
int seed)
Table function that generates a maze.
|
RelDataType |
getRowType(RelDataTypeFactory typeFactory) |
Enumerable<Object[]> |
scan(DataContext root) |
static ScannableTable |
solve(int width,
int height,
int seed)
Table function that generates a maze with a solution.
|
getJdbcTableType, getStatisticclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetJdbcTableType, getStatisticpublic static ScannableTable generate(int width, int height, int seed)
Called by reflection based on the definition of the user-defined function in the schema.
width - Width of mazeheight - Height of mazeseed - Random number seed, or -1 to create an unseeded randompublic static ScannableTable solve(int width, int height, int seed)
Called by reflection based on the definition of the user-defined function in the schema.
width - Width of mazeheight - Height of mazeseed - Random number seed, or -1 to create an unseeded randompublic RelDataType getRowType(RelDataTypeFactory typeFactory)
getRowType in interface Tablepublic Enumerable<Object[]> scan(DataContext root)
scan in interface ScannableTableCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.