Revision 3227
Added by berkley almost 17 years ago
MetacatResultSet.java | ||
---|---|---|
64 | 64 |
public MetacatResultSet(Document d) |
65 | 65 |
throws Exception |
66 | 66 |
{ |
67 |
log.warn("processing resultset..."); |
|
67 |
log.warn("#####################processing resultset...");
|
|
68 | 68 |
NodeList nl = XPathAPI.selectNodeList(d, "//document"); |
69 | 69 |
for(int i=0; i<nl.getLength(); i++) |
70 | 70 |
{ //get each of the document nodes |
... | ... | |
103 | 103 |
public MetacatResultSet(String xmlDoc) |
104 | 104 |
throws SAXException, IOException |
105 | 105 |
{ |
106 |
double mrsStart = System.currentTimeMillis() / 1000; |
|
107 |
log.warn("###############parsing for paged results....."); |
|
106 | 108 |
XMLReader parser = null; |
107 | 109 |
String parserName = MetaCatUtil.getOption("saxparser"); |
108 | 110 |
parser = XMLReaderFactory.createXMLReader(parserName); |
109 | 111 |
parser.setContentHandler(this); |
110 | 112 |
parser.setErrorHandler(this); |
111 | 113 |
parser.parse(new InputSource(new StringReader(xmlDoc))); |
114 |
double mrsStop = System.currentTimeMillis() / 1000; |
|
115 |
log.warn("##############done parsing for paged results. total time: " + |
|
116 |
(mrsStop - mrsStart) + " seconds"); |
|
117 |
|
|
112 | 118 |
} |
113 | 119 |
|
114 | 120 |
/** |
Also available in: Unified diff
checking in timing print statments