17 package com.mapd.calcite.parser;
22 import org.apache.calcite.linq4j.tree.Expression;
23 import org.apache.calcite.rel.type.RelProtoDataType;
24 import org.apache.calcite.schema.Function;
25 import org.apache.calcite.schema.Schema;
26 import org.apache.calcite.schema.SchemaPlus;
27 import org.apache.calcite.schema.SchemaVersion;
28 import org.apache.calcite.schema.Table;
29 import org.apache.calcite.util.ConversionUtil;
30 import org.slf4j.Logger;
31 import org.slf4j.LoggerFactory;
33 import java.util.Collection;
34 import java.util.Collections;
35 import java.util.HashSet;
39 final static Logger
HEAVYDBLOGGER = LoggerFactory.getLogger(HeavyDBSchema.class);
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");
60 Table table = metaConnect.getTable(string);
66 Set<String> tableSet = metaConnect.getTables();
72 Collection<Function> functionCollection =
new HashSet<Function>();
73 return functionCollection;
78 Set<String> functionSet =
new HashSet<String>();
89 Set<String> hs =
new HashSet<String>();
95 throw new UnsupportedOperationException(
"Not supported yet.");
100 throw new UnsupportedOperationException(
"Not supported yet.");
104 metaConnect.updateMetaData(schema, table);
109 throw new UnsupportedOperationException(
"Not supported yet.");
113 public RelProtoDataType
getType(String arg0) {
114 throw new UnsupportedOperationException(
"Not supported yet.");
119 throw new UnsupportedOperationException(
"Not supported yet.");
Set< String > getSubSchemaNames()
Table getTable(String string)
Schema snapshot(SchemaVersion sv)
SockTransportProperties sock_transport_properties
final MetaConnect metaConnect
Set< String > getTableNames()
Set< String > getTypeNames()
Expression getExpression(SchemaPlus sp, String string)
void updateMetaData(String schema, String table)
Set< String > getFunctionNames()
static final Logger HEAVYDBLOGGER
Schema getSubSchema(String string)
HeavyDBSchema(String dataDir, HeavyDBParser dbParser, int dbPort, HeavyDBUser dbUser, SockTransportProperties skT, String db)
RelProtoDataType getType(String arg0)
Collection< Function > getFunctions(String string)