All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.linkedin.dagli.preparer.AbstractPreparer9 Maven / Gradle / Ivy

Go to download

DAG-oriented machine learning framework for bug-resistant, readable, efficient, maintainable and trivially deployable models in Java and other JVM languages

There is a newer version: 15.0.0-beta9
Show newest version
// AUTOGENERATED CODE.  DO NOT MODIFY DIRECTLY!  Instead, please modify the preparer/AbstractPreparerX.ftl file.
// See the README in the module's src/template directory for details.
package com.linkedin.dagli.preparer;

import com.linkedin.dagli.transformer.PreparedTransformer9;
import com.linkedin.dagli.objectio.ObjectReader;


/**
 * A common abstract base class that {@link Preparer}s prepared using an {@link PreparerMode} not known at compile-time
 * are highly encouraged to extend.  If a {@link Preparer} always uses the {@link PreparerMode#BATCH} or
 * {@link PreparerMode#STREAM} modes, it should derive from {@link AbstractBatchPreparer9} or
 * {@link AbstractStreamPreparer9} instead.
 *
 * Besides simplifying the code and improving readability, using the Dagli-provided base class helps insulate the
 * derived class's implementation from future changes in the Dagli Framework.
 *
 * @param  the type of the first input
 * @param  the type of the second input
 * @param  the type of the third input
 * @param  the type of the fourth input
 * @param  the type of the fifth input
 * @param  the type of the sixth input
 * @param  the type of the seventh input
 * @param  the type of the eighth input
 * @param  the type of the ninth input
 * @param  result type of the transformer prepared by this preparer
 * @param  the type of {@link com.linkedin.dagli.transformer.PreparedTransformer} prepared by this preparer
 */
public abstract class AbstractPreparer9>
    extends AbstractPreparer implements Preparer9 {

  @Override
  public final void processUnsafe(Object[] values) {
    Preparer9.super.processUnsafe(values);
  }

  @Override
  public final PreparerResultMixed, N> finishUnsafe(
      ObjectReader inputs) {
    return Preparer9.super.finishUnsafe(inputs);
  }
}