public class MapReduceConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
MapReduceConfiguration(org.w3c.dom.Document doc)
Creates a
MapReduceConfiguration from the given
xml Document. |
| Modifier and Type | Method and Description |
|---|---|
static MapReduceConfiguration |
create(java.io.File file)
Creates a
MapReduceConfiguration from the xml
coming from the given File. |
static MapReduceConfiguration |
create(java.io.InputStream ips)
Creates a
MapReduceConfiguration from the xml
coming from the given InputStream. |
MapReduce |
createMapReduce()
Creates a
MapReduce from the config. |
java.lang.String |
getFinalizeFunction() |
java.lang.String |
getMapFunction() |
java.lang.String |
getReduceFunction() |
public MapReduceConfiguration(org.w3c.dom.Document doc)
throws javax.xml.xpath.XPathExpressionException
MapReduceConfiguration from the given
xml Document.doc - the documentjavax.xml.xpath.XPathExpressionException - on errorpublic MapReduce createMapReduce()
MapReduce from the config.MapReducepublic static MapReduceConfiguration create(java.io.InputStream ips) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, javax.xml.xpath.XPathExpressionException
MapReduceConfiguration from the xml
coming from the given InputStream.ips - the InputStreamMapReduceConfigurationjavax.xml.parsers.ParserConfigurationException - on errororg.xml.sax.SAXException - on errorjava.io.IOException - on errorjavax.xml.xpath.XPathExpressionException - on errorpublic static MapReduceConfiguration create(java.io.File file) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, javax.xml.xpath.XPathExpressionException
MapReduceConfiguration from the xml
coming from the given File.file - the FileMapReduceConfigurationjavax.xml.parsers.ParserConfigurationException - on errororg.xml.sax.SAXException - on errorjava.io.IOException - on errorjavax.xml.xpath.XPathExpressionException - on errorpublic java.lang.String getMapFunction()
public java.lang.String getReduceFunction()
public java.lang.String getFinalizeFunction()
Copyright © 2013. All Rights Reserved.