Examples of TableInfo


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

    String tablename = null;
    for (Object c : config) {
      if (c instanceof String) {
        tablename = (String) c;
      } else {
        TableInfo info = new TableInfo();
        int count = (Integer) c;
        info.onlineTablets = count;
        info.tablets = count;
        result.tableMap.put(tablename, info);
      }
View Full Code Here

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

      out(2, "Cause: %s", dead.status);
    }
    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 = TableInfoUtil.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

        indexCacheRequestTracker.startingUpdates();
        dataCacheHitTracker.startingUpdates();
        dataCacheRequestTracker.startingUpdates();

        for (TabletServerStatus server : mmi.tServerInfo) {
          TableInfo summary = TableInfoUtil.summarizeTableStats(server);
          totalIngestRate += summary.ingestRate;
          totalIngestByteRate += summary.ingestByteRate;
          totalQueryRate += summary.queryRate;
          totalScanRate += summary.scanRate;
          totalQueryByteRate += summary.queryByteRate;
View Full Code Here

Examples of org.hivedb.meta.persistence.TableInfo

    return "hive_resource_" + resource.getName().toLowerCase()
  }
 
  public static Collection<TableInfo> getTables(PartitionDimension partitionDimension) {
    Collection<TableInfo> TableInfos = new ArrayList<TableInfo>();
    TableInfos.add(new TableInfo(getPrimaryIndexTableName(partitionDimension), getCreatePrimaryIndex(partitionDimension)));
    for (Resource resource : partitionDimension.getResources()) {
      if (!resource.isPartitioningResource())
        TableInfos.add(new TableInfo(getResourceIndexTableName(resource), getCreateResourceIndex(resource, partitionDimension)));
      for (SecondaryIndex secondaryIndex : resource.getSecondaryIndexes())
        TableInfos.add(new TableInfo(
            getSecondaryIndexTableName(secondaryIndex),
            getCreateSecondaryIndex(secondaryIndex, partitionDimension)));
    }
    return TableInfos;
  }
View Full Code Here

Examples of org.jpox.store.rdbms.columninfo.TableInfo

        ResultSet rs = ((RDBMSAdapter)storeMgr.getDatastoreAdapter()).getTables(conn, catalogName, schemaName);
        try
        {
            while (rs.next())
            {
                tables.add(new TableInfo(rs));
            }
        }
        finally
        {
            rs.close();
View Full Code Here

Examples of org.jpox.store.rdbms.columninfo.TableInfo

        JPOXLogger.SCHEMATOOL.info("TABLES");
        Iterator itTables = getTableInfo(null).iterator();
        while (itTables.hasNext())
        {
            TableInfo ti = (TableInfo) itTables.next();
            JPOXLogger.SCHEMATOOL.info(ti);
            ps.println(ti);
            Iterator itColumns = getColumnInfo(ti.getTableSchem(), ti.getTableName()).iterator();
            while (itColumns.hasNext())
            {
                ColumnInfo ci = (ColumnInfo) itColumns.next();
                JPOXLogger.SCHEMATOOL.info(ci);
                ps.println(ci);
View Full Code Here

Examples of org.nutz.dao.impl.entity.info.TableInfo

  }

  public <T> Entity<T> make(Class<T> type) {
    NutEntity<T> en = new NutEntity<T>(type);

    TableInfo ti = _createTableInfo(type);

    /*
     * 获取实体的扩展描述
     */
    // 全局
View Full Code Here

Examples of org.nutz.dao.impl.entity.info.TableInfo

   * @param type
   *            实体类型
   * @return 实体表描述
   */
  private TableInfo _createTableInfo(Class<?> type) {
    TableInfo info = new TableInfo();
    Mirror<?> mirror = Mirror.me(type);
    info.annTable = mirror.getAnnotation(Table.class);
    info.annView = mirror.getAnnotation(View.class);
    info.annMeta = mirror.getAnnotation(TableMeta.class);
    info.annPK = mirror.getAnnotation(PK.class);
View Full Code Here

Examples of sql.schema.parser.SchemaParser.TableInfo

   * There is no raising exception if column does not exist it might be called
   * from contains(), so each caller has to be aware that this method might
   * return null
   */
  private ColumnInfo getColumnInfo(String tableSchemaName, String columnName) {
    final TableInfo table = getTableInfo(tableSchemaName);
    final ColumnInfo column = table.getColumnInfos().get(columnName);
    return column;
  }
View Full Code Here

Examples of sql.schema.parser.SchemaParser.TableInfo

    return (double) secondSize / firstSize;
  }

  // helper methods, interface to Parser classes
  private TableInfo getTableInfo(String tableSchemaName) {
    final TableInfo table = _schemaInfo.get(tableSchemaName);
    if (table == null)
      throw new RuntimeException("Table " + tableSchemaName + " does not exist in Schema \n "
          + _path + " !");
    return table;
  }
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.