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.
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 Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Retrieves mapping name to column index in the output.voidsetColumnCalculators(List<IColumnCalculator<CalcT>> calculators) Deprecated, for removal: This API element is subject to removal in a future version.Configure the translator with its ordered list of column calculators.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.activeviam.source.common.api.ITranslator
translate
-
Method Details
-
setColumnCalculators
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ITranslatorConfigure 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:
setColumnCalculatorsin interfaceITranslator<I,O, CalcT> - Parameters:
calculators- The column calculators.
-
getColumnIndexes
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ITranslatorRetrieves mapping name to column index in the output.- Specified by:
getColumnIndexesin interfaceITranslator<I,O, CalcT> - Returns:
- The column indexes of the output.
-
ATranslatorWithColumnCalculatorsclass instead.