Class RecordImpl<C extends Context>
- java.lang.Object
-
- com.univocity.parsers.common.record.RecordImpl<C>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]dataprivate RecordMetaDataImpl<C>metaData
-
Constructor Summary
Constructors Constructor Description RecordImpl(java.lang.String[] data, RecordMetaDataImpl metaData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int[]buildSelection(int[] selectedIndexes)<T extends java.lang.Enum<T>>
T[]buildSelection(java.lang.Class<T> enumType, T... selectedColumns)private java.lang.String[]buildSelection(java.lang.String[] selectedFields)booleanequals(java.lang.Object o)<T extends java.lang.Enum<T>>
java.util.Map<T,java.lang.String>fillEnumMap(java.util.Map<T,java.lang.String> map, T... selectedColumns)Fills a map with theStringvalues of this record.<T extends java.lang.Enum<T>>
java.util.Map<T,java.lang.Object>fillEnumObjectMap(java.util.Map<T,java.lang.Object> map, T... selectedColumns)Fills a map with the convertedObjectvalues of this record.java.util.Map<java.lang.String,java.lang.String>fillFieldMap(java.util.Map<java.lang.String,java.lang.String> map, java.lang.String... selectedFields)Fills a map with theStringvalues of this record.java.util.Map<java.lang.String,java.lang.Object>fillFieldObjectMap(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String... selectedFields)Fills a map with the convertedObjectvalues of this record.java.util.Map<java.lang.Integer,java.lang.String>fillIndexMap(java.util.Map<java.lang.Integer,java.lang.String> map, int... selectedIndexes)Fills a map with theStringvalues of this record.java.util.Map<java.lang.Integer,java.lang.Object>fillIndexObjectMap(java.util.Map<java.lang.Integer,java.lang.Object> map, int... selectedIndexes)Fills a map with the convertedObjectvalues of this record.java.math.BigDecimalgetBigDecimal(int columnIndex)Converts theStringvalue in the given column to aBigDecimaland returns the result.java.math.BigDecimalgetBigDecimal(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aBigDecimaland returns the result.java.math.BigDecimalgetBigDecimal(java.lang.Enum<?> column)Converts theStringvalue in the given column to aBigDecimaland returns the result.java.math.BigDecimalgetBigDecimal(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aBigDecimaland returns the result.java.math.BigDecimalgetBigDecimal(java.lang.String headerName)Converts theStringvalue in the given column to aBigDecimaland returns the result.java.math.BigDecimalgetBigDecimal(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aBigDecimaland returns the result.java.math.BigIntegergetBigInteger(int columnIndex)Converts theStringvalue in the given column to aBigIntegerand returns the result.java.math.BigIntegergetBigInteger(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aBigIntegerand returns the result.java.math.BigIntegergetBigInteger(java.lang.Enum<?> column)Converts theStringvalue in the given column to aBigIntegerand returns the result.java.math.BigIntegergetBigInteger(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aBigIntegerand returns the result.java.math.BigIntegergetBigInteger(java.lang.String headerName)Converts theStringvalue in the given column to aBigIntegerand returns the result.java.math.BigIntegergetBigInteger(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aBigIntegerand returns the result.java.lang.BooleangetBoolean(int columnIndex)Converts theStringvalue in the given column to aBooleanand returns the result.java.lang.BooleangetBoolean(int columnIndex, java.lang.String trueString, java.lang.String falseString)Converts theStringvalue in the given column to aBooleanand returns the result.java.lang.BooleangetBoolean(java.lang.Enum<?> column)Converts theStringvalue in the given column to aBooleanand returns the result.java.lang.BooleangetBoolean(java.lang.Enum<?> column, java.lang.String trueString, java.lang.String falseString)Converts theStringvalue in the given column to aBooleanand returns the result.java.lang.BooleangetBoolean(java.lang.String headerName)Converts theStringvalue in the given column to aBooleanand returns the result.java.lang.BooleangetBoolean(java.lang.String headerName, java.lang.String trueString, java.lang.String falseString)Converts theStringvalue in the given column to aBooleanand returns the result.java.lang.BytegetByte(int columnIndex)Converts theStringvalue in the given column to aByteand returns the result.java.lang.BytegetByte(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aByteand returns the result.java.lang.BytegetByte(java.lang.Enum<?> column)Converts theStringvalue in the given column to aByteand returns the result.java.lang.BytegetByte(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aByteand returns the result.java.lang.BytegetByte(java.lang.String headerName)Converts theStringvalue in the given column to aByteand returns the result.java.lang.BytegetByte(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aByteand returns the result.java.util.CalendargetCalendar(int columnIndex)Converts theStringvalue in the given column to aCalendarand returns the result.java.util.CalendargetCalendar(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aCalendarand returns the result.java.util.CalendargetCalendar(java.lang.Enum<?> column)Converts theStringvalue in the given column to aCalendarand returns the result.java.util.CalendargetCalendar(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aCalendarand returns the result.java.util.CalendargetCalendar(java.lang.String headerName)Converts theStringvalue in the given column to aCalendarand returns the result.java.util.CalendargetCalendar(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aCalendarand returns the result.java.lang.CharactergetChar(int columnIndex)Converts theStringvalue in the given column to aCharacterand returns the result.java.lang.CharactergetChar(java.lang.Enum<?> column)Converts theStringvalue in the given column to aCharacterand returns the result.java.lang.CharactergetChar(java.lang.String headerName)Converts theStringvalue in the given column to aCharacterand returns the result.java.util.DategetDate(int columnIndex)Converts theStringvalue in the given column to aDateand returns the result.java.util.DategetDate(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aDateand returns the result.java.util.DategetDate(java.lang.Enum<?> column)Converts theStringvalue in the given column to aDateand returns the result.java.util.DategetDate(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aDateand returns the result.java.util.DategetDate(java.lang.String headerName)Converts theStringvalue in the given column to aDateand returns the result.java.util.DategetDate(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aDateand returns the result.java.lang.DoublegetDouble(int columnIndex)Converts theStringvalue in the given column to aDoubleand returns the result.java.lang.DoublegetDouble(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aDoubleand returns the result.java.lang.DoublegetDouble(java.lang.Enum<?> column)Converts theStringvalue in the given column to aDoubleand returns the result.java.lang.DoublegetDouble(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aDoubleand returns the result.java.lang.DoublegetDouble(java.lang.String headerName)Converts theStringvalue in the given column to aDoubleand returns the result.java.lang.DoublegetDouble(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aDoubleand returns the result.java.lang.FloatgetFloat(int columnIndex)Converts theStringvalue in the given column to aFloatand returns the result.java.lang.FloatgetFloat(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aFloatand returns the result.java.lang.FloatgetFloat(java.lang.Enum<?> column)Converts theStringvalue in the given column to aFloatand returns the result.java.lang.FloatgetFloat(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aFloatand returns the result.java.lang.FloatgetFloat(java.lang.String headerName)Converts theStringvalue in the given column to aFloatand returns the result.java.lang.FloatgetFloat(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aLongand returns the result.java.lang.IntegergetInt(int columnIndex)Converts theStringvalue in the given column to aIntegerand returns the result.java.lang.IntegergetInt(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aIntegerand returns the result.java.lang.IntegergetInt(java.lang.Enum<?> column)Converts theStringvalue in the given column to aIntegerand returns the result.java.lang.IntegergetInt(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aIntegerand returns the result.java.lang.IntegergetInt(java.lang.String headerName)Converts theStringvalue in the given column to aIntegerand returns the result.java.lang.IntegergetInt(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aIntegerand returns the result.java.lang.LonggetLong(int columnIndex)Converts theStringvalue in the given column to aLongand returns the result.java.lang.LonggetLong(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aLongand returns the result.java.lang.LonggetLong(java.lang.Enum<?> column)Converts theStringvalue in the given column to aLongand returns the result.java.lang.LonggetLong(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aLongand returns the result.java.lang.LonggetLong(java.lang.String headerName)Converts theStringvalue in the given column to aLongand returns the result.java.lang.LonggetLong(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aLongand returns the result.RecordMetaDatagetMetaData()Returns theRecordMetaDataassociated with all records parsed from the input.java.lang.ShortgetShort(int columnIndex)Converts theStringvalue in the given column to aShortand returns the result.java.lang.ShortgetShort(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aShortand returns the result.java.lang.ShortgetShort(java.lang.Enum<?> column)Converts theStringvalue in the given column to aShortand returns the result.java.lang.ShortgetShort(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aShortand returns the result.java.lang.ShortgetShort(java.lang.String headerName)Converts theStringvalue in the given column to aShortand returns the result.java.lang.ShortgetShort(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Converts theStringvalue in the given column to aShortand returns the result.java.lang.StringgetString(int columnIndex)Returns theStringvalue in the given columnjava.lang.StringgetString(int columnIndex, int maxLength)Returns theStringvalue in the given column, truncating it to a given maximum lengthjava.lang.StringgetString(java.lang.Enum<?> column)Returns theStringvalue in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)java.lang.StringgetString(java.lang.Enum<?> column, int maxLength)Returns theStringvalue in the given column, truncating it to a given maximum lengthjava.lang.StringgetString(java.lang.String headerName)Returns theStringvalue in the given columnjava.lang.StringgetString(java.lang.String headerName, int maxLength)Returns theStringvalue in the given column, truncating it to a given maximum length<T> TgetValue(int columnIndex, java.lang.Class<T> expectedType)Returns the value contained in the given column.<T> TgetValue(int columnIndex, java.lang.Class<T> expectedType, Conversion... conversions)Returns the value contained in the given column, after applying a sequence of conversion over it.<T> TgetValue(int columnIndex, T defaultValue)Returns the value contained in the given column, or a default value if the column containsnull<T> TgetValue(int columnIndex, T defaultValue, Conversion... conversions)Returns the value contained in a given column, after applying a sequence of conversions over it.<T> TgetValue(java.lang.Enum<?> column, java.lang.Class<T> expectedType)Returns the value contained in the given column.<T> TgetValue(java.lang.Enum<?> column, java.lang.Class<T> expectedType, Conversion... conversions)Returns the value contained in the given column, after applying a sequence of conversion over it.<T> TgetValue(java.lang.Enum<?> column, T defaultValue)Returns the value contained in the given column, or a default value if the column containsnull<T> TgetValue(java.lang.Enum<?> column, T defaultValue, Conversion... conversions)Returns the value contained in a given column, after applying a sequence of conversions over it.<T> TgetValue(java.lang.String headerName, java.lang.Class<T> expectedType)Returns the value contained in the given column.<T> TgetValue(java.lang.String headerName, java.lang.Class<T> expectedType, Conversion... conversions)Returns the value contained in the given column, after applying a sequence of conversion over it.<T> TgetValue(java.lang.String headerName, T defaultValue)Returns the value contained in the given column, or a default value if the column containsnull<T> TgetValue(java.lang.String headerName, T defaultValue, Conversion... conversions)Returns the value contained in a given column, after applying a sequence of conversions over it.java.lang.String[]getValues()Returns the plain values obtained from a record parsed from the input.java.lang.String[]getValues(int... fieldIndexes)Returns a selection of plain values obtained from a record parsed from the input.java.lang.String[]getValues(java.lang.Enum<?>... fields)Returns a selection of plain values obtained from a record parsed from the input.java.lang.String[]getValues(java.lang.String... fieldNames)Returns a selection of plain values obtained from a record parsed from the input.inthashCode()<T extends java.lang.Enum<T>>
java.util.Map<T,java.lang.String>toEnumMap(java.lang.Class<T> enumType, T... selectedColumns)Converts the record into a map ofStringvalues.<T extends java.lang.Enum<T>>
java.util.Map<T,java.lang.Object>toEnumObjectMap(java.lang.Class<T> enumType, T... selectedColumns)Converts the record into a map ofObjectvalues.java.util.Map<java.lang.String,java.lang.String>toFieldMap(java.lang.String... selectedFields)Converts the record into a map ofStringvalues.java.util.Map<java.lang.String,java.lang.Object>toFieldObjectMap(java.lang.String... selectedFields)Converts the record into a map ofObjectvalues.java.util.Map<java.lang.Integer,java.lang.String>toIndexMap(int... selectedIndexes)Converts the record into a map ofStringvalues.java.util.Map<java.lang.Integer,java.lang.Object>toIndexObjectMap(int... selectedIndex)Converts the record into a map ofObjectvalues.java.lang.StringtoString()private java.lang.Stringtruncate(java.lang.String string, int maxLength)
-
-
-
Field Detail
-
data
private final java.lang.String[] data
-
metaData
private final RecordMetaDataImpl<C extends Context> metaData
-
-
Constructor Detail
-
RecordImpl
RecordImpl(java.lang.String[] data, RecordMetaDataImpl metaData)
-
-
Method Detail
-
getMetaData
public RecordMetaData getMetaData()
Description copied from interface:RecordReturns theRecordMetaDataassociated with all records parsed from the input. The metadata allows associating types, conversions and default values to any column, which will be used when performing operations that can convert plain input strings into object instances. Methods such asRecord.toFieldMap(String...),Record.fillFieldMap(Map, String...)and any other method that returns Objects will use the metadata information to perform data conversions.- Specified by:
getMetaDatain interfaceRecord- Returns:
- the metadata object that provides information and basic data conversion controls over all records parsed from the input.
-
getValues
public java.lang.String[] getValues()
Description copied from interface:RecordReturns the plain values obtained from a record parsed from the input.
-
getValue
public <T> T getValue(java.lang.String headerName, java.lang.Class<T> expectedType)Description copied from interface:RecordReturns the value contained in the given column.- Specified by:
getValuein interfaceRecord- Type Parameters:
T- the expected value type- Parameters:
headerName- the name of the column whose value will be returnedexpectedType- the expected type of the value. A conversion will be executed against the value to produce a result with the expected type.- Returns:
- the value this record holds at the given column
-
getValue
public <T> T getValue(java.lang.Enum<?> column, java.lang.Class<T> expectedType)Description copied from interface:RecordReturns the value contained in the given column.- Specified by:
getValuein interfaceRecord- Type Parameters:
T- the expected value type- Parameters:
column- the column whose value will be returnedexpectedType- the expected type of the value. A conversion will be executed against the value to produce a result with the expected type.- Returns:
- the value this record holds at the given column
-
getValue
public <T> T getValue(int columnIndex, java.lang.Class<T> expectedType)Description copied from interface:RecordReturns the value contained in the given column.- Specified by:
getValuein interfaceRecord- Type Parameters:
T- the expected value type- Parameters:
columnIndex- the position of the column whose value will be returnedexpectedType- the expected type of the value. A conversion will be executed against the value to produce a result with the expected type.- Returns:
- the value this record holds at the given column
-
getValue
public <T> T getValue(java.lang.String headerName, java.lang.Class<T> expectedType, Conversion... conversions)Description copied from interface:RecordReturns the value contained in the given column, after applying a sequence of conversion over it.- Specified by:
getValuein interfaceRecord- Type Parameters:
T- the expected value type- Parameters:
headerName- the name of the column whose value will be returnedexpectedType- the expected type of the value. A conversion will be executed against the value to produce a result with the expected type.conversions- the sequence ofConversions to apply over the column value.- Returns:
- the value this record holds at the given column
-
getValue
public <T> T getValue(java.lang.Enum<?> column, java.lang.Class<T> expectedType, Conversion... conversions)Description copied from interface:RecordReturns the value contained in the given column, after applying a sequence of conversion over it.- Specified by:
getValuein interfaceRecord- Type Parameters:
T- the expected value type- Parameters:
column- the column whose value will be returnedexpectedType- the expected type of the value. A conversion will be executed against the value to produce a result with the expected type.conversions- the sequence ofConversions to apply over the column value.- Returns:
- the value this record holds at the given column
-
getValue
public <T> T getValue(int columnIndex, java.lang.Class<T> expectedType, Conversion... conversions)Description copied from interface:RecordReturns the value contained in the given column, after applying a sequence of conversion over it.- Specified by:
getValuein interfaceRecord- Type Parameters:
T- the expected value type- Parameters:
columnIndex- the index of the column whose value will be returnedexpectedType- the expected type of the value. A conversion will be executed against the value to produce a result with the expected type.conversions- the sequence ofConversions to apply over the column value.- Returns:
- the value this record holds at the given column
-
getValue
public <T> T getValue(java.lang.String headerName, T defaultValue)Description copied from interface:RecordReturns the value contained in the given column, or a default value if the column containsnull- Specified by:
getValuein interfaceRecord- Type Parameters:
T- the expected value type- Parameters:
headerName- the name of the column whose value will be returneddefaultValue- The default value to use if the column containsnull. Its type will be used to derive the expected type of the value. A conversion will be executed against the value to produce a result with the expected type.- Returns:
- the value this record holds at the given column, or the default value in case the columns is
null
-
getValue
public <T> T getValue(java.lang.Enum<?> column, T defaultValue)Description copied from interface:RecordReturns the value contained in the given column, or a default value if the column containsnull- Specified by:
getValuein interfaceRecord- Type Parameters:
T- the expected value type- Parameters:
column- the column whose value will be returneddefaultValue- The default value to use if the column containsnull. Its type will be used to derive the expected type of the value. A conversion will be executed against the value to produce a result with the expected type.- Returns:
- the value this record holds at the given column, or the default value in case the columns is
null
-
getValue
public <T> T getValue(int columnIndex, T defaultValue)Description copied from interface:RecordReturns the value contained in the given column, or a default value if the column containsnull- Specified by:
getValuein interfaceRecord- Type Parameters:
T- the expected value type- Parameters:
columnIndex- index of the column whose value will be returneddefaultValue- The default value to use if the column containsnull. Its type will be used to derive the expected type of the value. A conversion will be executed against the value to produce a result with the expected type.- Returns:
- the value this record holds at the given column, or the default value in case the column is
null
-
getValue
public <T> T getValue(java.lang.String headerName, T defaultValue, Conversion... conversions)Description copied from interface:RecordReturns the value contained in a given column, after applying a sequence of conversions over it.- Specified by:
getValuein interfaceRecord- Type Parameters:
T- the expected value type- Parameters:
headerName- the name of the column whose value will be returneddefaultValue- The default value to use if the column containsnull.conversions- the sequence ofConversions to apply over the column value.- Returns:
- the value this record holds at the given column
-
getValue
public <T> T getValue(java.lang.Enum<?> column, T defaultValue, Conversion... conversions)Description copied from interface:RecordReturns the value contained in a given column, after applying a sequence of conversions over it.- Specified by:
getValuein interfaceRecord- Type Parameters:
T- the expected value type- Parameters:
column- the column whose value will be returneddefaultValue- The default value to use if the column containsnull.conversions- the sequence ofConversions to apply over the column value.- Returns:
- the value this record holds at the given column
-
getValue
public <T> T getValue(int columnIndex, T defaultValue, Conversion... conversions)Description copied from interface:RecordReturns the value contained in a given column, after applying a sequence of conversions over it.- Specified by:
getValuein interfaceRecord- Type Parameters:
T- the expected value type- Parameters:
columnIndex- the index of the column whose value will be returneddefaultValue- The default value to use if the column containsnull.conversions- the sequence ofConversions to apply over the column value.- Returns:
- the value this record holds at the given column
-
getString
public java.lang.String getString(java.lang.String headerName)
Description copied from interface:RecordReturns theStringvalue in the given column- Specified by:
getStringin interfaceRecord- Parameters:
headerName- the name of the column- Returns:
- the value stored in the given column,
nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getString
public java.lang.String getString(java.lang.Enum<?> column)
Description copied from interface:RecordReturns theStringvalue in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)- Specified by:
getStringin interfaceRecord- Parameters:
column- the column- Returns:
- the value stored in the given column,
nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getString
public java.lang.String getString(int columnIndex)
Description copied from interface:RecordReturns theStringvalue in the given column- Specified by:
getStringin interfaceRecord- Parameters:
columnIndex- the index of the column- Returns:
- the value stored in the given column,
nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getString
public java.lang.String getString(java.lang.String headerName, int maxLength)Description copied from interface:RecordReturns theStringvalue in the given column, truncating it to a given maximum length- Specified by:
getStringin interfaceRecord- Parameters:
headerName- the name of the columnmaxLength- the maximum number of characters to be returned.- Returns:
- the value stored in the given column,
nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getString
public java.lang.String getString(java.lang.Enum<?> column, int maxLength)Description copied from interface:RecordReturns theStringvalue in the given column, truncating it to a given maximum length- Specified by:
getStringin interfaceRecord- Parameters:
column- the columnmaxLength- the maximum number of characters to be returned.- Returns:
- the value stored in the given column,
nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getString
public java.lang.String getString(int columnIndex, int maxLength)Description copied from interface:RecordReturns theStringvalue in the given column, truncating it to a given maximum length- Specified by:
getStringin interfaceRecord- Parameters:
columnIndex- the index of the columnmaxLength- the maximum number of characters to be returned.- Returns:
- the value stored in the given column,
nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
truncate
private java.lang.String truncate(java.lang.String string, int maxLength)
-
getByte
public java.lang.Byte getByte(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aByteand returns the result. TheByteConversionconversion will be used perform the transformation.- Specified by:
getBytein interfaceRecord- Parameters:
headerName- the name of the columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Bytestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getByte
public java.lang.Byte getByte(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aByteand returns the result. TheByteConversionconversion will be used perform the transformation.- Specified by:
getBytein interfaceRecord- Parameters:
column- the columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Bytestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getByte
public java.lang.Byte getByte(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aByteand returns the result. TheByteConversionconversion will be used perform the transformation.- Specified by:
getBytein interfaceRecord- Parameters:
columnIndex- the index of columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Bytestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getShort
public java.lang.Short getShort(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aShortand returns the result. TheShortConversionconversion will be used perform the transformation.- Specified by:
getShortin interfaceRecord- Parameters:
headerName- the name of the columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Shortstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getShort
public java.lang.Short getShort(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aShortand returns the result. TheShortConversionconversion will be used perform the transformation.- Specified by:
getShortin interfaceRecord- Parameters:
column- the columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Shortstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getShort
public java.lang.Short getShort(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aShortand returns the result. TheShortConversionconversion will be used perform the transformation.- Specified by:
getShortin interfaceRecord- Parameters:
columnIndex- the index of columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Shortstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getInt
public java.lang.Integer getInt(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aIntegerand returns the result. TheIntegerConversionconversion will be used perform the transformation.- Specified by:
getIntin interfaceRecord- Parameters:
headerName- the name of the columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Integerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getInt
public java.lang.Integer getInt(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aIntegerand returns the result. TheIntegerConversionconversion will be used perform the transformation.- Specified by:
getIntin interfaceRecord- Parameters:
column- the columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Integerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getInt
public java.lang.Integer getInt(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aIntegerand returns the result. TheIntegerConversionconversion will be used perform the transformation.- Specified by:
getIntin interfaceRecord- Parameters:
columnIndex- the index of columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Integerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getLong
public java.lang.Long getLong(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aLongand returns the result. TheLongConversionconversion will be used perform the transformation.- Specified by:
getLongin interfaceRecord- Parameters:
headerName- the name of the columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Longstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getLong
public java.lang.Long getLong(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aLongand returns the result. TheLongConversionconversion will be used perform the transformation.- Specified by:
getLongin interfaceRecord- Parameters:
column- the columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Longstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getLong
public java.lang.Long getLong(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aLongand returns the result. TheLongConversionconversion will be used perform the transformation.- Specified by:
getLongin interfaceRecord- Parameters:
columnIndex- the index of columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Longstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getFloat
public java.lang.Float getFloat(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aLongand returns the result. TheFloatConversionconversion will be used perform the transformation.- Specified by:
getFloatin interfaceRecord- Parameters:
headerName- the name of the columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Longstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getFloat
public java.lang.Float getFloat(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aFloatand returns the result. TheFloatConversionconversion will be used perform the transformation.- Specified by:
getFloatin interfaceRecord- Parameters:
column- the columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Floatstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getFloat
public java.lang.Float getFloat(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aFloatand returns the result. TheFloatConversionconversion will be used perform the transformation.- Specified by:
getFloatin interfaceRecord- Parameters:
columnIndex- the index of columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Floatstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDouble
public java.lang.Double getDouble(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aDoubleand returns the result. TheDoubleConversionconversion will be used perform the transformation.- Specified by:
getDoublein interfaceRecord- Parameters:
headerName- the name of the columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Doublestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDouble
public java.lang.Double getDouble(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aDoubleand returns the result. TheDoubleConversionconversion will be used perform the transformation.- Specified by:
getDoublein interfaceRecord- Parameters:
column- the columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Doublestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDouble
public java.lang.Double getDouble(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aDoubleand returns the result. TheDoubleConversionconversion will be used perform the transformation.- Specified by:
getDoublein interfaceRecord- Parameters:
columnIndex- the index of columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
Doublestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getChar
public java.lang.Character getChar(java.lang.String headerName)
Description copied from interface:RecordConverts theStringvalue in the given column to aCharacterand returns the result. TheCharacterConversionconversion will be used perform the transformation.- Specified by:
getCharin interfaceRecord- Parameters:
headerName- the column name- Returns:
- the
Characterstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getChar
public java.lang.Character getChar(java.lang.Enum<?> column)
Description copied from interface:RecordConverts theStringvalue in the given column to aCharacterand returns the result. TheCharacterConversionconversion will be used perform the transformation.- Specified by:
getCharin interfaceRecord- Parameters:
column- the column- Returns:
- the
Characterstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getChar
public java.lang.Character getChar(int columnIndex)
Description copied from interface:RecordConverts theStringvalue in the given column to aCharacterand returns the result. TheCharacterConversionconversion will be used perform the transformation.- Specified by:
getCharin interfaceRecord- Parameters:
columnIndex- the column index- Returns:
- the
Characterstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBoolean
public java.lang.Boolean getBoolean(java.lang.String headerName)
Description copied from interface:RecordConverts theStringvalue in the given column to aBooleanand returns the result. TheBooleanConversionconversion will be used perform the transformation.- Specified by:
getBooleanin interfaceRecord- Parameters:
headerName- the column name- Returns:
- the
Booleanstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBoolean
public java.lang.Boolean getBoolean(java.lang.Enum<?> column)
Description copied from interface:RecordConverts theStringvalue in the given column to aBooleanand returns the result. TheBooleanConversionconversion will be used perform the transformation.- Specified by:
getBooleanin interfaceRecord- Parameters:
column- the column- Returns:
- the
Booleanstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBoolean
public java.lang.Boolean getBoolean(int columnIndex)
Description copied from interface:RecordConverts theStringvalue in the given column to aBooleanand returns the result. TheBooleanConversionconversion will be used perform the transformation.- Specified by:
getBooleanin interfaceRecord- Parameters:
columnIndex- the column index- Returns:
- the
Booleanstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBoolean
public java.lang.Boolean getBoolean(java.lang.String headerName, java.lang.String trueString, java.lang.String falseString)Description copied from interface:RecordConverts theStringvalue in the given column to aBooleanand returns the result. TheBooleanConversionconversion will be used perform the transformation.- Specified by:
getBooleanin interfaceRecord- Parameters:
headerName- the column nametrueString- aStringthat represents theBooleanvaluetruefalseString- aStringthat represents theBooleanvaluefalse- Returns:
- the
Booleanstored in the given column if its originalStringvalue matches either the trueString or falseString, otherwisenullor the default specified inRecordMetaData.defaultValueOf(String)
-
getBoolean
public java.lang.Boolean getBoolean(java.lang.Enum<?> column, java.lang.String trueString, java.lang.String falseString)Description copied from interface:RecordConverts theStringvalue in the given column to aBooleanand returns the result. TheBooleanConversionconversion will be used perform the transformation.- Specified by:
getBooleanin interfaceRecord- Parameters:
column- the columntrueString- aStringthat represents theBooleanvaluetruefalseString- aStringthat represents theBooleanvaluefalse- Returns:
- the
Booleanstored in the given column if its originalStringvalue matches either the trueString or falseString, otherwisenullor the default specified inRecordMetaData.defaultValueOf(String)
-
getBoolean
public java.lang.Boolean getBoolean(int columnIndex, java.lang.String trueString, java.lang.String falseString)Description copied from interface:RecordConverts theStringvalue in the given column to aBooleanand returns the result. TheBooleanConversionconversion will be used perform the transformation.- Specified by:
getBooleanin interfaceRecord- Parameters:
columnIndex- the column indextrueString- aStringthat represents theBooleanvaluetruefalseString- aStringthat represents theBooleanvaluefalse- Returns:
- the
Booleanstored in the given column if its originalStringvalue matches either the trueString or falseString, otherwisenullor the default specified inRecordMetaData.defaultValueOf(String)
-
getBigInteger
public java.math.BigInteger getBigInteger(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aBigIntegerand returns the result. TheBigIntegerConversionconversion will be used perform the transformation.- Specified by:
getBigIntegerin interfaceRecord- Parameters:
headerName- the column nameformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
BigIntegerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBigInteger
public java.math.BigInteger getBigInteger(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aBigIntegerand returns the result. TheBigIntegerConversionconversion will be used perform the transformation.- Specified by:
getBigIntegerin interfaceRecord- Parameters:
column- the columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
BigIntegerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBigInteger
public java.math.BigInteger getBigInteger(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aBigIntegerand returns the result. TheBigIntegerConversionconversion will be used perform the transformation.- Specified by:
getBigIntegerin interfaceRecord- Parameters:
columnIndex- the index of columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
BigIntegerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aBigDecimaland returns the result. TheBigDecimalConversionconversion will be used perform the transformation.- Specified by:
getBigDecimalin interfaceRecord- Parameters:
headerName- the column nameformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
BigDecimalstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aBigDecimaland returns the result. TheBigDecimalConversionconversion will be used perform the transformation.- Specified by:
getBigDecimalin interfaceRecord- Parameters:
column- the columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
BigDecimalstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aBigDecimaland returns the result. TheBigDecimalConversionconversion will be used perform the transformation.- Specified by:
getBigDecimalin interfaceRecord- Parameters:
columnIndex- the index of columnformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}- Returns:
- the
BigDecimalstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDate
public java.util.Date getDate(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aDateand returns the result. TheDateConversionconversion will be used perform the transformation.- Specified by:
getDatein interfaceRecord- Parameters:
headerName- the column nameformat- the numeric mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"lenient=true"}- Returns:
- the
Datestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDate
public java.util.Date getDate(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aDateand returns the result. TheDateConversionconversion will be used perform the transformation.- Specified by:
getDatein interfaceRecord- Parameters:
column- the columnformat- the date mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"lenient=true"}- Returns:
- the
Datestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDate
public java.util.Date getDate(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aDateand returns the result. TheDateConversionconversion will be used perform the transformation.- Specified by:
getDatein interfaceRecord- Parameters:
columnIndex- the index of columnformat- the date mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"lenient=true"}- Returns:
- the
Datestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getCalendar
public java.util.Calendar getCalendar(java.lang.String headerName, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aCalendarand returns the result. TheCalendarConversionconversion will be used perform the transformation.- Specified by:
getCalendarin interfaceRecord- Parameters:
headerName- the column nameformat- the date mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"lenient=true"}- Returns:
- the
Calendarstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getCalendar
public java.util.Calendar getCalendar(java.lang.Enum<?> column, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aCalendarand returns the result. TheCalendarConversionconversion will be used perform the transformation.- Specified by:
getCalendarin interfaceRecord- Parameters:
column- the columnformat- the date mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"lenient=true"}- Returns:
- the
Calendarstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getCalendar
public java.util.Calendar getCalendar(int columnIndex, java.lang.String format, java.lang.String... formatOptions)Description copied from interface:RecordConverts theStringvalue in the given column to aCalendarand returns the result. TheCalendarConversionconversion will be used perform the transformation.- Specified by:
getCalendarin interfaceRecord- Parameters:
columnIndex- the index of columnformat- the date mask to apply over the parsed contentformatOptions- a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified asproperty_name=property_value, e.g. options={"lenient=true"}- Returns:
- the
Calendarstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
buildSelection
private java.lang.String[] buildSelection(java.lang.String[] selectedFields)
-
buildSelection
private int[] buildSelection(int[] selectedIndexes)
-
buildSelection
public <T extends java.lang.Enum<T>> T[] buildSelection(java.lang.Class<T> enumType, T... selectedColumns)
-
toIndexMap
public java.util.Map<java.lang.Integer,java.lang.String> toIndexMap(int... selectedIndexes)
Description copied from interface:RecordConverts the record into a map ofStringvalues.- Specified by:
toIndexMapin interfaceRecord- Parameters:
selectedIndexes- the column indexes to use as keys of the map. If no selection then all indexes will be used.- Returns:
- a map containing the selected (or all) column indexes as the keys, and their respective values.
-
toFieldMap
public java.util.Map<java.lang.String,java.lang.String> toFieldMap(java.lang.String... selectedFields)
Description copied from interface:RecordConverts the record into a map ofStringvalues.- Specified by:
toFieldMapin interfaceRecord- Parameters:
selectedFields- the header names to use as keys of the map. If no selection then all headers will be used.- Returns:
- a map containing the selected (or all) header names as the keys, and their respective values.
-
toEnumMap
public <T extends java.lang.Enum<T>> java.util.Map<T,java.lang.String> toEnumMap(java.lang.Class<T> enumType, T... selectedColumns)Description copied from interface:RecordConverts the record into a map ofStringvalues.- Specified by:
toEnumMapin interfaceRecord- Type Parameters:
T- the enumeration type- Parameters:
enumType- the enumeration type.selectedColumns- the columns to use as keys of the map. If no selection then all values of the enumeration type will be used.- Returns:
- a map containing the selected (or all) columns as the keys, and their respective values.
-
fillFieldMap
public java.util.Map<java.lang.String,java.lang.String> fillFieldMap(java.util.Map<java.lang.String,java.lang.String> map, java.lang.String... selectedFields)Description copied from interface:RecordFills a map with theStringvalues of this record.- Specified by:
fillFieldMapin interfaceRecord- Parameters:
map- the map that will receive the valuesselectedFields- the header names to use as keys of the map- Returns:
- the input map, containing the selected header names as the keys, and their respective values.
-
fillIndexMap
public java.util.Map<java.lang.Integer,java.lang.String> fillIndexMap(java.util.Map<java.lang.Integer,java.lang.String> map, int... selectedIndexes)Description copied from interface:RecordFills a map with theStringvalues of this record.- Specified by:
fillIndexMapin interfaceRecord- Parameters:
map- the map that will receive the valuesselectedIndexes- the column indexes to use as keys of the map- Returns:
- the input map, containing the selected column indexes as the keys, and their respective values.
-
fillEnumMap
public <T extends java.lang.Enum<T>> java.util.Map<T,java.lang.String> fillEnumMap(java.util.Map<T,java.lang.String> map, T... selectedColumns)Description copied from interface:RecordFills a map with theStringvalues of this record.- Specified by:
fillEnumMapin interfaceRecord- Type Parameters:
T- the enumeration type- Parameters:
map- the map that will receive the valuesselectedColumns- the column to use as keys of the map- Returns:
- the input map, containing the selected header names as the keys, and their respective values.
-
toFieldObjectMap
public java.util.Map<java.lang.String,java.lang.Object> toFieldObjectMap(java.lang.String... selectedFields)
Description copied from interface:RecordConverts the record into a map ofObjectvalues. Conversions must be registered usingRecordMetaData.convertFields(Conversion[])orRecordMetaData.convertIndexes(Conversion[])(Conversion[])}. Columns without a known conversion will have their values put into the map as plainStrings.- Specified by:
toFieldObjectMapin interfaceRecord- Parameters:
selectedFields- the column names to use as keys of the map- Returns:
- a map containing the selected column names as the keys, and their respective values.
-
toIndexObjectMap
public java.util.Map<java.lang.Integer,java.lang.Object> toIndexObjectMap(int... selectedIndex)
Description copied from interface:RecordConverts the record into a map ofObjectvalues. Conversions must be registered usingRecordMetaData.convertFields(Conversion[])orRecordMetaData.convertIndexes(Conversion[])(Conversion[])}. Columns without a known conversion will have their values put into the map as plainStrings.- Specified by:
toIndexObjectMapin interfaceRecord- Parameters:
selectedIndex- the column indexes to use as keys of the map- Returns:
- a map containing the selected column indexes as the keys, and their respective values.
-
toEnumObjectMap
public <T extends java.lang.Enum<T>> java.util.Map<T,java.lang.Object> toEnumObjectMap(java.lang.Class<T> enumType, T... selectedColumns)Description copied from interface:RecordConverts the record into a map ofObjectvalues. Conversions must be registered usingRecordMetaData.convertFields(Conversion[])orRecordMetaData.convertIndexes(Conversion[])(Conversion[])}. Columns without a known conversion will have their values put into the map as plainStrings.- Specified by:
toEnumObjectMapin interfaceRecord- Type Parameters:
T- the enumeration type- Parameters:
enumType- the enumeration type.selectedColumns- the column to use as keys of the map- Returns:
- a map containing the selected columns as the keys, and their respective values.
-
fillFieldObjectMap
public java.util.Map<java.lang.String,java.lang.Object> fillFieldObjectMap(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String... selectedFields)Description copied from interface:RecordFills a map with the convertedObjectvalues of this record. Conversions must be registered usingRecordMetaData.convertFields(Conversion[])orRecordMetaData.convertIndexes(Conversion[])(Conversion[])}. Columns without a known conversion will have their values put into the map as plainStrings.- Specified by:
fillFieldObjectMapin interfaceRecord- Parameters:
map- the map that will receive the valuesselectedFields- the column names to use as keys of the map- Returns:
- the input map, containing the selected columns as the keys, and their respective values.
-
fillIndexObjectMap
public java.util.Map<java.lang.Integer,java.lang.Object> fillIndexObjectMap(java.util.Map<java.lang.Integer,java.lang.Object> map, int... selectedIndexes)Description copied from interface:RecordFills a map with the convertedObjectvalues of this record. Conversions must be registered usingRecordMetaData.convertFields(Conversion[])orRecordMetaData.convertIndexes(Conversion[])(Conversion[])}. Columns without a known conversion will have their values put into the map as plainStrings.- Specified by:
fillIndexObjectMapin interfaceRecord- Parameters:
map- the map that will receive the valuesselectedIndexes- the column indexes to use as keys of the map- Returns:
- the input map, containing the selected columns as the keys, and their respective values.
-
fillEnumObjectMap
public <T extends java.lang.Enum<T>> java.util.Map<T,java.lang.Object> fillEnumObjectMap(java.util.Map<T,java.lang.Object> map, T... selectedColumns)Description copied from interface:RecordFills a map with the convertedObjectvalues of this record. Conversions must be registered usingRecordMetaData.convertFields(Conversion[])orRecordMetaData.convertIndexes(Conversion[])(Conversion[])}. Columns without a known conversion will have their values put into the map as plainStrings.- Specified by:
fillEnumObjectMapin interfaceRecord- Type Parameters:
T- the enumeration type- Parameters:
map- the map that will receive the valuesselectedColumns- the column to use as keys of the map- Returns:
- the input map, containing the selected columns as the keys, and their respective values.
-
getBigInteger
public java.math.BigInteger getBigInteger(java.lang.String headerName)
Description copied from interface:RecordConverts theStringvalue in the given column to aBigIntegerand returns the result. TheBigIntegerConversionconversion will be used perform the transformation.- Specified by:
getBigIntegerin interfaceRecord- Parameters:
headerName- the column name- Returns:
- the
BigIntegerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBigInteger
public java.math.BigInteger getBigInteger(java.lang.Enum<?> column)
Description copied from interface:RecordConverts theStringvalue in the given column to aBigIntegerand returns the result. TheBigIntegerConversionconversion will be used perform the transformation.- Specified by:
getBigIntegerin interfaceRecord- Parameters:
column- the column- Returns:
- the
BigIntegerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBigInteger
public java.math.BigInteger getBigInteger(int columnIndex)
Description copied from interface:RecordConverts theStringvalue in the given column to aBigIntegerand returns the result. TheBigIntegerConversionconversion will be used perform the transformation.- Specified by:
getBigIntegerin interfaceRecord- Parameters:
columnIndex- the columnIndex- Returns:
- the
BigIntegerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(java.lang.String headerName)
Description copied from interface:RecordConverts theStringvalue in the given column to aBigDecimaland returns the result. TheBigDecimalConversionconversion will be used perform the transformation.- Specified by:
getBigDecimalin interfaceRecord- Parameters:
headerName- the column name- Returns:
- the
BigDecimalstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(java.lang.Enum<?> column)
Description copied from interface:RecordConverts theStringvalue in the given column to aBigDecimaland returns the result. TheBigDecimalConversionconversion will be used perform the transformation.- Specified by:
getBigDecimalin interfaceRecord- Parameters:
column- the column- Returns:
- the
BigDecimalstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(int columnIndex)
Description copied from interface:RecordConverts theStringvalue in the given column to aBigDecimaland returns the result. TheBigDecimalConversionconversion will be used perform the transformation.- Specified by:
getBigDecimalin interfaceRecord- Parameters:
columnIndex- the columnIndex- Returns:
- the
BigDecimalstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getByte
public java.lang.Byte getByte(java.lang.String headerName)
Description copied from interface:RecordConverts theStringvalue in the given column to aByteand returns the result. TheByteConversionconversion will be used perform the transformation.- Specified by:
getBytein interfaceRecord- Parameters:
headerName- the column name- Returns:
- the
Bytestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getByte
public java.lang.Byte getByte(java.lang.Enum<?> column)
Description copied from interface:RecordConverts theStringvalue in the given column to aByteand returns the result. TheByteConversionconversion will be used perform the transformation.- Specified by:
getBytein interfaceRecord- Parameters:
column- the column- Returns:
- the
Bytestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getByte
public java.lang.Byte getByte(int columnIndex)
Description copied from interface:RecordConverts theStringvalue in the given column to aByteand returns the result. TheByteConversionconversion will be used perform the transformation.- Specified by:
getBytein interfaceRecord- Parameters:
columnIndex- the columnIndex- Returns:
- the
Bytestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getShort
public java.lang.Short getShort(java.lang.String headerName)
Description copied from interface:RecordConverts theStringvalue in the given column to aShortand returns the result. TheShortConversionconversion will be used perform the transformation.- Specified by:
getShortin interfaceRecord- Parameters:
headerName- the column name- Returns:
- the
Shortstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getShort
public java.lang.Short getShort(java.lang.Enum<?> column)
Description copied from interface:RecordConverts theStringvalue in the given column to aShortand returns the result. TheShortConversionconversion will be used perform the transformation.- Specified by:
getShortin interfaceRecord- Parameters:
column- the column- Returns:
- the
Shortstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getShort
public java.lang.Short getShort(int columnIndex)
Description copied from interface:RecordConverts theStringvalue in the given column to aShortand returns the result. TheShortConversionconversion will be used perform the transformation.- Specified by:
getShortin interfaceRecord- Parameters:
columnIndex- the columnIndex- Returns:
- the
Shortstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getInt
public java.lang.Integer getInt(java.lang.String headerName)
Description copied from interface:RecordConverts theStringvalue in the given column to aIntegerand returns the result. TheIntegerConversionconversion will be used perform the transformation.- Specified by:
getIntin interfaceRecord- Parameters:
headerName- the column name- Returns:
- the
Integerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getInt
public java.lang.Integer getInt(java.lang.Enum<?> column)
Description copied from interface:RecordConverts theStringvalue in the given column to aIntegerand returns the result. TheIntegerConversionconversion will be used perform the transformation.- Specified by:
getIntin interfaceRecord- Parameters:
column- the column- Returns:
- the
Integerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getInt
public java.lang.Integer getInt(int columnIndex)
Description copied from interface:RecordConverts theStringvalue in the given column to aIntegerand returns the result. TheIntegerConversionconversion will be used perform the transformation.- Specified by:
getIntin interfaceRecord- Parameters:
columnIndex- the columnIndex- Returns:
- the
Integerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getLong
public java.lang.Long getLong(java.lang.String headerName)
Description copied from interface:RecordConverts theStringvalue in the given column to aLongand returns the result. TheLongConversionconversion will be used perform the transformation.- Specified by:
getLongin interfaceRecord- Parameters:
headerName- the column name- Returns:
- the
Longstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getLong
public java.lang.Long getLong(java.lang.Enum<?> column)
Description copied from interface:RecordConverts theStringvalue in the given column to aLongand returns the result. TheLongConversionconversion will be used perform the transformation.- Specified by:
getLongin interfaceRecord- Parameters:
column- the column- Returns:
- the
Longstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getLong
public java.lang.Long getLong(int columnIndex)
Description copied from interface:RecordConverts theStringvalue in the given column to aLongand returns the result. TheLongConversionconversion will be used perform the transformation.- Specified by:
getLongin interfaceRecord- Parameters:
columnIndex- the columnIndex- Returns:
- the
Longstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getFloat
public java.lang.Float getFloat(java.lang.String headerName)
Description copied from interface:RecordConverts theStringvalue in the given column to aFloatand returns the result. TheFloatConversionconversion will be used perform the transformation.- Specified by:
getFloatin interfaceRecord- Parameters:
headerName- the column name- Returns:
- the
Floatstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getFloat
public java.lang.Float getFloat(java.lang.Enum<?> column)
Description copied from interface:RecordConverts theStringvalue in the given column to aFloatand returns the result. TheFloatConversionconversion will be used perform the transformation.- Specified by:
getFloatin interfaceRecord- Parameters:
column- the column- Returns:
- the
Floatstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getFloat
public java.lang.Float getFloat(int columnIndex)
Description copied from interface:RecordConverts theStringvalue in the given column to aFloatand returns the result. TheFloatConversionconversion will be used perform the transformation.- Specified by:
getFloatin interfaceRecord- Parameters:
columnIndex- the columnIndex- Returns:
- the
Floatstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDouble
public java.lang.Double getDouble(java.lang.String headerName)
Description copied from interface:RecordConverts theStringvalue in the given column to aDoubleand returns the result. TheDoubleConversionconversion will be used perform the transformation.- Specified by:
getDoublein interfaceRecord- Parameters:
headerName- the column name- Returns:
- the
Doublestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDouble
public java.lang.Double getDouble(java.lang.Enum<?> column)
Description copied from interface:RecordConverts theStringvalue in the given column to aDoubleand returns the result. TheDoubleConversionconversion will be used perform the transformation.- Specified by:
getDoublein interfaceRecord- Parameters:
column- the column- Returns:
- the
Doublestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDouble
public java.lang.Double getDouble(int columnIndex)
Description copied from interface:RecordConverts theStringvalue in the given column to aDoubleand returns the result. TheDoubleConversionconversion will be used perform the transformation.- Specified by:
getDoublein interfaceRecord- Parameters:
columnIndex- the columnIndex- Returns:
- the
Doublestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDate
public java.util.Date getDate(java.lang.String headerName)
Description copied from interface:RecordConverts theStringvalue in the given column to aDateand returns the result. TheDateConversionconversion sequence registered usingRecordMetaData.convertFields(Conversion[])will be used perform the transformation.- Specified by:
getDatein interfaceRecord- Parameters:
headerName- the column name- Returns:
- the
Datestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDate
public java.util.Date getDate(java.lang.Enum<?> column)
Description copied from interface:RecordConverts theStringvalue in the given column to aDateand returns the result. TheDateConversionconversion sequence registered usingRecordMetaData.convertFields(Conversion[])will be used perform the transformation.- Specified by:
getDatein interfaceRecord- Parameters:
column- the column- Returns:
- the
Datestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDate
public java.util.Date getDate(int columnIndex)
Description copied from interface:RecordConverts theStringvalue in the given column to aDateand returns the result. TheDateConversionconversion sequence registered usingRecordMetaData.convertFields(Conversion[])will be used perform the transformation.- Specified by:
getDatein interfaceRecord- Parameters:
columnIndex- the column index- Returns:
- the
Datestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getCalendar
public java.util.Calendar getCalendar(java.lang.String headerName)
Description copied from interface:RecordConverts theStringvalue in the given column to aCalendarand returns the result. TheCalendarConversionconversion sequence registered usingRecordMetaData.convertFields(Conversion[])will be used perform the transformation.- Specified by:
getCalendarin interfaceRecord- Parameters:
headerName- the column name- Returns:
- the
Calendarstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getCalendar
public java.util.Calendar getCalendar(java.lang.Enum<?> column)
Description copied from interface:RecordConverts theStringvalue in the given column to aCalendarand returns the result. TheCalendarConversionconversion sequence registered usingRecordMetaData.convertFields(Conversion[])will be used perform the transformation.- Specified by:
getCalendarin interfaceRecord- Parameters:
column- the column- Returns:
- the
Calendarstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getCalendar
public java.util.Calendar getCalendar(int columnIndex)
Description copied from interface:RecordConverts theStringvalue in the given column to aCalendarand returns the result. TheCalendarConversionconversion sequence registered usingRecordMetaData.convertFields(Conversion[])will be used perform the transformation.- Specified by:
getCalendarin interfaceRecord- Parameters:
columnIndex- the column index- Returns:
- the
Calendarstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getValues
public java.lang.String[] getValues(java.lang.String... fieldNames)
Description copied from interface:RecordReturns a selection of plain values obtained from a record parsed from the input.
-
getValues
public java.lang.String[] getValues(int... fieldIndexes)
Description copied from interface:RecordReturns a selection of plain values obtained from a record parsed from the input.
-
getValues
public java.lang.String[] getValues(java.lang.Enum<?>... fields)
Description copied from interface:RecordReturns a selection of plain values obtained from a record parsed from the input.
-
-