public class ValueMetaConverter extends Object implements Serializable, IValueMetaConverter
Important note:
This class is not intended to mimic the conversions that exist on PDI! It handles
conversions from and to Avro/Parquet/Orc format, as so it must only take in consideration those Specs!
Created by tkafalas on 12/8/2017.
| Constructor and Description |
|---|
ValueMetaConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
convertFromBigNumberMetaInterface(int targetValueMetaType,
Object value) |
protected Object |
convertFromBinaryMetaInterface(int targetValueMetaType,
Object value) |
protected Object |
convertFromBooleanMetaInterface(int targetValueMetaType,
Object value) |
protected Object |
convertFromDateMetaInterface(int targetValueMetaType,
Object value) |
protected Object |
convertFromInetMetaInterface(int targetValueMetaType,
Object value) |
protected Object |
convertFromIntegerMetaInterface(int targetValueMetaType,
Object value) |
protected Object |
convertFromNumberMetaInterface(int targetValueMetaType,
Object value) |
protected Object |
convertFromSerializableMetaInterface(int targetValueMetaType,
Object value) |
Object |
convertFromSourceToTargetDataType(int sourceValueMetaType,
int targetValueMetaType,
Object value) |
protected Object |
convertFromStringMetaInterface(int targetValueMetaType,
Object value) |
protected Object |
convertFromTimestampMetaInterface(int targetValueMetaType,
Object value) |
SimpleDateFormat |
getDatePattern() |
int |
getPrecision() |
void |
setDatePattern(SimpleDateFormat datePattern) |
void |
setPrecision(int precision) |
public SimpleDateFormat getDatePattern()
public void setDatePattern(SimpleDateFormat datePattern)
setDatePattern in interface IValueMetaConverterpublic int getPrecision()
public void setPrecision(int precision)
public Object convertFromSourceToTargetDataType(int sourceValueMetaType, int targetValueMetaType, Object value) throws ValueMetaConversionException
convertFromSourceToTargetDataType in interface IValueMetaConvertersourceValueMetaType - The source ValueMeta Type defined in the ValueMetaInterfacetargetValueMetaType - The target ValueMeta Type defined in the ValueMetaInterfacevalue - the source value to be convertedValueMetaConversionExceptionprotected Object convertFromStringMetaInterface(int targetValueMetaType, Object value) throws ValueMetaConversionException
ValueMetaConversionExceptionprotected Object convertFromDateMetaInterface(int targetValueMetaType, Object value) throws ValueMetaConversionException
ValueMetaConversionExceptionprotected Object convertFromNumberMetaInterface(int targetValueMetaType, Object value) throws ValueMetaConversionException
ValueMetaConversionExceptionprotected Object convertFromBooleanMetaInterface(int targetValueMetaType, Object value) throws ValueMetaConversionException
ValueMetaConversionExceptionprotected Object convertFromIntegerMetaInterface(int targetValueMetaType, Object value) throws ValueMetaConversionException
ValueMetaConversionExceptionprotected Object convertFromBigNumberMetaInterface(int targetValueMetaType, Object value) throws ValueMetaConversionException
ValueMetaConversionExceptionprotected Object convertFromTimestampMetaInterface(int targetValueMetaType, Object value) throws ValueMetaConversionException
ValueMetaConversionExceptionprotected Object convertFromInetMetaInterface(int targetValueMetaType, Object value) throws ValueMetaConversionException
ValueMetaConversionExceptionprotected Object convertFromBinaryMetaInterface(int targetValueMetaType, Object value) throws ValueMetaConversionException
ValueMetaConversionExceptionprotected Object convertFromSerializableMetaInterface(int targetValueMetaType, Object value) throws ValueMetaConversionException
ValueMetaConversionExceptionCopyright © 2020 Hitachi Vantara. All rights reserved.