public abstract class ModelMapper extends Mapper
Mappers
with a model.Constructor and Description |
---|
ModelMapper(TableSchema modelSchema,
TableSchema dataSchema,
Params params)
Constructs a ModelMapper.
|
Modifier and Type | Method and Description |
---|---|
protected TableSchema |
getModelSchema()
Get the schema of the model rows that are passed to
loadModel(List) . |
abstract void |
loadModel(List<Row> modelRows)
Load the model from the list of rows.
|
getDataSchema, getOutputSchema, map
public ModelMapper(TableSchema modelSchema, TableSchema dataSchema, Params params)
modelSchema
- The schema of the model rows passed to loadModel(List)
.dataSchema
- The schema of the input data rows.params
- The parameters of this ModelMapper.protected TableSchema getModelSchema()
loadModel(List)
.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.