public class Smalls extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Smalls.AllTypesFunction
UDF class that provides user-defined functions for each data type.
|
static class |
Smalls.AnotherTableMacroFunctionWithNamedParameters
User-defined table-macro function with named and optional parameters.
|
static class |
Smalls.AwkwardFunction
Example of a UDF class that needs to be instantiated but cannot be.
|
static class |
Smalls.CountArgs0Function
Example of a UDF that has overloaded UDFs (same name, different args).
|
static class |
Smalls.CountArgs1Function
|
static class |
Smalls.CountArgs1NullableFunction
|
static class |
Smalls.CountArgs2Function
|
static class |
Smalls.FibonacciTableFunction
Example of a UDF with non-default constructor.
|
static class |
Smalls.IdentityTableFunction
A table function that returns its input value.
|
static class |
Smalls.IntString
Class with int and String fields.
|
static class |
Smalls.MazeTable
The real MazeTable may be found in example/function.
|
static class |
Smalls.MultipleFunction
UDF class that has multiple methods, some overloaded.
|
static class |
Smalls.MyAbcdeFunction
Example of a UDF with named parameters, some of them optional.
|
static class |
Smalls.MyDeterministicPlusFunction
As
Smalls.MyPlusFunction but declared to be deterministic. |
static class |
Smalls.MyDoubleFunction
Example of a UDF with a static
eval method. |
static class |
Smalls.MyExceptionFunction
User-defined function that declares exceptions.
|
static class |
Smalls.MyIncrement
User-defined function with two arguments.
|
static class |
Smalls.MyLeftFunction
Example of a UDF with named parameters.
|
static class |
Smalls.MyPlusFunction
Example of a UDF with a non-static
eval method,
and named parameters. |
static class |
Smalls.MyPlusInitFunction
As
Smalls.MyPlusFunction but constructor has a
FunctionContext parameter. |
static class |
Smalls.MyStaticSumFunction
Example of a user-defined aggregate function (UDAF), whose methods are
static.
|
static class |
Smalls.MySum3
Example of a user-defined aggregate function that implements a generic
interface.
|
static class |
Smalls.MySumFunction
Example of a user-defined aggregate function (UDAF).
|
static class |
Smalls.MyTableFunction
A table function that returns a
QueryableTable. |
static class |
Smalls.MyThreeParamsSumFunctionWithFilter1
Example of a user-defined aggregate function (UDAF), whose methods are
static.
|
static class |
Smalls.MyThreeParamsSumFunctionWithFilter2
Example of a user-defined aggregate function (UDAF), whose methods are
static.
|
static class |
Smalls.MyToStringFunction
Example of a non-strict UDF.
|
static class |
Smalls.MyTwoParamsSumFunctionFilter1
Example of a user-defined aggregate function (UDAF) with two parameters.
|
static class |
Smalls.MyTwoParamsSumFunctionFilter2
Another example of a user-defined aggregate function (UDAF) with two
parameters.
|
static class |
Smalls.Null4Function
Example of a semi-strict UDF.
|
static class |
Smalls.Null8Function
Example of a picky, semi-strict UDF.
|
static class |
Smalls.SimpleTable
Table with columns (A, B).
|
static class |
Smalls.SimpleTableFunction
A table function that returns a
QueryableTable. |
static class |
Smalls.SimpleTableMacro
Implementation of
TableMacro interface with
Smalls.SimpleTableMacro.apply(java.util.List<?>) method that returns Queryable table. |
static class |
Smalls.StaticTableMacroFunction
User-defined table-macro function whose eval method is static.
|
static class |
Smalls.SumFunctionBadIAdd
User-defined function.
|
static class |
Smalls.TableMacroFunction
User-defined table-macro function.
|
static class |
Smalls.TableMacroFunctionWithNamedParameters
User-defined table-macro function with named and optional parameters.
|
static class |
Smalls.TestStaticTableFunction
A table function that returns a
QueryableTable via a
static method. |
static class |
Smalls.WideProductSale
Table with a lot of columns.
|
static class |
Smalls.WideSaleSchema
Schema containing a
prod table with a lot of columns. |
| 限定符和类型 | 字段和说明 |
|---|---|
static Method |
DUMMY_TABLE_METHOD_WITH_TWO_PARAMS |
static Method |
DYNAMIC_ROW_TYPE_TABLE_METHOD |
static Method |
FIBONACCI_INSTANCE_TABLE_METHOD |
static Method |
FIBONACCI_LIMIT_100_TABLE_METHOD |
static Method |
FIBONACCI_LIMIT_TABLE_METHOD |
static Method |
FIBONACCI_TABLE_METHOD |
static Method |
GENERATE_STRINGS_METHOD |
static Method |
GENERATE_STRINGS_OF_INPUT_MAP_SIZE_METHOD |
static Method |
GENERATE_STRINGS_OF_INPUT_SIZE_METHOD |
static Method |
MAZE_METHOD |
static Method |
MAZE2_METHOD |
static Method |
MAZE3_METHOD |
static Method |
MULTIPLICATION_TABLE_METHOD |
static Method |
MY_PLUS_EVAL_METHOD |
static Method |
MY_PLUS_INIT_EVAL_METHOD |
static Method |
PROCESS_CURSOR_METHOD |
static Method |
PROCESS_CURSORS_METHOD |
static Method |
STR_METHOD |
static Method |
STRING_UNION_METHOD |
static Method |
VIEW_METHOD |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.apache.calcite.schema.ScannableTable |
dummyTableFuncWithTwoParams(long param1,
long param2)
A function that takes 2 param as input.
|
static org.apache.calcite.schema.ScannableTable |
dynamicRowTypeTable(String jsonRowType,
int rowCount) |
static org.apache.calcite.schema.ScannableTable |
fibonacciTable()
A function that generates the Fibonacci sequence.
|
static org.apache.calcite.schema.ScannableTable |
fibonacciTableWithLimit(long limit)
A function that generates the Fibonacci sequence.
|
static org.apache.calcite.schema.ScannableTable |
fibonacciTableWithLimit100()
A function that generates the first 100 terms of the Fibonacci sequence.
|
static org.apache.calcite.schema.QueryableTable |
generateStrings(Integer count)
A function that generates a table that generates a sequence of
Smalls.IntString values. |
static org.apache.calcite.schema.QueryableTable |
generateStringsOfInputMapSize(Map<Integer,Integer> map) |
static org.apache.calcite.schema.QueryableTable |
generateStringsOfInputSize(List<Integer> list) |
static org.apache.calcite.schema.QueryableTable |
multiplicationTable(int ncol,
int nrow,
Integer offset)
A function that generates multiplication table of
ncol columns x
nrow rows. |
static org.apache.calcite.schema.QueryableTable |
processCursor(int offset,
org.apache.calcite.linq4j.Enumerable<Object[]> a)
Table function that adds a number to the first column of input cursor.
|
static org.apache.calcite.schema.QueryableTable |
processCursors(int offset,
org.apache.calcite.linq4j.Enumerable<Object[]> a,
org.apache.calcite.linq4j.Enumerable<Smalls.IntString> b)
A function that sums the second column of first input cursor, second
column of first input and the given int.
|
static org.apache.calcite.schema.TranslatableTable |
str(Object o,
Object p) |
static <T> org.apache.calcite.linq4j.Queryable<T> |
stringUnion(org.apache.calcite.linq4j.Queryable<T> q0,
org.apache.calcite.linq4j.Queryable<T> q1) |
static org.apache.calcite.schema.TranslatableTable |
strView(String s) |
static org.apache.calcite.schema.TranslatableTable |
view(String s) |
public static final Method GENERATE_STRINGS_METHOD
public static final Method GENERATE_STRINGS_OF_INPUT_SIZE_METHOD
public static final Method GENERATE_STRINGS_OF_INPUT_MAP_SIZE_METHOD
public static final Method MAZE_METHOD
public static final Method MAZE2_METHOD
public static final Method MAZE3_METHOD
public static final Method MULTIPLICATION_TABLE_METHOD
public static final Method FIBONACCI_TABLE_METHOD
public static final Method FIBONACCI_LIMIT_100_TABLE_METHOD
public static final Method FIBONACCI_LIMIT_TABLE_METHOD
public static final Method FIBONACCI_INSTANCE_TABLE_METHOD
public static final Method DUMMY_TABLE_METHOD_WITH_TWO_PARAMS
public static final Method DYNAMIC_ROW_TYPE_TABLE_METHOD
public static final Method VIEW_METHOD
public static final Method STR_METHOD
public static final Method STRING_UNION_METHOD
public static final Method PROCESS_CURSOR_METHOD
public static final Method PROCESS_CURSORS_METHOD
public static final Method MY_PLUS_EVAL_METHOD
public static final Method MY_PLUS_INIT_EVAL_METHOD
public static <T> org.apache.calcite.linq4j.Queryable<T> stringUnion(org.apache.calcite.linq4j.Queryable<T> q0,
org.apache.calcite.linq4j.Queryable<T> q1)
public static org.apache.calcite.schema.QueryableTable generateStrings(Integer count)
Smalls.IntString values.public static org.apache.calcite.schema.QueryableTable generateStringsOfInputSize(List<Integer> list)
public static org.apache.calcite.schema.QueryableTable generateStringsOfInputMapSize(Map<Integer,Integer> map)
public static org.apache.calcite.schema.QueryableTable multiplicationTable(int ncol,
int nrow,
Integer offset)
ncol columns x
nrow rows.public static org.apache.calcite.schema.ScannableTable fibonacciTable()
Interesting because it has one column and no arguments, and because it is infinite.
public static org.apache.calcite.schema.ScannableTable fibonacciTableWithLimit100()
Interesting because it has one column and no arguments.
public static org.apache.calcite.schema.ScannableTable dummyTableFuncWithTwoParams(long param1,
long param2)
public static org.apache.calcite.schema.ScannableTable fibonacciTableWithLimit(long limit)
public static org.apache.calcite.schema.ScannableTable dynamicRowTypeTable(String jsonRowType, int rowCount)
public static org.apache.calcite.schema.QueryableTable processCursor(int offset,
org.apache.calcite.linq4j.Enumerable<Object[]> a)
public static org.apache.calcite.schema.QueryableTable processCursors(int offset,
org.apache.calcite.linq4j.Enumerable<Object[]> a,
org.apache.calcite.linq4j.Enumerable<Smalls.IntString> b)
public static org.apache.calcite.schema.TranslatableTable view(String s)
public static org.apache.calcite.schema.TranslatableTable strView(String s)
Copyright © 2012-2023 Apache Software Foundation. All Rights Reserved.