本文整理了Java中de.lmu.ifi.dbs.elki.logging.Logging.newCounter()
方法的一些代码示例,展示了Logging.newCounter()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logging.newCounter()
方法的具体详情如下:
包路径:de.lmu.ifi.dbs.elki.logging.Logging
类名称:Logging
方法名:newCounter
[英]Generate a new counter.
[中]生成一个新的计数器。
代码示例来源: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: elki-project/elki
/**
* Constructor.
*
* @param relation Relation to index
* @param leafsize Maximum size of leaf nodes
*/
public MinimalisticMemoryKDTree(Relation<O> relation, int leafsize) {
super(relation);
this.leafsize = leafsize;
assert (leafsize >= 1);
if(LOG.isStatistics()) {
String prefix = this.getClass().getName();
this.objaccess = LOG.newCounter(prefix + ".objaccess");
this.distcalc = LOG.newCounter(prefix + ".distancecalcs");
}
else {
this.objaccess = null;
this.distcalc = 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.
*
* @param relation Relation to index
* @param leafsize Maximum size of leaf nodes
*/
public SmallMemoryKDTree(Relation<O> relation, int leafsize) {
super(relation);
this.leafsize = leafsize;
assert (leafsize >= 1);
if(LOG.isStatistics()) {
String prefix = this.getClass().getName();
this.objaccess = LOG.newCounter(prefix + ".objaccess");
this.distcalc = LOG.newCounter(prefix + ".distancecalcs");
}
else {
this.objaccess = null;
this.distcalc = null;
}
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-index-various
/**
* Constructor.
*
* @param relation Relation to index
* @param leafsize Maximum size of leaf nodes
*/
public SmallMemoryKDTree(Relation<O> relation, int leafsize) {
super(relation);
this.leafsize = leafsize;
assert (leafsize >= 1);
if(LOG.isStatistics()) {
String prefix = this.getClass().getName();
this.objaccess = LOG.newCounter(prefix + ".objaccess");
this.distcalc = LOG.newCounter(prefix + ".distancecalcs");
}
else {
this.objaccess = null;
this.distcalc = null;
}
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-index-various
/**
* Constructor.
*
* @param relation Relation to index
* @param leafsize Maximum size of leaf nodes
*/
public MinimalisticMemoryKDTree(Relation<O> relation, int leafsize) {
super(relation);
this.leafsize = leafsize;
assert (leafsize >= 1);
if(LOG.isStatistics()) {
String prefix = this.getClass().getName();
this.objaccess = LOG.newCounter(prefix + ".objaccess");
this.distcalc = LOG.newCounter(prefix + ".distancecalcs");
}
else {
this.objaccess = null;
this.distcalc = null;
}
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki
/**
* Constructor.
*
* @param relation Relation to index
* @param leafsize Maximum size of leaf nodes
*/
public MinimalisticMemoryKDTree(Relation<O> relation, int leafsize) {
super(relation);
this.leafsize = leafsize;
assert(leafsize >= 1);
if(LOG.isStatistics()) {
String prefix = this.getClass().getName();
this.objaccess = LOG.newCounter(prefix + ".objaccess");
this.distcalc = LOG.newCounter(prefix + ".distancecalcs");
}
else {
this.objaccess = null;
this.distcalc = null;
}
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki
/**
* Constructor.
*
* @param relation Relation to index
* @param leafsize Maximum size of leaf nodes
*/
public SmallMemoryKDTree(Relation<O> relation, int leafsize) {
super(relation);
this.leafsize = leafsize;
assert(leafsize >= 1);
if(LOG.isStatistics()) {
String prefix = this.getClass().getName();
this.objaccess = LOG.newCounter(prefix + ".objaccess");
this.distcalc = LOG.newCounter(prefix + ".distancecalcs");
}
else {
this.objaccess = null;
this.distcalc = 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: elki-project/elki
/**
* Constructor.
*
* @param relation Relation to index.
* @param proj Projection to use.
* @param view View to use.
* @param inner Index to wrap.
* @param norefine Refinement disable flag.
* @param kmulti Multiplicator for k
*/
public ProjectedIndex(Relation<? extends O> relation, Projection<O, I> proj, Relation<I> view, Index inner, boolean norefine, double kmulti) {
super();
this.relation = relation;
this.view = view;
this.inner = inner;
this.proj = proj;
this.norefine = norefine;
this.kmulti = kmulti;
this.refinements = LOG.isStatistics() ? LOG.newCounter(this.getClass().getName() + ".refinements") : null;
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki
/**
* Constructor.
*
* @param relation Relation to index.
* @param proj Projection to use.
* @param view View to use.
* @param inner Index to wrap.
* @param norefine Refinement disable flag.
* @param kmulti Multiplicator for k
*/
public ProjectedIndex(Relation<O> relation, Projection<O, I> proj, Relation<I> view, Index inner, boolean norefine, double kmulti) {
super();
this.relation = relation;
this.view = view;
this.inner = inner;
this.proj = proj;
this.norefine = norefine;
this.kmulti = kmulti;
this.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
/**
* 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 to index.
* @param proj Projection to use.
* @param view View to use.
* @param inner Index to wrap.
* @param norefine Refinement disable flag.
* @param kmulti Multiplicator for k
*/
public ProjectedIndex(Relation<? extends O> relation, Projection<O, I> proj, Relation<I> view, Index inner, boolean norefine, double kmulti) {
super();
this.relation = relation;
this.view = view;
this.inner = inner;
this.proj = proj;
this.norefine = norefine;
this.kmulti = kmulti;
this.refinements = LOG.isStatistics() ? LOG.newCounter(this.getClass().getName() + ".refinements") : null;
}
内容来源于网络,如有侵权,请联系作者删除!