Examples of Statistics


Examples of org.apache.cocoon.profiling.statistics.Statistics

                    attrs.addCDATAAttribute("id", report.getId());
                    attrs.addCDATAAttribute("date", report.getDate().toString());
                    XMLUtils.startElement(this.xmlConsumer, "report", attrs);
                    final Iterator si = report.getStatistics().iterator();
                    while ( si.hasNext() ) {
                        final Statistics stats = (Statistics)si.next();
                        attrs.clear();
                        attrs.addCDATAAttribute("name", stats.getCategory());
                        attrs.addCDATAAttribute("duraration", String.valueOf(stats.getDuration()));
                        XMLUtils.createElement(this.xmlConsumer, "component", attrs);
                    }
                    XMLUtils.endElement(this.xmlConsumer, "report");
                }
                XMLUtils.endElement(this.xmlConsumer, "pages");               
View Full Code Here

Examples of org.apache.deltaspike.data.test.service.Statistics

        createSimple(name, 3);
        createSimple(name, 4);
        createSimple(name, 99);

        // when
        Statistics result = repo.queryWithSelect(name);

        // then
        assertNotNull(result.getAverage());
        assertEquals(Long.valueOf(5l), result.getCount());
    }
View Full Code Here

Examples of org.apache.derby.catalog.Statistics

  {
    String myID = null, referenceID = null, tableID = null;
    String statName = null, colMap = null, statType = null;
    Timestamp updateTime = null;
    int columnCount = 0;
    Statistics statisticsObject = null;
    boolean validStat = false;
    ExecRow row = getExecutionFactory().getValueRow(SYSSTATISTICS_COLUMN_COUNT);
   
    if (td != null)
    {
View Full Code Here

Examples of org.apache.derby.catalog.Statistics

    col = row.getColumn(SYSSTATISTICS_COLCOUNT);
    int columnCount = col.getInt();

    /* 8th column is statistics itself */
    col = row.getColumn(SYSSTATISTICS_STAT);
    Statistics stat = (Statistics)col.getObject();

    return new StatisticsDescriptor(dd, statUUID, statReferenceUUID,
                       statTableUUID, // statName, colMap,
                       statType, stat, columnCount);
  }     
View Full Code Here

Examples of org.apache.derby.catalog.Statistics

  {
    String myID = null, referenceID = null, tableID = null;
    String statName = null, colMap = null, statType = null;
    Timestamp updateTime = null;
    int columnCount = 0;
    Statistics statisticsObject = null;
    boolean validStat = false;
    ExecRow row = getExecutionFactory().getValueRow(SYSSTATISTICS_COLUMN_COUNT);
   
    if (td != null)
    {
View Full Code Here

Examples of org.apache.derby.catalog.Statistics

    col = row.getColumn(SYSSTATISTICS_COLCOUNT);
    int columnCount = col.getInt();

    /* 8th column is statistics itself */
    col = row.getColumn(SYSSTATISTICS_STAT);
    Statistics stat = (Statistics)col.getObject();

    return new StatisticsDescriptor(dd, statUUID, statReferenceUUID,
                       statTableUUID, // statName, colMap,
                       statType, stat, columnCount);
  }     
View Full Code Here

Examples of org.apache.hadoop.fs.FileSystem.Statistics

    if (scheme == null) {
      throw new IllegalArgumentException("Scheme not defined in the uri: "
          + uri);
    }
    URI baseUri = getBaseUri(uri);
    Statistics result = STATISTICS_TABLE.get(baseUri);
    if (result == null) {
      result = new Statistics(scheme);
      STATISTICS_TABLE.put(baseUri, result);
    }
    return result;
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.plan.Statistics

    long maxSize = context.conf.getLongVar(
        HiveConf.ConfVars.HIVECONVERTJOINNOCONDITIONALTASKTHRESHOLD);

    int bigTablePosition = -1;

    Statistics bigInputStat = null;
    long totalSize = 0;
    int pos = 0;

    // bigTableFound means we've encountered a table that's bigger than the
    // max. This table is either the the big table or we cannot convert.
    boolean bigTableFound = false;

    for (Operator<? extends OperatorDesc> parentOp : joinOp.getParentOperators()) {

      Statistics currInputStat = parentOp.getStatistics();
      if (currInputStat == null) {
        LOG.warn("Couldn't get statistics from: "+parentOp);
        return -1;
      }

      long inputSize = currInputStat.getDataSize();
      if ((bigInputStat == null) ||
          ((bigInputStat != null) &&
           (inputSize > bigInputStat.getDataSize()))) {

        if (bigTableFound) {
          // cannot convert to map join; we've already chosen a big table
          // on size and there's another one that's bigger.
          return -1;
        }

        if (inputSize/buckets > maxSize) {
          if (!bigTableCandidateSet.contains(pos)) {
            // can't use the current table as the big table, but it's too
            // big for the map side.
            return -1;
          }

          bigTableFound = true;
        }

        if (bigInputStat != null) {
          // we're replacing the current big table with a new one. Need
          // to count the current one as a map table then.
          totalSize += bigInputStat.getDataSize();
        }

        if (totalSize/buckets > maxSize) {
          // sum of small tables size in this join exceeds configured limit
          // hence cannot convert.
          return -1;
        }

        if (bigTableCandidateSet.contains(pos)) {
          bigTablePosition = pos;
          bigInputStat = currInputStat;
        }
      } else {
        totalSize += currInputStat.getDataSize();
        if (totalSize/buckets > maxSize) {
          // cannot hold all map tables in memory. Cannot convert.
          return -1;
        }
      }
View Full Code Here

Examples of org.apache.hadoop.raid.RaidNode.Statistics

    /** {@inheritDoc} */
    public void configure(JobConf job) {
      this.jobconf = job;
      ignoreFailures = jobconf.getBoolean(IGNORE_FAILURES_OPTION_LABEL, true);
      st = new Statistics();
    }
View Full Code Here

Examples of org.apache.qpid.server.model.Statistics

     */
    @Override
    public Map<String, Object> mapEncode()
    {
        // Statistics
        Statistics stats = _exchange.getStatistics();
        long msgReceives = ((Long)stats.getStatistic("messagesIn")).longValue();
        long msgDrops = ((Long)stats.getStatistic("messagesDropped")).longValue();
        long msgRoutes = msgReceives - msgDrops;

        long byteReceives = ((Long)stats.getStatistic("bytesIn")).longValue();
        long byteDrops = ((Long)stats.getStatistic("bytesDropped")).longValue();
        long byteRoutes = byteReceives - byteDrops;

        setValue("producerCount", "Not yet implemented"); // In Qpid 0.20 producerCount statistic returns null.

        // We have to modify the value of bindingCount for Exchange because the QmfManagementAgent "hides" the
        // QMF Objects that relate to its own AMQP Connection/Queues/Bindings so the bindingCount for default direct
        // qmf.default.direct and qmf.default.topic is different to the actual number of QMF bindings.
        long bindingCount = ((Long)stats.getStatistic("bindingCount")).longValue();
        if (_name.equals(""))
        {
            bindingCount -= 3;
        }
        else if (_name.equals("qmf.default.direct"))
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.