17 package com.mapd.parser.server;
23 import org.apache.calcite.sql.fun.SqlStdOperatorTable;
24 import org.apache.calcite.util.ConversionUtil;
25 import org.apache.commons.pool.PoolableObjectFactory;
26 import org.slf4j.Logger;
27 import org.slf4j.LoggerFactory;
30 import java.util.function.Supplier;
33 final static Logger
HEAVYDBLOGGER = LoggerFactory.getLogger(CalciteParserFactory.class);
36 private final Map<String, ExtensionFunction>
extSigs;
41 new Supplier<HeavyDBSqlOperatorTable>() {
50 "saffron.default.charset", ConversionUtil.NATIVE_UTF16_CHARSET_NAME);
52 "saffron.default.nationalcharset", ConversionUtil.NATIVE_UTF16_CHARSET_NAME);
53 System.setProperty(
"saffron.default.collation.name",
54 ConversionUtil.NATIVE_UTF16_CHARSET_NAME +
"$en_US");
58 final Map<String, ExtensionFunction>
extSigs,
64 this.socket_transport_properties = skT;
94 HEAVYDBLOGGER.debug(
" invalidating object due to max use count");
static final Logger HEAVYDBLOGGER
CalciteParserFactory(String dataDir, final Map< String, ExtensionFunction > extSigs, int dbPort, SockTransportProperties skT)
void updateOperatorTable()
boolean validateObject(Object obj)
void passivateObject(Object obj)
final Supplier< HeavyDBSqlOperatorTable > tableOperatorSupplier
volatile HeavyDBSqlOperatorTable tableOperator
void destroyObject(Object obj)
final Map< String, ExtensionFunction > extSigs
void activateObject(Object obj)
final SockTransportProperties socket_transport_properties