本文整理汇总了Java中ch.ethz.globis.phtree.util.PhTreeStats类的典型用法代码示例。如果您正苦于以下问题:Java PhTreeStats类的具体用法?Java PhTreeStats怎么用?Java PhTreeStats使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PhTreeStats类属于ch.ethz.globis.phtree.util包,在下文中一共展示了PhTreeStats类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setStats
import ch.ethz.globis.phtree.util.PhTreeStats; //导入依赖的package包/类
public void setStats(PhTreeStats q) {
statNnodes = q.getNodeCount();
statSCalc = q.getCalculatedMemSize();
statNpostlen = (long) q.getAvgPostlen(null);
statNNodeAHC = q.getAhcCount();
statNNodeNT = q.getNtCount();
statNNodeInternalNT = q.getNtInternalNodeCount();
cfgNBits = q.getBitDepth();
}
示例2: getStats
import ch.ethz.globis.phtree.util.PhTreeStats; //导入依赖的package包/类
@Override
public void getStats(TestStats S) {
//phc.printStats(N);
//phc.printQuality();
PhTreeStats q = phc.getStats();
S.setStats(q);
//System.out.println(phc.getQuality());
}
示例3: getStats
import ch.ethz.globis.phtree.util.PhTreeStats; //导入依赖的package包/类
@Override
public void getStats(TestStats S) {
PhTreeStats q = phc.getStats();
S.setStats(q);
System.out.println(q);
System.out.println(q.toStringHist());
}
示例4: getStats
import ch.ethz.globis.phtree.util.PhTreeStats; //导入依赖的package包/类
@Override
public void getStats(TestStats S) {
//phc.printStats(N);
//phc.printQuality();
PhTreeStats q = phc.getInternalTree().getStats();
S.setStats(q);
//System.out.println(phc.getQuality());
System.out.println(q.toStringHist());
}
示例5: getStats
import ch.ethz.globis.phtree.util.PhTreeStats; //导入依赖的package包/类
@Override
public void getStats(TestStats S) {
//phc.printStats(N);
//phc.printQuality();
PhTreeStats q = phc.getInternalTree().getStats();
S.setStats(q);
//System.out.println(phc.getQuality());
}
示例6: handleStats
import ch.ethz.globis.phtree.util.PhTreeStats; //导入依赖的package包/类
@Override
public Response handleStats(BaseRequest request) {
if (isVersionOutDate(request)) {
return createOutdateVersionResponse(request);
}
MapResponse response = new MapResponse(request.getOpCode(), request.getId(), OpStatus.SUCCESS);
PhTreeStats stats = (tree().size() == 0) ? new PhTreeStats() : tree().getStats();
response.addParameter("stats", stats);
return response;
}
示例7: getStats
import ch.ethz.globis.phtree.util.PhTreeStats; //导入依赖的package包/类
/**
* @return The combined stats for the tree.
*/
public PhTreeStats getStats() {
boolean versionOutdated;
List<MapResponse> responses;
do {
BaseRequest request = requests.newStats();
List<String> hostIds = clusterService.getMapping().get();
responses = requestDispatcher.send(hostIds, request, MapResponse.class);
versionOutdated = check(request, responses);
} while (versionOutdated);
return combineStats(responses);
}
示例8: testStats
import ch.ethz.globis.phtree.util.PhTreeStats; //导入依赖的package包/类
@Test
public void testStats() {
phTree.create(2, 64);
phTree.put(k(1, 1), "one");
phTree.put(k(1, -1), "two");
phTree.put(k(-1, 1), "three");
phTree.put(k(-1, -1), "four");
PhTreeStats stats = phTree.getStats();
System.out.println(stats);
}
示例9: getQuality
import ch.ethz.globis.phtree.util.PhTreeStats; //导入依赖的package包/类
private PhTreeStats getQuality(int currentDepth, Node<T> node, PhTreeStats stats) {
stats.nNodes++;
if (node.isPostHC()) {
stats.nAHC++;
}
if (node.isSubHC()) {
stats.nNtNodes++;
}
if (node.isPostNI()) {
stats.nNT++;
}
stats.infixHist[node.getInfixLen()]++;
stats.nodeDepthHist[currentDepth]++;
int size = node.getPostCount() + node.getSubCount();
stats.nodeSizeLogHist[32-Integer.numberOfLeadingZeros(size)]++;
currentDepth += node.getInfixLen();
stats.q_totalDepth += currentDepth;
if (node.subNRef() != null) {
for (Node<T> sub: node.subNRef()) {
if (sub != null) {
getQuality(currentDepth + 1, sub, stats);
}
}
} else {
if (node.ind() != null) {
for (NodeEntry<T> n: node.ind()) {
if (n.node != null) {
getQuality(currentDepth + 1, n.node, stats);
}
}
}
}
//count post-fixes
stats.q_nPostFixN[currentDepth] += node.getPostCount();
return stats;
}
示例10: getStats
import ch.ethz.globis.phtree.util.PhTreeStats; //导入依赖的package包/类
@Override
public void getStats(TestStats S) {
PhTreeStats q = phc.getStats();
S.setStats(q);
}
示例11: getStats
import ch.ethz.globis.phtree.util.PhTreeStats; //导入依赖的package包/类
@Override
public void getStats(TestStats S) {
PhTreeStats q = phc.getInternalTree().getStats();
S.setStats(q);
System.out.println(q.toStringHist());
}
示例12: getStats
import ch.ethz.globis.phtree.util.PhTreeStats; //导入依赖的package包/类
@Override
public void getStats(TestStats S) {
PhTreeStats q = phc.getStats();
S.setStats(q);
System.out.println(q.toStringHist());
}
示例13: getStats
import ch.ethz.globis.phtree.util.PhTreeStats; //导入依赖的package包/类
@Override
public PhTreeStats getStats() {
return tree.getStats();
}
示例14: getStats
import ch.ethz.globis.phtree.util.PhTreeStats; //导入依赖的package包/类
@Override
public synchronized PhTreeStats getStats() {
return p.getStats();
}
示例15: getStats
import ch.ethz.globis.phtree.util.PhTreeStats; //导入依赖的package包/类
@Override
public PhTreeStats getStats() {
return proxy.getStats();
}