OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com.mapd.calcite.parser.MapDSchema Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSchema:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSchema:

Public Member Functions

 MapDSchema (String dataDir, MapDParser mp, int mapdPort, MapDUser mapdUser, SockTransportProperties skT)
 
Table getTable (String string)
 
Set< String > getTableNames ()
 
Collection< FunctiongetFunctions (String string)
 
Set< String > getFunctionNames ()
 
Schema getSubSchema (String string)
 
Set< String > getSubSchemaNames ()
 
Expression getExpression (SchemaPlus sp, String string)
 
boolean isMutable ()
 
Schema snapshot (SchemaVersion sv)
 
RelProtoDataType getType (String arg0)
 
Set< String > getTypeNames ()
 

Package Functions

void updateMetaData (String schema, String table)
 

Static Package Attributes

static final Logger MAPDLOGGER = LoggerFactory.getLogger(MapDSchema.class)
 

Private Attributes

final MetaConnect metaConnect
 
SockTransportProperties sock_transport_properties = null
 

Detailed Description

Author
michael

Definition at line 31 of file MapDSchema.java.

Constructor & Destructor Documentation

com.mapd.calcite.parser.MapDSchema.MapDSchema ( String  dataDir,
MapDParser  mp,
int  mapdPort,
MapDUser  mapdUser,
SockTransportProperties  skT 
)
inline

Definition at line 36 of file MapDSchema.java.

References com.mapd.calcite.parser.MapDSchema.metaConnect.

40  {
41  System.setProperty(
42  "saffron.default.charset", ConversionUtil.NATIVE_UTF16_CHARSET_NAME);
43  System.setProperty(
44  "saffron.default.nationalcharset", ConversionUtil.NATIVE_UTF16_CHARSET_NAME);
45  System.setProperty("saffron.default.collation.name",
46  ConversionUtil.NATIVE_UTF16_CHARSET_NAME + "$en_US");
47  metaConnect = new MetaConnect(mapdPort, dataDir, mapdUser, mp, skT);
48  }

Member Function Documentation

Expression com.mapd.calcite.parser.MapDSchema.getExpression ( SchemaPlus  sp,
String  string 
)
inline

Definition at line 86 of file MapDSchema.java.

86  {
87  throw new UnsupportedOperationException("Not supported yet.");
88  }
Set<String> com.mapd.calcite.parser.MapDSchema.getFunctionNames ( )
inline

Definition at line 69 of file MapDSchema.java.

69  {
70  Set<String> functionSet = new HashSet<String>();
71  return functionSet;
72  }
Collection<Function> com.mapd.calcite.parser.MapDSchema.getFunctions ( String  string)
inline

Definition at line 63 of file MapDSchema.java.

63  {
64  Collection<Function> functionCollection = new HashSet<Function>();
65  return functionCollection;
66  }
Schema com.mapd.calcite.parser.MapDSchema.getSubSchema ( String  string)
inline

Definition at line 75 of file MapDSchema.java.

75  {
76  return null;
77  }
Set<String> com.mapd.calcite.parser.MapDSchema.getSubSchemaNames ( )
inline

Definition at line 80 of file MapDSchema.java.

80  {
81  Set<String> hs = new HashSet<String>();
82  return hs;
83  }
Table com.mapd.calcite.parser.MapDSchema.getTable ( String  string)
inline

Definition at line 51 of file MapDSchema.java.

Referenced by com.mapd.calcite.parser.MapDParser.queryToSqlNode(), and com.mapd.calcite.parser.MapDParser.resolveSelectIdentifiers().

51  {
52  Table table = metaConnect.getTable(string);
53  return table;
54  }

+ Here is the caller graph for this function:

Set<String> com.mapd.calcite.parser.MapDSchema.getTableNames ( )
inline

Definition at line 57 of file MapDSchema.java.

57  {
58  Set<String> tableSet = metaConnect.getTables();
59  return tableSet;
60  }
RelProtoDataType com.mapd.calcite.parser.MapDSchema.getType ( String  arg0)
inline

Definition at line 105 of file MapDSchema.java.

105  {
106  throw new UnsupportedOperationException("Not supported yet.");
107  }
Set<String> com.mapd.calcite.parser.MapDSchema.getTypeNames ( )
inline

Definition at line 110 of file MapDSchema.java.

110  {
111  throw new UnsupportedOperationException("Not supported yet.");
112  }
boolean com.mapd.calcite.parser.MapDSchema.isMutable ( )
inline

Definition at line 91 of file MapDSchema.java.

91  {
92  throw new UnsupportedOperationException("Not supported yet.");
93  }
Schema com.mapd.calcite.parser.MapDSchema.snapshot ( SchemaVersion  sv)
inline

Definition at line 100 of file MapDSchema.java.

100  {
101  throw new UnsupportedOperationException("Not supported yet.");
102  }
void com.mapd.calcite.parser.MapDSchema.updateMetaData ( String  schema,
String  table 
)
inlinepackage

Definition at line 95 of file MapDSchema.java.

95  {
96  metaConnect.updateMetaData(schema, table);
97  }

Member Data Documentation

final Logger com.mapd.calcite.parser.MapDSchema.MAPDLOGGER = LoggerFactory.getLogger(MapDSchema.class)
staticpackage

Definition at line 32 of file MapDSchema.java.

final MetaConnect com.mapd.calcite.parser.MapDSchema.metaConnect
private

Definition at line 34 of file MapDSchema.java.

Referenced by com.mapd.calcite.parser.MapDSchema.MapDSchema().

SockTransportProperties com.mapd.calcite.parser.MapDSchema.sock_transport_properties = null
private

Definition at line 35 of file MapDSchema.java.


The documentation for this class was generated from the following file: