public final class BatchApply extends Object
Modifier and Type | Method and Description |
---|---|
static CloseableIterator<OutputRecord> |
applyModel(ModelsServiceProvider modelsServiceProvider,
String modelName,
CloseableIterator<? extends Record> inputRecordIterator,
ApplySettings applySettings)
Apply a model to several records, provided through an iterator.
|
static CloseableIterator<Set<OutputRecord>> |
applyModels(ModelsServiceProvider modelsServiceProvider,
Set<String> modelNames,
CloseableIterator<? extends Record> inputRecordIterator,
ApplySettings applySettings)
Apply a set of models to several records, provided through an iterator.
|
static Set<OutputRecord> |
applyModels(ModelsServiceProvider modelsServiceProvider,
Set<String> modelNames,
Record inputRecord,
ApplySettings applySettings)
Apply a set of models to a record.
|
public static CloseableIterator<OutputRecord> applyModel(ModelsServiceProvider modelsServiceProvider, String modelName, CloseableIterator<? extends Record> inputRecordIterator, ApplySettings applySettings)
modelsServiceProvider
- the connection to usemodelName
- the name of the model to applyinputRecordIterator
- the iterator of the input recordsapplySettings
- the ApplySettings
to usepublic static Set<OutputRecord> applyModels(ModelsServiceProvider modelsServiceProvider, Set<String> modelNames, Record inputRecord, ApplySettings applySettings)
modelsServiceProvider
- the connection to usemodelNames
- the set of models to applyinputRecord
- the record to apply the models toapplySettings
- the ApplySettings
to usepublic static CloseableIterator<Set<OutputRecord>> applyModels(ModelsServiceProvider modelsServiceProvider, Set<String> modelNames, CloseableIterator<? extends Record> inputRecordIterator, ApplySettings applySettings)
modelsServiceProvider
- the connection to usemodelNames
- the names of the model to applyinputRecordIterator
- the iterator of the input recordsapplySettings
- the ApplySettings
to useCopyright © 2005–2017 Zementis, Inc.. All rights reserved.