public class JpmmlModelOutputs extends Object implements ModelOutputs
| Constructor and Description |
|---|
JpmmlModelOutputs(Map<String,? extends Fields> declaredFields) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,? extends Fields> |
streamFields() |
Set<String> |
streams()
Convenience method that returns a set with all the streams declared by the
PMMLPredictorBolt, e.g. |
static ModelOutputs |
toDefaultStream(File pmmlModel) |
static ModelOutputs |
toDefaultStream(InputStream pmmlModel) |
static ModelOutputs |
toDefaultStream(org.dmg.pmml.PMML pmmlModel)
Factory method that creates an instance of
ModelOutputs that declares the predicted and output fields specified in the PMML model specified as argument into the default stream |
static ModelOutputs |
toDefaultStream(String blobKey) |
static ModelOutputs |
toDefaultStream(String blobKey,
Map config) |
static ModelOutputs |
toStreams(File pmmlModel,
List<String> streams) |
static ModelOutputs |
toStreams(InputStream pmmlModel,
List<String> streams) |
static ModelOutputs |
toStreams(org.dmg.pmml.PMML pmmlModel,
List<String> streams)
Factory method that creates an instance of
ModelOutputs that declares the predicted and output fields specified in the PMML model specified as argument into the list of streams specified |
static ModelOutputs |
toStreams(String blobKey,
List<String> streams) |
static ModelOutputs |
toStreams(String blobKey,
Map config,
List<String> streams) |
String |
toString() |
public Map<String,? extends Fields> streamFields()
streamFields in interface ModelOutputsPMMLPredictorBoltpublic Set<String> streams()
ModelOutputsConvenience method that returns a set with all the streams declared by the PMMLPredictorBolt, e.g. ModelOutputs.streamFields().keySet().
streams in interface ModelOutputspublic static ModelOutputs toDefaultStream(org.dmg.pmml.PMML pmmlModel)
Factory method that creates an instance of ModelOutputs that declares the predicted and output fields specified in the PMML model specified as argument into the default stream
public static ModelOutputs toDefaultStream(File pmmlModel)
public static ModelOutputs toDefaultStream(InputStream pmmlModel)
public static ModelOutputs toDefaultStream(String blobKey)
public static ModelOutputs toDefaultStream(String blobKey, Map config)
public static ModelOutputs toStreams(org.dmg.pmml.PMML pmmlModel, List<String> streams)
Factory method that creates an instance of ModelOutputs that declares the predicted and output fields specified in the PMML model specified as argument into the list of streams specified
public static ModelOutputs toStreams(File pmmlModel, List<String> streams)
public static ModelOutputs toStreams(InputStream pmmlModel, List<String> streams)
public static ModelOutputs toStreams(String blobKey, List<String> streams)
public static ModelOutputs toStreams(String blobKey, Map config, List<String> streams)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.