OmniSciDB
a5dc49c757
|
Public Member Functions | |
CalciteServerHandler (int dbPort, String dataDir, String extensionFunctionsAstFile, SockTransportProperties skT, String udfAstFile) | |
void | ping () throws TException |
TPlanResult | process (String user, String session, String catalog, String queryText, TQueryParsingOption queryParsingOption, TOptimizationOption optimizationOption, List< TRestriction > trestrictions) throws InvalidParseRequest, TException |
void | shutdown () throws TException |
String | getExtensionFunctionWhitelist () |
String | getUserDefinedFunctionWhitelist () |
String | getRuntimeExtensionFunctionWhitelist () |
void | updateMetadata (String catalog, String table) throws TException |
List< TCompletionHint > | getCompletionHints (String user, String session, String catalog, List< String > visible_tables, String sql, int cursor) throws TException |
void | setRuntimeExtensionFunctions (List< TUserDefinedFunction > udfs, List< TUserDefinedTableFunction > udtfs, boolean isruntime) |
Package Functions | |
void | setServer (TServer s) |
Package Attributes | |
Map< String, ExtensionFunction > | udfRTSigs = null |
Map< String, ExtensionFunction > | udtfSigs = null |
Static Package Attributes | |
static final Logger | HEAVYDBLOGGER = LoggerFactory.getLogger(CalciteServerHandler.class) |
Static Private Member Functions | |
static ExtensionFunction | toExtensionFunction (TUserDefinedFunction udf, boolean isruntime) |
static ExtensionFunction | toExtensionFunction (TUserDefinedTableFunction udtf, boolean isruntime) |
static Comparable<?> | getDefaultValueForAnnot (String annot, TExtArgumentType input_type) |
static ExtensionFunction.ExtArgumentType | toExtArgumentType (TExtArgumentType type) |
static TCompletionHintType | hintTypeToThrift (final SqlMonikerType type) |
Private Attributes | |
TServer | server |
final int | dbPort |
volatile long | callCount |
final GenericObjectPool | parserPool |
final CalciteParserFactory | calciteParserFactory |
final String | extSigsJson |
final String | udfSigsJson |
String | udfRTSigsJson = "" |
SockTransportProperties | skT |
Map< String, ExtensionFunction > | extSigs = null |
String | dataDir |
Definition at line 67 of file CalciteServerHandler.java.
|
inline |
Definition at line 94 of file CalciteServerHandler.java.
References com.mapd.parser.server.CalciteServerHandler.calciteParserFactory, com.mapd.parser.server.CalciteServerHandler.dataDir, com.mapd.parser.server.CalciteServerHandler.dbPort, com.mapd.parser.server.CalciteServerHandler.extSigs, com.mapd.parser.server.CalciteServerHandler.extSigsJson, and com.mapd.parser.server.CalciteServerHandler.udfSigsJson.
|
inline |
Definition at line 341 of file CalciteServerHandler.java.
References com.mapd.parser.server.CalciteServerHandler.callCount, com.mapd.parser.server.CalciteServerHandler.dbPort, com.mapd.parser.server.CalciteServerHandler.hintTypeToThrift(), run_benchmark_import.parser, com.mapd.parser.server.CalciteServerHandler.parserPool, and run_benchmark_import.result.
|
inlinestaticprivate |
Definition at line 515 of file CalciteServerHandler.java.
References Bool, Double, Float, Int16, Int32, Int64, Int8, and Integer.
Referenced by com.mapd.parser.server.CalciteServerHandler.toExtensionFunction().
|
inline |
Definition at line 291 of file CalciteServerHandler.java.
|
inline |
Definition at line 301 of file CalciteServerHandler.java.
|
inline |
Definition at line 296 of file CalciteServerHandler.java.
|
inlinestaticprivate |
Definition at line 720 of file CalciteServerHandler.java.
Referenced by com.mapd.parser.server.CalciteServerHandler.getCompletionHints().
|
inline |
Definition at line 135 of file CalciteServerHandler.java.
|
inline |
Definition at line 140 of file CalciteServerHandler.java.
References com.mapd.parser.server.CalciteServerHandler.callCount, com.mapd.parser.server.CalciteServerHandler.dbPort, run_benchmark_import.parser, com.mapd.parser.server.CalciteServerHandler.parserPool, run_benchmark_import.res, run_benchmark_import.result, and toString().
|
inline |
Definition at line 390 of file CalciteServerHandler.java.
References com.mapd.parser.server.CalciteServerHandler.extSigs, setup.name, com.mapd.parser.server.CalciteServerHandler.toExtensionFunction(), com.mapd.parser.server.CalciteServerHandler.udfRTSigs, com.mapd.parser.server.CalciteServerHandler.udfRTSigsJson, and com.mapd.parser.server.CalciteServerHandler.udtfSigs.
|
inlinepackage |
Definition at line 305 of file CalciteServerHandler.java.
References com.mapd.parser.server.CalciteServerHandler.server.
|
inline |
Definition at line 284 of file CalciteServerHandler.java.
|
inlinestaticprivate |
Definition at line 541 of file CalciteServerHandler.java.
References ArrayBool, ArrayDouble, ArrayFloat, ArrayInt16, ArrayInt32, ArrayInt64, ArrayInt8, ArrayTextEncodingDict, ArrayTextEncodingNone, Bool, ColumnArrayBool, ColumnArrayDouble, ColumnArrayFloat, ColumnArrayInt16, ColumnArrayInt32, ColumnArrayInt64, ColumnArrayInt8, ColumnArrayTextEncodingDict, ColumnArrayTextEncodingNone, ColumnBool, ColumnDouble, ColumnFloat, ColumnGeoLineString, ColumnGeoMultiLineString, ColumnGeoMultiPoint, ColumnGeoMultiPolygon, ColumnGeoPoint, ColumnGeoPolygon, ColumnInt16, ColumnInt32, ColumnInt64, ColumnInt8, ColumnListArrayBool, ColumnListArrayDouble, ColumnListArrayFloat, ColumnListArrayInt16, ColumnListArrayInt32, ColumnListArrayInt64, ColumnListArrayInt8, ColumnListArrayTextEncodingDict, ColumnListArrayTextEncodingNone, ColumnListBool, ColumnListDouble, ColumnListFloat, ColumnListGeoLineString, ColumnListGeoMultiLineString, ColumnListGeoMultiPoint, ColumnListGeoMultiPolygon, ColumnListGeoPoint, ColumnListGeoPolygon, ColumnListInt16, ColumnListInt32, ColumnListInt64, ColumnListInt8, ColumnListTextEncodingDict, ColumnListTextEncodingNone, ColumnTextEncodingDict, ColumnTextEncodingNone, ColumnTimestamp, Cursor, Double, Float, Int16, Int32, Int64, Int8, PBool, PDouble, PFloat, PInt16, PInt32, PInt64, PInt8, run_benchmark_import.type, and Void.
Referenced by com.mapd.parser.server.CalciteServerHandler.toExtensionFunction().
|
inlinestaticprivate |
Definition at line 439 of file CalciteServerHandler.java.
References com.mapd.parser.server.ExtensionFunction.annotations, run_benchmark_import.args, and com.mapd.parser.server.CalciteServerHandler.toExtArgumentType().
Referenced by com.mapd.parser.server.CalciteServerHandler.setRuntimeExtensionFunctions().
|
inlinestaticprivate |
Definition at line 452 of file CalciteServerHandler.java.
References run_benchmark_import.args, com.mapd.parser.server.CalciteServerHandler.getDefaultValueForAnnot(), setup.name, and com.mapd.parser.server.CalciteServerHandler.toExtArgumentType().
|
inline |
Definition at line 311 of file CalciteServerHandler.java.
References com.mapd.parser.server.CalciteServerHandler.callCount, run_benchmark_import.parser, and com.mapd.parser.server.CalciteServerHandler.parserPool.
|
private |
Definition at line 77 of file CalciteServerHandler.java.
Referenced by com.mapd.parser.server.CalciteServerHandler.CalciteServerHandler().
|
private |
Definition at line 73 of file CalciteServerHandler.java.
Referenced by com.mapd.parser.server.CalciteServerHandler.getCompletionHints(), com.mapd.parser.server.CalciteServerHandler.process(), and com.mapd.parser.server.CalciteServerHandler.updateMetadata().
|
private |
Definition at line 90 of file CalciteServerHandler.java.
Referenced by com.mapd.parser.server.CalciteServerHandler.CalciteServerHandler().
|
private |
Definition at line 71 of file CalciteServerHandler.java.
Referenced by com.mapd.parser.server.CalciteServerHandler.CalciteServerHandler(), com.mapd.parser.server.CalciteServerHandler.getCompletionHints(), and com.mapd.parser.server.CalciteServerHandler.process().
|
private |
Definition at line 89 of file CalciteServerHandler.java.
Referenced by com.mapd.parser.server.CalciteServerHandler.CalciteServerHandler(), and com.mapd.parser.server.CalciteServerHandler.setRuntimeExtensionFunctions().
|
private |
Definition at line 79 of file CalciteServerHandler.java.
Referenced by com.mapd.parser.server.CalciteServerHandler.CalciteServerHandler().
|
staticpackage |
Definition at line 68 of file CalciteServerHandler.java.
|
private |
Definition at line 75 of file CalciteServerHandler.java.
Referenced by com.mapd.parser.server.CalciteServerHandler.getCompletionHints(), com.mapd.parser.server.CalciteServerHandler.process(), and com.mapd.parser.server.CalciteServerHandler.updateMetadata().
|
private |
Definition at line 69 of file CalciteServerHandler.java.
Referenced by com.mapd.parser.server.CalciteServerHandler.setServer().
|
private |
Definition at line 88 of file CalciteServerHandler.java.
|
package |
Definition at line 84 of file CalciteServerHandler.java.
Referenced by com.mapd.parser.server.CalciteServerHandler.setRuntimeExtensionFunctions().
|
private |
Definition at line 83 of file CalciteServerHandler.java.
Referenced by com.mapd.parser.server.CalciteServerHandler.setRuntimeExtensionFunctions().
|
private |
Definition at line 81 of file CalciteServerHandler.java.
Referenced by com.mapd.parser.server.CalciteServerHandler.CalciteServerHandler().
|
package |
Definition at line 86 of file CalciteServerHandler.java.
Referenced by com.mapd.parser.server.CalciteServerHandler.setRuntimeExtensionFunctions().