Examples of XmlResults


Examples of com.data2semantics.yasgui.client.tab.results.input.XmlResults

  private SparqlResults getSelectResultsFromString(String responseString, Type contentType, ResultType resultType) {
    SparqlResults results = null;
    if (contentType == Type.SELECT_JSON) {
      results = new JsonResults(responseString, view, resultType);
    } else if (contentType == Type.SELECT_XML) {
      results = new XmlResults(responseString, view, resultType);
    } else if (contentType == Type.SELECT_CSV) {
      results = new DlvResults(responseString, view, resultType, ",");
    } else if (contentType == Type.SELECT_TSV) {
      results = new DlvResults(responseString, view, resultType, "\t");
    } else {
View Full Code Here

Examples of com.sleepycat.dbxml.XmlResults

            }

            // execute the query
            a = System.nanoTime();

            XmlResults results = qe.execute(context);

            b = System.nanoTime();
            total += b - a;
            if (log.isDebugEnabled()) {
                log.debug("Query exec. time: " + (b - a) + "ns");
            }

            // process results
            while (results.hasNext()) {

                XmlValue value = results.next();
                byte[] content = value.asDocument().getContent();
                if (content.length > 0) {
                    documents.put(value.asDocument().getName(),
                                  handleDocument(m_policyReader.readPolicy(content),policyFinder));
                } else {
                    throw new PolicyIndexException("Zero-length result found");
                }
            }
            results.delete();
        } catch (XmlException xe) {
            log.error("Error getting query results." + xe.getMessage());
            throw new PolicyIndexException("Error getting query results." + xe.getMessage(), xe);
        } catch (ParsingException pe) {
            log.error("Error getting query results." + pe.getMessage());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.