public enum SqlLibrary extends Enum<SqlLibrary>
Typically, such collections are associated with a particular dialect or
database. For example, ORACLE is a collection of functions
that are in the Oracle database but not the SQL standard.
In SqlLibraryOperatorTableFactory this annotation is applied to
function definitions to include them in a particular library. It allows
an operator to belong to more than one library.
LibraryOperator| Enum Constant and Description |
|---|
BIG_QUERY
A collection of operators that are in Google BigQuery but not in standard
SQL.
|
HIVE
A collection of operators that are in Apache Hive but not in standard
SQL.
|
MYSQL
A collection of operators that are in MySQL but not in standard SQL.
|
ORACLE
A collection of operators that are in Oracle but not in standard SQL.
|
POSTGRESQL
A collection of operators that are in PostgreSQL but not in standard
SQL.
|
SPARK
A collection of operators that are in Apache Spark but not in standard
SQL.
|
SPATIAL
Geospatial operators.
|
STANDARD
The standard operators.
|
| Modifier and Type | Field and Description |
|---|---|
String |
abbrev
Abbreviation for the library used in SQL reference.
|
String |
fun
Name of this library when it appears in the connect string;
see
CalciteConnectionProperty.FUN. |
static Map<String,SqlLibrary> |
MAP |
| Modifier and Type | Method and Description |
|---|---|
static @Nullable SqlLibrary |
of(String name)
Looks up a value.
|
static List<SqlLibrary> |
parse(String libraryNameList)
Parses a comma-separated string such as "standard,oracle".
|
static SqlLibrary |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SqlLibrary[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SqlLibrary STANDARD
public static final SqlLibrary SPATIAL
public static final SqlLibrary BIG_QUERY
public static final SqlLibrary HIVE
public static final SqlLibrary MYSQL
public static final SqlLibrary ORACLE
public static final SqlLibrary POSTGRESQL
public static final SqlLibrary SPARK
public final String abbrev
public final String fun
CalciteConnectionProperty.FUN.public static final Map<String,SqlLibrary> MAP
public static SqlLibrary[] values()
for (SqlLibrary c : SqlLibrary.values()) System.out.println(c);
public static SqlLibrary valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static @Nullable SqlLibrary of(String name)
public static List<SqlLibrary> parse(String libraryNameList)
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.