OmniSciDB
a5dc49c757
|
Public Member Functions | |
MetaConnect (int dbPort, String dataDir, HeavyDBUser currentHeavyDBUser, HeavyDBParser parser, SockTransportProperties skT, String db) | |
MetaConnect (int dbPort, String dataDir, HeavyDBUser currentHeavyDBUser, HeavyDBParser parser, SockTransportProperties skT) | |
List< String > | getDatabases () |
Table | getTable (String tableName) |
Set< String > | getTables () |
TTableDetails | get_table_details (String tableName) |
void | updateMetaData (String schema, String table) |
Static Public Member Functions | |
static final int | get_physical_cols (int type) |
static final boolean | is_geometry (int type) |
Package Functions | |
String | getCatalogFileName (String catalog) |
Static Package Attributes | |
static final Logger | HEAVYDBLOGGER = LoggerFactory.getLogger(MetaConnect.class) |
Private Member Functions | |
void | connectToCatalog (String catalog) |
void | disconnectFromCatalog () |
void | connectToDBCatalog () |
Set< String > | getTables_SQL () |
TTableDetails | get_table_detail_SQL (String tableName) |
TTableDetails | get_table_detail_JSON (String tableName) throws IOException, RuntimeException |
int | getTableId (String tableName) |
boolean | isView (String tableName) |
String | getViewSql (String tableName) |
String | getViewSqlViaSql (int tableId) |
TDatumType | typeToThrift (int type) |
TEncodingType | encodingToThrift (int comp) |
void | populateDatabases () |
Set< String > | getDatabases_SQL () |
Private Attributes | |
final String | dataDir |
final String | default_db |
final HeavyDBUser | currentUser |
final int | dbPort |
Connection | catConn |
final HeavyDBParser | parser |
final SockTransportProperties | sock_transport_properties |
Static Private Attributes | |
static final int | KBOOLEAN = 1 |
static final int | KCHAR = 2 |
static final int | KVARCHAR = 3 |
static final int | KNUMERIC = 4 |
static final int | KDECIMAL = 5 |
static final int | KINT = 6 |
static final int | KSMALLINT = 7 |
static final int | KFLOAT = 8 |
static final int | KDOUBLE = 9 |
static final int | KTIME = 10 |
static final int | KTIMESTAMP = 11 |
static final int | KBIGINT = 12 |
static final int | KTEXT = 13 |
static final int | KDATE = 14 |
static final int | KARRAY = 15 |
static final int | KINTERVAL_DAY_TIME = 16 |
static final int | KINTERVAL_YEAR_MONTH = 17 |
static final int | KPOINT = 18 |
static final int | KLINESTRING = 19 |
static final int | KPOLYGON = 20 |
static final int | KMULTIPOLYGON = 21 |
static final int | KTINYINT = 22 |
static final int | KMULTILINESTRING = 30 |
static final int | KMULTIPOINT = 31 |
static final String | CATALOG_DIR_NAME = "catalogs" |
static volatile Map< String, Set< String > > | DATABASE_TO_TABLES |
static volatile Map< List < String >, Table > | DB_TABLE_DETAILS |
Definition at line 66 of file MetaConnect.java.
|
inline |
Definition at line 107 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.currentUser, com.mapd.metadata.MetaConnect.DATABASE_TO_TABLES, com.mapd.metadata.MetaConnect.dataDir, com.mapd.metadata.MetaConnect.dbPort, com.mapd.metadata.MetaConnect.parser, and com.mapd.metadata.MetaConnect.populateDatabases().
|
inline |
Definition at line 138 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.dataDir, com.mapd.metadata.MetaConnect.dbPort, and com.mapd.metadata.MetaConnect.parser.
|
inlineprivate |
Definition at line 154 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.CATALOG_DIR_NAME, com.mapd.metadata.MetaConnect.catConn, com.mapd.metadata.MetaConnect.dataDir, and com.mapd.metadata.MetaConnect.getCatalogFileName().
Referenced by com.mapd.metadata.MetaConnect.connectToDBCatalog(), and com.mapd.metadata.MetaConnect.populateDatabases().
|
inlineprivate |
Definition at line 202 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.connectToCatalog(), and com.mapd.metadata.MetaConnect.default_db.
Referenced by com.mapd.metadata.MetaConnect.get_table_details(), com.mapd.metadata.MetaConnect.getTables(), com.mapd.metadata.MetaConnect.getTables_SQL(), and com.mapd.metadata.MetaConnect.getViewSql().
|
inlineprivate |
Definition at line 191 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.dataDir.
Referenced by com.mapd.metadata.MetaConnect.get_table_details(), com.mapd.metadata.MetaConnect.getTables(), com.mapd.metadata.MetaConnect.getTables_SQL(), com.mapd.metadata.MetaConnect.getViewSql(), and com.mapd.metadata.MetaConnect.populateDatabases().
|
inlineprivate |
Definition at line 823 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.get_table_detail_JSON(), and com.mapd.metadata.MetaConnect.get_table_detail_SQL().
|
inlinestatic |
Definition at line 385 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.KLINESTRING, com.mapd.metadata.MetaConnect.KMULTILINESTRING, com.mapd.metadata.MetaConnect.KMULTIPOINT, com.mapd.metadata.MetaConnect.KMULTIPOLYGON, com.mapd.metadata.MetaConnect.KPOINT, and com.mapd.metadata.MetaConnect.KPOLYGON.
Referenced by com.mapd.metadata.MetaConnect.get_table_detail_JSON(), and com.mapd.metadata.MetaConnect.get_table_detail_SQL().
|
inlineprivate |
Definition at line 522 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.CATALOG_DIR_NAME, com.mapd.metadata.MetaConnect.dataDir, com.mapd.metadata.MetaConnect.default_db, com.mapd.metadata.MetaConnect.encodingToThrift(), com.mapd.metadata.MetaConnect.get_physical_cols(), com.mapd.metadata.MetaConnect.is_geometry(), com.mapd.metadata.MetaConnect.KARRAY, and com.mapd.metadata.MetaConnect.typeToThrift().
Referenced by com.mapd.metadata.MetaConnect.get_table_detail_SQL().
|
inlineprivate |
Definition at line 409 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.default_db, com.mapd.metadata.MetaConnect.encodingToThrift(), com.mapd.metadata.MetaConnect.get_physical_cols(), com.mapd.metadata.MetaConnect.get_table_detail_JSON(), com.mapd.metadata.MetaConnect.getTableId(), com.mapd.metadata.MetaConnect.getViewSqlViaSql(), com.mapd.metadata.MetaConnect.is_geometry(), com.mapd.metadata.MetaConnect.isView(), com.mapd.metadata.MetaConnect.KARRAY, and com.mapd.metadata.MetaConnect.typeToThrift().
Referenced by com.mapd.metadata.MetaConnect.get_table_details().
|
inline |
Definition at line 350 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.connectToDBCatalog(), com.mapd.metadata.MetaConnect.dbPort, com.mapd.metadata.MetaConnect.default_db, com.mapd.metadata.MetaConnect.disconnectFromCatalog(), and com.mapd.metadata.MetaConnect.get_table_detail_SQL().
Referenced by com.mapd.metadata.MetaConnect.getTable().
|
inlinepackage |
Definition at line 177 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.CATALOG_DIR_NAME, and com.mapd.metadata.MetaConnect.dataDir.
Referenced by com.mapd.metadata.MetaConnect.connectToCatalog().
|
inline |
Definition at line 146 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.DATABASE_TO_TABLES.
Referenced by com.mapd.calcite.parser.HeavyDBParser.getPlanner().
|
inlineprivate |
Definition at line 899 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.populateDatabases().
|
inline |
Definition at line 206 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.default_db, com.mapd.metadata.MetaConnect.get_table_details(), com.mapd.metadata.MetaConnect.getViewSql(), and com.mapd.metadata.MetaConnect.parser.
|
inlineprivate |
Definition at line 632 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.dataDir, and com.mapd.metadata.MetaConnect.default_db.
Referenced by com.mapd.metadata.MetaConnect.get_table_detail_SQL(), and com.mapd.metadata.MetaConnect.getViewSql().
|
inline |
Definition at line 235 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.connectToDBCatalog(), com.mapd.metadata.MetaConnect.dbPort, com.mapd.metadata.MetaConnect.default_db, com.mapd.metadata.MetaConnect.disconnectFromCatalog(), and com.mapd.metadata.MetaConnect.getTables_SQL().
|
inlineprivate |
Definition at line 287 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.CATALOG_DIR_NAME, com.mapd.metadata.MetaConnect.connectToDBCatalog(), com.mapd.metadata.MetaConnect.dataDir, com.mapd.metadata.MetaConnect.default_db, and com.mapd.metadata.MetaConnect.disconnectFromCatalog().
Referenced by com.mapd.metadata.MetaConnect.getTables().
|
inlineprivate |
Definition at line 700 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.connectToDBCatalog(), com.mapd.metadata.MetaConnect.dbPort, com.mapd.metadata.MetaConnect.default_db, com.mapd.metadata.MetaConnect.disconnectFromCatalog(), com.mapd.metadata.MetaConnect.getTableId(), and com.mapd.metadata.MetaConnect.getViewSqlViaSql().
Referenced by com.mapd.metadata.MetaConnect.getTable().
|
inlineprivate |
Definition at line 744 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.get_table_detail_SQL(), and com.mapd.metadata.MetaConnect.getViewSql().
|
inlinestatic |
Definition at line 404 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.KLINESTRING, com.mapd.metadata.MetaConnect.KMULTILINESTRING, com.mapd.metadata.MetaConnect.KMULTIPOINT, com.mapd.metadata.MetaConnect.KMULTIPOLYGON, com.mapd.metadata.MetaConnect.KPOINT, and com.mapd.metadata.MetaConnect.KPOLYGON.
Referenced by com.mapd.metadata.MetaConnect.get_table_detail_JSON(), and com.mapd.metadata.MetaConnect.get_table_detail_SQL().
|
inlineprivate |
Definition at line 676 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.get_table_detail_SQL().
|
inlineprivate |
Definition at line 846 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.connectToCatalog(), com.mapd.metadata.MetaConnect.dbPort, com.mapd.metadata.MetaConnect.disconnectFromCatalog(), and com.mapd.metadata.MetaConnect.getDatabases_SQL().
Referenced by com.mapd.metadata.MetaConnect.MetaConnect().
|
inlineprivate |
Definition at line 773 of file MetaConnect.java.
References com.mapd.metadata.MetaConnect.KBIGINT, com.mapd.metadata.MetaConnect.KBOOLEAN, com.mapd.metadata.MetaConnect.KCHAR, com.mapd.metadata.MetaConnect.KDATE, com.mapd.metadata.MetaConnect.KDECIMAL, com.mapd.metadata.MetaConnect.KDOUBLE, com.mapd.metadata.MetaConnect.KFLOAT, com.mapd.metadata.MetaConnect.KINT, com.mapd.metadata.MetaConnect.KINTERVAL_DAY_TIME, com.mapd.metadata.MetaConnect.KINTERVAL_YEAR_MONTH, com.mapd.metadata.MetaConnect.KLINESTRING, com.mapd.metadata.MetaConnect.KMULTILINESTRING, com.mapd.metadata.MetaConnect.KMULTIPOINT, com.mapd.metadata.MetaConnect.KMULTIPOLYGON, com.mapd.metadata.MetaConnect.KNUMERIC, com.mapd.metadata.MetaConnect.KPOINT, com.mapd.metadata.MetaConnect.KPOLYGON, com.mapd.metadata.MetaConnect.KSMALLINT, com.mapd.metadata.MetaConnect.KTEXT, com.mapd.metadata.MetaConnect.KTIME, com.mapd.metadata.MetaConnect.KTIMESTAMP, com.mapd.metadata.MetaConnect.KTINYINT, and com.mapd.metadata.MetaConnect.KVARCHAR.
Referenced by com.mapd.metadata.MetaConnect.get_table_detail_JSON(), and com.mapd.metadata.MetaConnect.get_table_detail_SQL().
|
inline |
Definition at line 925 of file MetaConnect.java.
|
staticprivate |
Definition at line 100 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.connectToCatalog(), com.mapd.metadata.MetaConnect.get_table_detail_JSON(), com.mapd.metadata.MetaConnect.getCatalogFileName(), and com.mapd.metadata.MetaConnect.getTables_SQL().
|
private |
Definition at line 72 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.connectToCatalog().
|
private |
Definition at line 70 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.MetaConnect().
|
staticprivate |
Definition at line 101 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.getDatabases(), and com.mapd.metadata.MetaConnect.MetaConnect().
|
private |
Definition at line 68 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.connectToCatalog(), com.mapd.metadata.MetaConnect.disconnectFromCatalog(), com.mapd.metadata.MetaConnect.get_table_detail_JSON(), com.mapd.metadata.MetaConnect.getCatalogFileName(), com.mapd.metadata.MetaConnect.getTableId(), com.mapd.metadata.MetaConnect.getTables_SQL(), and com.mapd.metadata.MetaConnect.MetaConnect().
|
staticprivate |
Definition at line 103 of file MetaConnect.java.
|
private |
|
private |
Definition at line 69 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.connectToDBCatalog(), com.mapd.metadata.MetaConnect.get_table_detail_JSON(), com.mapd.metadata.MetaConnect.get_table_detail_SQL(), com.mapd.metadata.MetaConnect.get_table_details(), com.mapd.metadata.MetaConnect.getTable(), com.mapd.metadata.MetaConnect.getTableId(), com.mapd.metadata.MetaConnect.getTables(), com.mapd.metadata.MetaConnect.getTables_SQL(), and com.mapd.metadata.MetaConnect.getViewSql().
|
staticpackage |
Definition at line 67 of file MetaConnect.java.
|
staticprivate |
Definition at line 89 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.get_table_detail_JSON(), and com.mapd.metadata.MetaConnect.get_table_detail_SQL().
|
staticprivate |
Definition at line 86 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 75 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 76 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 88 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 79 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 83 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 82 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 80 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 90 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 91 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 93 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.get_physical_cols(), com.mapd.metadata.MetaConnect.is_geometry(), and com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 97 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.get_physical_cols(), com.mapd.metadata.MetaConnect.is_geometry(), and com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 98 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.get_physical_cols(), com.mapd.metadata.MetaConnect.is_geometry(), and com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 95 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.get_physical_cols(), com.mapd.metadata.MetaConnect.is_geometry(), and com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 78 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 92 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.get_physical_cols(), com.mapd.metadata.MetaConnect.is_geometry(), and com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 94 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.get_physical_cols(), com.mapd.metadata.MetaConnect.is_geometry(), and com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 81 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 87 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 84 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 85 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 96 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.typeToThrift().
|
staticprivate |
Definition at line 77 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.typeToThrift().
|
private |
Definition at line 73 of file MetaConnect.java.
Referenced by com.mapd.metadata.MetaConnect.getTable(), and com.mapd.metadata.MetaConnect.MetaConnect().
|
private |
Definition at line 105 of file MetaConnect.java.