public class Statistics extends Object
Modifier and Type | Field and Description |
---|---|
static Statistics |
ASSERTION_TREE_STATISTICS |
static Statistics |
FN_PARSE_STATISTICS |
static Statistics |
RESULT_TREE_STATISTICS |
static Statistics |
SOURCE_DOCUMENT_STATISTICS |
static Statistics |
TEMPORARY_TREE_STATISTICS |
Constructor and Description |
---|
Statistics() |
Statistics(int nodes,
int atts,
int namespaces,
int chars) |
Modifier and Type | Method and Description |
---|---|
double |
getAverageAttributes() |
double |
getAverageCharacters() |
double |
getAverageNamespaces() |
double |
getAverageNodes() |
void |
updateStatistics(int numberOfNodes,
int numberOfAttributes,
int numberOfNamespaces,
int chars)
Update the statistics held in static data.
|
public static final Statistics SOURCE_DOCUMENT_STATISTICS
public static final Statistics TEMPORARY_TREE_STATISTICS
public static final Statistics RESULT_TREE_STATISTICS
public static final Statistics ASSERTION_TREE_STATISTICS
public static final Statistics FN_PARSE_STATISTICS
public Statistics()
public Statistics(int nodes, int atts, int namespaces, int chars)
public double getAverageNodes()
public double getAverageAttributes()
public double getAverageNamespaces()
public double getAverageCharacters()
public void updateStatistics(int numberOfNodes, int numberOfAttributes, int numberOfNamespaces, int chars)
numberOfNodes
- the number of (non-attribute, non-namespace) nodesnumberOfAttributes
- the number of attribute nodesnumberOfNamespaces
- the number of namespace bindings (deltas on namespace nodes)chars
- the number of characters in text nodesCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.