com.linkedin.dagli.preparer.TrivialPreparer10 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
DAG-oriented machine learning framework for bug-resistant, readable, efficient, maintainable and trivially deployable models in Java and other JVM languages
// AUTOGENERATED CODE. DO NOT MODIFY DIRECTLY! Instead, please modify the preparer/TrivialPreparerX.ftl file.
// See the README in the module's src/template directory for details.
package com.linkedin.dagli.preparer;
import com.linkedin.dagli.transformer.PreparedTransformer10;
/**
* Trivial "preparer" that simply returns a provided, prepared transformer of arity 10.
* @param the type of result produced by the prepared transformer.
* @param the type of prepared transformer that will be returned
*/
public class TrivialPreparer10>
extends AbstractStreamPreparer10 {
private final N _preparedForNewData;
private final PreparedTransformer10 super A, ? super B, ? super C, ? super D, ? super E, ? super F, ? super G, ? super H, ? super I, ? super J, ? extends R> _preparedForPreparationData;
/**
* Creates a new instance that will "prepare" the provided transformer.
*
* @param prepared the transformer which will result from this preparer.
*/
public TrivialPreparer10(N prepared) {
this(prepared, prepared);
}
/**
* Creates a new instance that will "prepare" the provided transformers.
*
* @param preparedForPreparationData the transformer to be used for preparation data
* @param preparedForNewData the transformer to be used for new data
*/
public TrivialPreparer10(
PreparedTransformer10 super A, ? super B, ? super C, ? super D, ? super E, ? super F, ? super G, ? super H, ? super I, ? super J, ? extends R> preparedForPreparationData,
N preparedForNewData) {
_preparedForNewData = preparedForNewData;
_preparedForPreparationData = preparedForPreparationData;
}
@Override
public PreparerResultMixed extends PreparedTransformer10 super A, ? super B, ? super C, ? super D, ? super E, ? super F, ? super G, ? super H, ? super I, ? super J, ? extends R>, N> finish() {
return new PreparerResultMixed<>(_preparedForPreparationData, _preparedForNewData);
}
@Override
public void process(A value1, B value2, C value3, D value4, E value5, F value6, G value7, H value8, I value9,
J value10) {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy