de.lmu.ifi.dbs.elki.logging.Logging.isStatistics()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(7.5k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中de.lmu.ifi.dbs.elki.logging.Logging.isStatistics()方法的一些代码示例,展示了Logging.isStatistics()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logging.isStatistics()方法的具体详情如下:
包路径:de.lmu.ifi.dbs.elki.logging.Logging
类名称:Logging
方法名:isStatistics

Logging.isStatistics介绍

[英]Test whether to log 'statistics'.
[中]测试是否记录“统计信息”。

代码示例

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

protected Statistics(String parent) {
 scannedBytes = LOG.isStatistics() ? LOG.newCounter(parent + ".scannedBytes") : null;
 queryTime = LOG.isStatistics() ? LOG.newCounter(parent + ".queryTime") : null;
 issuedQueries = LOG.isStatistics() ? LOG.newCounter(parent + ".issuedQueries") : null;
 refinements = LOG.isStatistics() ? LOG.newCounter(parent + ".refinements") : null;
}

代码示例来源:origin: elki-project/elki

protected Statistics(String parent) {
 scannedBytes = LOG.isStatistics() ? LOG.newCounter(parent + ".scannedBytes") : null;
 queryTime = LOG.isStatistics() ? LOG.newCounter(parent + ".queryTime") : null;
 issuedQueries = LOG.isStatistics() ? LOG.newCounter(parent + ".issuedQueries") : null;
 refinements = LOG.isStatistics() ? LOG.newCounter(parent + ".refinements") : null;
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-index-various

protected Statistics(String parent) {
 scannedBytes = LOG.isStatistics() ? LOG.newCounter(parent + ".scannedBytes") : null;
 queryTime = LOG.isStatistics() ? LOG.newCounter(parent + ".queryTime") : null;
 issuedQueries = LOG.isStatistics() ? LOG.newCounter(parent + ".issuedQueries") : null;
 refinements = LOG.isStatistics() ? LOG.newCounter(parent + ".refinements") : null;
}

代码示例来源:origin: elki-project/elki

/**
 * Constructor.
 */
public AbstractPageFile() {
 super();
 Logging log = getLogger();
 this.readAccess = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".reads") : null;
 this.writeAccess = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".writes") : null;
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

/**
 * Constructor.
 */
public AbstractPageFile() {
 super();
 Logging log = getLogger();
 this.readAccess = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".reads") : null;
 this.writeAccess = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".writes") : null;
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-persistent

/**
 * Constructor.
 */
public AbstractPageFile() {
 super();
 Logging log = getLogger();
 this.readAccess = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".reads") : null;
 this.writeAccess = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".writes") : null;
}

代码示例来源:origin: elki-project/elki

/**
 * Constructor.
 * 
 * @param relation Relation indexed
 */
public AbstractRefiningIndex(Relation<O> relation) {
 super(relation);
 Logging log = getLogger();
 refinements = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".refinements") : null;
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

/**
 * Constructor.
 * 
 * @param relation Relation indexed
 */
public AbstractRefiningIndex(Relation<O> relation) {
 super(relation);
 Logging log = getLogger();
 refinements = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".refinements") : null;
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-index

/**
 * Constructor.
 * 
 * @param relation Relation indexed
 */
public AbstractRefiningIndex(Relation<O> relation) {
 super(relation);
 Logging log = getLogger();
 refinements = log.isStatistics() ? log.newCounter(this.getClass().getName() + ".refinements") : null;
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

@Override
 public void logStatistics() {
  super.logStatistics();
  if (getLogger().isStatistics()) {
   getLogger().statistics(new LongStatistic(this.getClass().getName() + ".numpages", nextPageID - emptyPages.size()));
  }
 }
}

代码示例来源:origin: elki-project/elki

@Override
 public void logStatistics() {
  super.logStatistics();
  if (getLogger().isStatistics()) {
   getLogger().statistics(new LongStatistic(this.getClass().getName() + ".numpages", nextPageID - emptyPages.size()));
  }
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-persistent

@Override
 public void logStatistics() {
  super.logStatistics();
  if (getLogger().isStatistics()) {
   getLogger().statistics(new LongStatistic(this.getClass().getName() + ".numpages", nextPageID - emptyPages.size()));
  }
 }
}

代码示例来源:origin: elki-project/elki

@Override
public void logStatistics() {
 Logging log = getLogger();
 if(log.isStatistics()) {
  super.logStatistics();
  log.statistics(new LongStatistic(this.getClass().getName() + ".height", height));
  statistics.logStatistics();
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-index-rtree

@Override
public void logStatistics() {
 Logging log = getLogger();
 if(log.isStatistics()) {
  super.logStatistics();
  log.statistics(new LongStatistic(this.getClass().getName() + ".height", height));
  statistics.logStatistics();
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

@Override
public void logStatistics() {
 super.logStatistics();
 Logging log = getLogger();
 if(log.isStatistics()) {
  log.statistics(new LongStatistic(this.getClass().getName() + ".height", height));
  statistics.logStatistics();
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-index-mtree

@Override
public void logStatistics() {
 super.logStatistics();
 Logging log = getLogger();
 if(log.isStatistics()) {
  log.statistics(new LongStatistic(this.getClass().getName() + ".height", getHeight()));
  statistics.logStatistics();
 }
}

代码示例来源:origin: elki-project/elki

@Override
public void logStatistics() {
 super.logStatistics();
 Logging log = getLogger();
 if(log.isStatistics()) {
  log.statistics(new LongStatistic(this.getClass().getName() + ".height", getHeight()));
  statistics.logStatistics();
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

@Override
public void logStatistics() {
 super.logStatistics();
 Logging log = getLogger();
 if(log.isStatistics()) {
  log.statistics(new LongStatistic(this.getClass().getName() + ".height", getHeight()));
  statistics.logStatistics();
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-clustering

@Override
public void initialize() {
 if(relation == null || relation.size() <= 0) {
  throw new EmptyDataException();
 }
 storage = DataStoreUtil.makeStorage(relation.getDBIDs(), DataStoreFactory.HINT_HOT | DataStoreFactory.HINT_TEMP, long[].class);
 KNNQuery<V> knnQuery = QueryUtil.getKNNQuery(relation, EuclideanDistanceFunction.STATIC, k);
 FiniteProgress progress = LOG.isVerbose() ? new FiniteProgress("Preprocessing preference vector", relation.size(), LOG) : null;
 long start = System.currentTimeMillis();
 for(DBIDIter it = relation.iterDBIDs(); it.valid(); it.advance()) {
  storage.put(it, determinePreferenceVector(relation, it, knnQuery.getKNNForDBID(it, k)));
  LOG.incrementProcessed(progress);
 }
 LOG.ensureCompleted(progress);
 if(LOG.isStatistics()) {
  LOG.statistics(new LongStatistic(this.getClass().getName() + ".runtime.ms", System.currentTimeMillis() - start));
 }
}

代码示例来源:origin: elki-project/elki

@Override
public void initialize() {
 if(relation == null || relation.size() <= 0) {
  throw new EmptyDataException();
 }
 storage = DataStoreUtil.makeStorage(relation.getDBIDs(), DataStoreFactory.HINT_HOT | DataStoreFactory.HINT_TEMP, long[].class);
 KNNQuery<V> knnQuery = QueryUtil.getKNNQuery(relation, EuclideanDistanceFunction.STATIC, k);
 FiniteProgress progress = LOG.isVerbose() ? new FiniteProgress("Preprocessing preference vector", relation.size(), LOG) : null;
 long start = System.currentTimeMillis();
 for(DBIDIter it = relation.iterDBIDs(); it.valid(); it.advance()) {
  storage.put(it, determinePreferenceVector(relation, it, knnQuery.getKNNForDBID(it, k)));
  LOG.incrementProcessed(progress);
 }
 LOG.ensureCompleted(progress);
 if(LOG.isStatistics()) {
  LOG.statistics(new LongStatistic(this.getClass().getName() + ".runtime.ms", System.currentTimeMillis() - start));
 }
}

相关文章