Examples of TableInfo


Examples of net.sourceforge.squirrel_sql.fw.sql.TableInfo

         s_log.warn(s_stringMgr.getString("SchemaInfo.UnableToLoadColumns", tableName));
         return;
      }

      String name = getCaseSensitiveTableName(tableName.toString());
      TableInfo ti = new TableInfo(null, null, name, "TABLE", null, _dmd);

      try
      {
         TableColumnInfo[] infos = _dmd.getColumnInfo(ti);
         _schemaInfoCache.writeColumsToCache(infos, tableName);
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.sql.TableInfo

      ////////////////////////////////////////////////////////////////////////
      // Reload  all matching table types
      for(Iterator<String> i=caseSensitiveTableNames.keySet().iterator(); i.hasNext();)
      {
         String buf = i.next();
         TableInfo ti = new TableInfo(null, null, buf, null, null, _dmd);
         reload(ti, fireSchemaInfoUpdate);
      }
      //
      ////////////////////////////////////////////////////////////////////////
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.sql.TableInfo

      EditableSqlCheck edittableCheck = new EditableSqlCheck(exInfo);

      if (edittableCheck.allowsEditing())
      {
         TableInfo ti = getTableName(edittableCheck.getTableNameFromSQL());
         _dataSetUpdateableTableModel.setTableInfo(ti);
      }
      else
      {
         _dataSetUpdateableTableModel.setTableInfo(null);
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.sql.TableInfo

   public void setUp() throws Exception {
     super.serializableToTest = new SchemaInfoCache();
      mockMetaData = FwTestUtil.getEasyMockH2SQLMetaData();
      for (int i = 0; i < tableInfos.length; i++) {
         String tableName = "table" + i;
         tableInfos[i] = new TableInfo(testCatalog, testSchema, tableName,
               testTableType, null, mockMetaData);
      }
      schemaInfoCacheUnderTest.writeToTableCache(tableInfos);
   }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.sql.TableInfo

            FwTestUtil.getEasyMockSQLMetaData("oracle",
                                            "jdbc:oracle:thin",
                                            false,
                                            true);
       
        childTableInfo = new TableInfo("testCatalog",
                                  "testSchema",
                                  "childTable",
                                  "TABLE",
                                  "a comment",
                                  tableMockMetaData)
       
        parentTableInfo = new TableInfo("testCatalog",
                                        "testSchema",
                                        "parentTable",
                                        "TABLE",
                                        "a comment",
                                        tableMockMetaData);
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.sql.TableInfo

    runSQL(session, createMatViewSQL);
    final MockSession msession = (MockSession) session;
    final String cat = msession.getDefaultCatalog();
    final String schema = msession.getDefaultSchema();
    final SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData();
    final ITableInfo info = new TableInfo(cat, schema, testMaterializedViewName, "TABLE", "", md);
    final List<String> dropSQL = dialect.getTableDropSQL(info, true, true, qualifier, prefs);
    runSQL(session, dropSQL);
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.sql.TableInfo

      ti = infos[0];
    }
    else
    {
      // Couldn't locate the table - just try to fake it.
      ti = new TableInfo(catalog, schema, tableName, "TABLE", "", md);
    }

    final String pkName = getPKName(tableName);
    final AddPrimaryKeySqlExtractor extractor = new AddPrimaryKeySqlExtractor(ti, colInfos, pkName);
    if (dialectDiscoveryMode)
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.sql.TableInfo

        } else {
          result = new ArrayList<ITableInfo>();
            String[] tableNames = tableStr.split(",");
            for (int i = 0; i < tableNames.length; i++) {
        String tableName = tableNames[i];
        TableInfo info = new TableInfo(sourceCatalog,
                         sourceSchema,
                         tableName,
                         "TABLE",
                         "",
                         null);
View Full Code Here

Examples of org.apache.accumulo.core.master.thrift.TableInfo

      }
    }
    if (stats.tableMap != null && stats.tableMap.size() > 0) {
      out(0, "Tables");
      for (Entry<String,TableInfo> entry : stats.tableMap.entrySet()) {
        TableInfo v = entry.getValue();
        out(1, "%s", entry.getKey());
        out(2, "Records: %d", v.recs);
        out(2, "Records in Memory: %d", v.recsInMemory);
        out(2, "Tablets: %d", v.tablets);
        out(2, "Online Tablets: %d", v.onlineTablets);
        out(2, "Ingest Rate: %.2f", v.ingestRate);
        out(2, "Query Rate: %.2f", v.queryRate);
      }
    }
    if (stats.tServerInfo != null && stats.tServerInfo.size() > 0) {
      out(0, "Tablet Servers");
      long now = System.currentTimeMillis();
      for (TabletServerStatus server : stats.tServerInfo) {
        TableInfo summary = Monitor.summarizeTableStats(server);
        out(1, "Name: %s", server.name);
        out(2, "Ingest: %.2f", summary.ingestRate);
        out(2, "Last Contact: %s", server.lastContact);
        out(2, "OS Load Average: %.2f", server.osLoad);
        out(2, "Queries: %.2f", summary.queryRate);
        out(2, "Time Difference: %.1f", ((now - server.lastContact) / 1000.));
        out(2, "Total Records: %d", summary.recs);
        out(2, "Lookups: %d", server.lookups);
        if (server.holdTime > 0)
          out(2, "Hold Time: %d", server.holdTime);
        if (server.tableMap != null && server.tableMap.size() > 0) {
          out(2, "Tables");
          for (Entry<String,TableInfo> status : server.tableMap.entrySet()) {
            TableInfo info = status.getValue();
            out(3, "Table: %s", status.getKey());
            out(4, "Tablets: %d", info.onlineTablets);
            out(4, "Records: %d", info.recs);
            out(4, "Records in Memory: %d", info.recsInMemory);
            out(4, "Ingest: %.2f", info.ingestRate);
View Full Code Here

Examples of org.apache.accumulo.core.master.thrift.TableInfo

   
    log.debug("tableId: " + tableId);
    for (TabletServerStatus status : tservers) {
      if (status == null)
        status = NO_STATUS;
      TableInfo summary = Monitor.summarizeTableStats(status);
      if (tableId != null)
        summary = status.tableMap.get(tableId);
      if (summary == null)
        continue;
      TableRow row = tServerList.prepareRow();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.