public class JpmmlFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JpmmlFactory.ModelRunnerFromBlobStore
Creates a
JPmmlModelRunner writing to the default stream. |
static class |
JpmmlFactory.ModelRunnerFromFile |
Constructor and Description |
---|
JpmmlFactory() |
Modifier and Type | Method and Description |
---|---|
static InputStream |
getPmmlModelBlob(String blobKey)
Returns PMML model from Blobstore.
|
static InputStream |
getPmmlModelBlob(String blobKey,
Map config)
Returns PMML model from Blobstore
|
static org.jpmml.evaluator.Evaluator |
newEvaluator(File file)
Creates a new
Evaluator object representing the PMML model defined in the XML File specified as argument |
static org.jpmml.evaluator.Evaluator |
newEvaluator(InputStream stream)
Creates a new
Evaluator object representing the PMML model defined in the XML File specified as argument |
static org.jpmml.evaluator.Evaluator |
newEvaluator(org.dmg.pmml.PMML pmml)
Creates a new
Evaluator object representing the PMML model defined in the PMML argument |
static org.jpmml.evaluator.Evaluator |
newEvaluator(String blobKey)
Creates a new
Evaluator object representing the PMML model uploaded to the Blobstore using the blob key specified as argument. |
static org.jpmml.evaluator.Evaluator |
newEvaluator(String blobKey,
Map config)
Creates a new
Evaluator object representing the PMML model uploaded to the Blobstore using the blob key specified as argument. |
static org.dmg.pmml.PMML |
newPmml(File file)
Creates a new
PMML object representing the PMML model defined in the XML File specified as argument |
static org.dmg.pmml.PMML |
newPmml(InputStream stream)
Creates a new
PMML object representing the PMML model defined in the InputStream specified as argument |
static org.dmg.pmml.PMML |
newPmml(String blobKey)
Creates a new
PMML object representing the PMML model uploaded to the Blobstore with key specified as argument. |
static org.dmg.pmml.PMML |
newPmml(String blobKey,
Map config)
Creates a new
PMML object representing the PMML model uploaded to the Blobstore with key specified as argument. |
public static org.dmg.pmml.PMML newPmml(File file) throws JAXBException, SAXException, IOException
Creates a new PMML
object representing the PMML model defined in the XML File
specified as argument
JAXBException
SAXException
IOException
public static org.dmg.pmml.PMML newPmml(InputStream stream) throws JAXBException, SAXException, IOException
Creates a new PMML
object representing the PMML model defined in the InputStream
specified as argument
JAXBException
SAXException
IOException
public static org.dmg.pmml.PMML newPmml(String blobKey) throws JAXBException, SAXException, IOException
Creates a new PMML
object representing the PMML model uploaded to the Blobstore with key specified as argument. Uses Storm config as returned by Utils.readStormConfig()
to get the Blobstore client
JAXBException
SAXException
IOException
public static org.dmg.pmml.PMML newPmml(String blobKey, Map config) throws JAXBException, SAXException, IOException
Creates a new PMML
object representing the PMML model uploaded to the Blobstore with key specified as argument. Uses the specified configuration to get the Blobstore client
JAXBException
SAXException
IOException
public static InputStream getPmmlModelBlob(String blobKey)
Returns PMML model from Blobstore. Uses Storm config as returned by Utils.readStormConfig()
blobKey
- key of PMML model in Blobstorepublic static InputStream getPmmlModelBlob(String blobKey, Map config)
Returns PMML model from Blobstore
blobKey
- key of PMML model in Blobstoreconfig
- Configuration to use to get Blobstore clientpublic static org.jpmml.evaluator.Evaluator newEvaluator(org.dmg.pmml.PMML pmml)
Creates a new Evaluator
object representing the PMML model defined in the PMML
argument
public static org.jpmml.evaluator.Evaluator newEvaluator(File file) throws IOException, JAXBException, SAXException
Creates a new Evaluator
object representing the PMML model defined in the XML File
specified as argument
IOException
JAXBException
SAXException
public static org.jpmml.evaluator.Evaluator newEvaluator(InputStream stream) throws IOException, JAXBException, SAXException
Creates a new Evaluator
object representing the PMML model defined in the XML File
specified as argument
IOException
JAXBException
SAXException
public static org.jpmml.evaluator.Evaluator newEvaluator(String blobKey) throws IOException, JAXBException, SAXException
Creates a new Evaluator
object representing the PMML model uploaded to the Blobstore using the blob key specified as argument. Uses Storm config as returned by Utils.readStormConfig()
to get the Blobstore client
IOException
JAXBException
SAXException
public static org.jpmml.evaluator.Evaluator newEvaluator(String blobKey, Map config) throws IOException, JAXBException, SAXException
Creates a new Evaluator
object representing the PMML model uploaded to the Blobstore using the blob key specified as argument. Uses the specified configuration to get the Blobstore client
IOException
JAXBException
SAXException
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.