Package com.illumon.iris.importers
Class ImportFieldWriter
java.lang.Object
com.illumon.iris.importers.ImportFieldWriter
- Direct Known Subclasses:
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.Logger
log
-
Method Summary
Modifier and Type Method Description static double
accountingDouble(String value)
static int
accountingInt(String value)
static long
accountingLong(String value)
static LongFunction<DBDateTime>
dbDateTimeFromLong(ImporterColumnDefinition col, boolean strict)
static DBDateTime
dbDateTimeFromTimestamp(Timestamp sourceDateTime)
static DBDateTime
dbDateTimeFromTimestamp(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 LocalDate
localDateFromString(String str)
static Boolean
parseBoolean(String value)
void
processField()
static String
stripFirstCharacter(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
-