Package org.zorbaxquery.api

Examples of org.zorbaxquery.api.Item.serialize()


    Item item = new Item();
    Text keyData = new Text();
    keyData.set("zero");
    Text valueData = new Text();
    while (iter.next(item)) {
      String itemStr = item.serialize();
      itemStr = itemStr.substring(39,itemStr.length());
      if (itemStr.startsWith("<key>")) {
        keyData.set(itemStr);
      } else {
        valueData.set(itemStr);
View Full Code Here


    Text keyData = new Text();
       
    keyData.set("zero");
    Text valueData = new Text();
    while (iter.next(item)) {
      String itemStr = item.serialize();
      itemStr = itemStr.substring(39,itemStr.length());
      if (itemStr.startsWith("<key>")) {
        keyData.set(itemStr);
      } else {
        valueData.set(itemStr);
View Full Code Here

    xquery.setVariableAsDocument("test", filename, value);
    Iterator iter = xquery.iterator();
    iter.open();
    Item item = new Item();
    while (iter.next(item)) {
      String itemStr = item.serialize();
      System.out.println(itemStr);
    }
    // clean up
    iter.close();
    iter.destroy();
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.