Package com.illumon.iris.importers
Class ImportFieldWriter
java.lang.Object
com.illumon.iris.importers.ImportFieldWriter
- Direct Known Subclasses:
CsvColumnDataTransformer,CsvFieldWriter,JdbcFieldWriter
public abstract class ImportFieldWriter extends Object
This class encapsulates common transformations that can be used in ImportSource elements. This class includes
methods for code generation, and all internal protected methods are intended for use with dynamic code generation/
-
Field Summary
Fields Modifier and Type Field Description protected com.fishlib.io.logger.Loggerlog -
Method Summary
Modifier and Type Method Description static doubleaccountingDouble(String value)static intaccountingInt(String value)static longaccountingLong(String value)static LongFunction<DBDateTime>dbDateTimeFromLong(ImporterColumnDefinition col, boolean strict)static DBDateTimedbDateTimeFromTimestamp(Timestamp sourceDateTime)static DBDateTimedbDateTimeFromTimestamp(Timestamp sourceDateTime, String sourceColumnName, boolean strict)protected BigDecimal[]getBigDecimalArray(String value, boolean strict)protected BigDecimal[]getBigDecimalArray(String value, boolean strict, String arrayDelimiter)protected BigDecimal[]getBigDecimalArray(String value, String arrayDelimiter)protected BigInteger[]getBigIntegerArray(String value, boolean strict)protected BigInteger[]getBigIntegerArray(String value, boolean strict, String arrayDelimiter)protected BigInteger[]getBigIntegerArray(String value, String arrayDelimiter)protected Boolean[]getBooleanArray(String value, boolean strict)protected Boolean[]getBooleanArray(String value, boolean strict, String arrayDelimiter)protected Boolean[]getBooleanArray(String value, String arrayDelimiter)protected byte[]getByteArray(String value, boolean strict)protected byte[]getByteArray(String value, boolean strict, String arrayDelimiter)protected byte[]getByteArray(String value, String arrayDelimiter)protected char[]getCharArray(String value, boolean strict)protected char[]getCharArray(String value, boolean strict, String arrayDelimiter)protected char[]getCharArray(String value, String arrayDelimiter)protected DBDateTime[]getDBDateTimeArray(String value, boolean strict)protected double[]getDoubleArray(String value, boolean strict)protected double[]getDoubleArray(String value, boolean strict, String arrayDelimiter)double[]getDoubleArray(String value, String arrayDelimiter)static IntFunction<String>getEnumFormatter(ImporterColumnDefinition col, boolean strict)protected float[]getFloatArray(String value, boolean strict)protected float[]getFloatArray(String value, boolean strict, String arrayDelimiter)protected float[]getFloatArray(String value, String arrayDelimiter)protected int[]getIntArray(String value, boolean strict)protected int[]getIntArray(String value, boolean strict, String arrayDelimiter)protected int[]getIntArray(String value, String arrayDelimiter)protected LocalDate[]getLocalDateArray(String value, boolean strict)protected LocalDate[]getLocalDateArray(String value, boolean strict, String arrayDelimiter)protected LocalDate[]getLocalDateArray(String value, String arrayDelimiter)protected LocalTime[]getLocalTimeArray(String value, boolean strict)protected LocalTime[]getLocalTimeArray(String value, boolean strict, String arrayDelimiter)protected LocalTime[]getLocalTimeArray(String value, String arrayDelimiter)protected long[]getLongArray(String value, boolean strict)protected long[]getLongArray(String value, boolean strict, String arrayDelimiter)long[]getLongArray(String value, String arrayDelimiter)protected short[]getShortArray(String value, boolean strict)protected short[]getShortArray(String value, boolean strict, String arrayDelimiter)protected short[]getShortArray(String value, String arrayDelimiter)static LocalDatelocalDateFromString(String str)static BooleanparseBoolean(String value)voidprocessField()static StringstripFirstCharacter(String value)static longtoISONanos(String value)
-
Field Details
-
log
protected final com.fishlib.io.logger.Logger log
-
-
Method Details
-
processField
- Throws:
IOException
-
parseBoolean
-
getLongArray
-
getLongArray
-
getLongArray
-
getDoubleArray
-
getDoubleArray
-
getDoubleArray
-
getBooleanArray
-
getBooleanArray
-
getBooleanArray
@DynamicUse protected Boolean[] getBooleanArray(String value, boolean strict, String arrayDelimiter) -
getByteArray
-
getByteArray
-
getByteArray
-
getCharArray
-
getCharArray
-
getCharArray
-
getFloatArray
-
getFloatArray
-
getFloatArray
-
getIntArray
-
getIntArray
-
getIntArray
-
getShortArray
-
getShortArray
-
getShortArray
-
getBigDecimalArray
-
getBigDecimalArray
-
getBigDecimalArray
@DynamicUse protected BigDecimal[] getBigDecimalArray(String value, boolean strict, String arrayDelimiter) -
getBigIntegerArray
-
getBigIntegerArray
-
getBigIntegerArray
@DynamicUse protected BigInteger[] getBigIntegerArray(String value, boolean strict, String arrayDelimiter) -
getLocalTimeArray
-
getLocalTimeArray
-
getLocalTimeArray
@DynamicUse protected LocalTime[] getLocalTimeArray(String value, boolean strict, String arrayDelimiter) -
getLocalDateArray
-
getLocalDateArray
-
getLocalDateArray
@DynamicUse protected LocalDate[] getLocalDateArray(String value, boolean strict, String arrayDelimiter) -
dbDateTimeFromTimestamp
-
dbDateTimeFromTimestamp
@DynamicUse public static DBDateTime dbDateTimeFromTimestamp(Timestamp sourceDateTime, String sourceColumnName, boolean strict) -
dbDateTimeFromLong
@DynamicUse public static LongFunction<DBDateTime> dbDateTimeFromLong(ImporterColumnDefinition col, boolean strict) -
localDateFromString
-
getEnumFormatter
@DynamicUse public static IntFunction<String> getEnumFormatter(ImporterColumnDefinition col, boolean strict) -
accountingInt
-
accountingLong
-
stripFirstCharacter
-
accountingDouble
-
getDBDateTimeArray
-
toISONanos
-