public class SqlLibraryOperatorTableFactory extends Object
SqlOperatorTable opTab =
SqlLibraryOperatorTableFactory.INSTANCE.getOperatorTable(
EnumSet.of(SqlLibrary.ORACLE, SqlLibrary.MYSQL))
To define a new library, add a value to enum SqlLibrary.
To add functions to a library, add the LibraryOperator annotation
to fields that of type SqlOperator, and the library name to its
LibraryOperator.libraries() field.
| Modifier and Type | Field and Description |
|---|---|
static SqlLibraryOperatorTableFactory |
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
SqlOperatorTable |
getOperatorTable(Iterable<SqlLibrary> librarySet)
Returns a SQL operator table that contains operators in the given set of
libraries.
|
SqlOperatorTable |
getOperatorTable(SqlLibrary... libraries)
Returns a SQL operator table that contains operators in the given library
or libraries.
|
public static final SqlLibraryOperatorTableFactory INSTANCE
public SqlOperatorTable getOperatorTable(SqlLibrary... libraries)
public SqlOperatorTable getOperatorTable(Iterable<SqlLibrary> librarySet)
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.