Package org.xadoop.xquerymr

Source Code of org.xadoop.xquerymr.XQueryMRZorbaConfFileTest

package org.xadoop.xquerymr;

import org.xadoop.XadoopConfig;
import org.xadoop.hadoop.HadoopConfFile;

/**
* A test for the XQueryMR config file (extends HadoopConfFile) for Zorba.
*
* @author Lukas Blunschi
*
*/
public class XQueryMRZorbaConfFileTest extends HadoopConfFile {

  public static void main(String[] args) {
    XadoopConfig config = new XadoopConfig("props/xadoop.properties");
    XQueryMRZorbaConfFile conf = new XQueryMRZorbaConfFile(config);
    conf.setMapredMapTasks(1);
    conf.setMapredReduceTasks(1);
    conf.setPipeline("Book");
    conf.setQueryFile("/example-prolog.xq");
    System.out.println(conf.toXml());
  }

}
TOP

Related Classes of org.xadoop.xquerymr.XQueryMRZorbaConfFileTest

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.