Class ATranslator<I,O,CalcT>

java.lang.Object
com.activeviam.source.common.api.impl.ATranslator<I,O,CalcT>
Type Parameters:
I - the input format. It is ILineReader for CSV, ResultSet for JDBC, Object for POJO.
O - the output format. Most of the time Object[].
CalcT - the calculator type
All Implemented Interfaces:
ITranslator<I,O,CalcT>
Direct Known Subclasses:
AHeaderTranslator, ATranslatorWithColumnCalculators, IdentityTranslator, MapTuplizer

@Deprecated(since="6.1.1", forRemoval=true) @DeprecatedApi(forRemoval="6.2", rationale="Use the AColumnCalculatorTranslator class instead.") public abstract class ATranslator<I,O,CalcT> extends Object implements ITranslator<I,O,CalcT>
Deprecated, for removal: This API element is subject to removal in a future version.
Use the ATranslatorWithColumnCalculators class instead.
The abstract class ATranslator implements the common methods of a translator. An abstract translator allows using calculators. It contains the list of the columnCalculators and the calculation context used by the calculators.
Author:
ActiveViam
  • Method Details

    • setColumnCalculators

      public void setColumnCalculators(List<IColumnCalculator<CalcT>> calculators)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ITranslator
      Configure the translator with its ordered list of column calculators. The order of the calculators in the list do matter: a given calculator should not be using values of columns that are set from calculators later in the list.
      Specified by:
      setColumnCalculators in interface ITranslator<I,O,CalcT>
      Parameters:
      calculators - The column calculators.
    • getColumnIndexes

      public Map<String,Integer> getColumnIndexes()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ITranslator
      Retrieves mapping name to column index in the output.
      Specified by:
      getColumnIndexes in interface ITranslator<I,O,CalcT>
      Returns:
      The column indexes of the output.