public class MazeTable extends AbstractTable implements ScannableTable
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
height |
(package private) int |
seed |
(package private) boolean |
solution |
(package private) int |
width |
| Modifier | Constructor and Description |
|---|---|
private |
MazeTable(int width,
int height,
int seed,
boolean solution) |
| 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, getStatisticfinal int width
final int height
final int seed
final boolean solution
public 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–2016 The Apache Software Foundation. All rights reserved.