|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDefaultHandler
SkimmerEstimator
public class SkimmerEstimator
On smaller files costs about 13% or parse time, on larger files only costs about 4% of parse time.
Constructor Summary | |
---|---|
SkimmerEstimator()
|
|
SkimmerEstimator(File xmlFile)
|
|
SkimmerEstimator(InputStream stream)
|
Method Summary | |
---|---|
void |
estimate()
interface Estimate |
int |
expectedEdges()
interface Estimate |
int |
expectedNodes()
interface Estimate |
long |
expectedValues()
interface Estimate |
long |
getCost()
|
int |
getCountPotentials()
|
long |
getCountProbabilityValues()
|
int |
getCountVariables()
|
static SAXParserFactory |
getFactory()
|
int |
getProgressIncrementNodeBlock()
|
int |
getProgressIncrementPoteBlock()
|
int |
getProgressMax()
|
static SAXParser |
getSAXParser()
|
void |
init(File xmlFile)
interface Estimate |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
|
Methods inherited from class DefaultHandler |
---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SkimmerEstimator(File xmlFile)
public SkimmerEstimator(InputStream stream)
public SkimmerEstimator()
Method Detail |
---|
public void init(File xmlFile)
init
in interface Estimate
public int expectedNodes()
expectedNodes
in interface Estimate
public int expectedEdges()
expectedEdges
in interface Estimate
public long expectedValues()
expectedValues
in interface Estimate
public void estimate()
estimate
in interface Estimate
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public static SAXParserFactory getFactory()
public static SAXParser getSAXParser() throws ParserConfigurationException, SAXException
ParserConfigurationException
SAXException
public long getCost()
public int getProgressIncrementNodeBlock()
public int getProgressIncrementPoteBlock()
public int getProgressMax()
public int getCountVariables()
public int getCountPotentials()
public long getCountProbabilityValues()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |