Interface Record
- All Known Implementing Classes:
RecordImpl
public interface Record
A record parsed from the input, with convenience methods for easier data manipulation.
Records are obtained from
AbstractParser methods such as
-
Method Summary
Modifier and TypeMethodDescriptionfillEnumMap(Map<T, String> map, T... selectedColumns) Fills a map with theStringvalues of this record.fillEnumObjectMap(Map<T, Object> map, T... selectedColumns) Fills a map with the convertedObjectvalues of this record.fillFieldMap(Map<String, String> map, String... selectedFields) Fills a map with theStringvalues of this record.fillFieldObjectMap(Map<String, Object> map, String... selectedFields) Fills a map with the convertedObjectvalues of this record.fillIndexMap(Map<Integer, String> map, int... selectedIndexes) Fills a map with theStringvalues of this record.fillIndexObjectMap(Map<Integer, Object> map, int... selectedIndexes) Fills a map with the convertedObjectvalues of this record.getBigDecimal(int columnIndex) Converts theStringvalue in the given column to aBigDecimaland returns the result.getBigDecimal(int columnIndex, String format, String... formatOptions) Converts theStringvalue in the given column to aBigDecimaland returns the result.getBigDecimal(Enum<?> column) Converts theStringvalue in the given column to aBigDecimaland returns the result.getBigDecimal(Enum<?> column, String format, String... formatOptions) Converts theStringvalue in the given column to aBigDecimaland returns the result.getBigDecimal(String headerName) Converts theStringvalue in the given column to aBigDecimaland returns the result.getBigDecimal(String headerName, String format, String... formatOptions) Converts theStringvalue in the given column to aBigDecimaland returns the result.getBigInteger(int columnIndex) Converts theStringvalue in the given column to aBigIntegerand returns the result.getBigInteger(int columnIndex, String format, String... formatOptions) Converts theStringvalue in the given column to aBigIntegerand returns the result.getBigInteger(Enum<?> column) Converts theStringvalue in the given column to aBigIntegerand returns the result.getBigInteger(Enum<?> column, String format, String... formatOptions) Converts theStringvalue in the given column to aBigIntegerand returns the result.getBigInteger(String headerName) Converts theStringvalue in the given column to aBigIntegerand returns the result.getBigInteger(String headerName, String format, String... formatOptions) Converts theStringvalue in the given column to aBigIntegerand returns the result.getBoolean(int columnIndex) Converts theStringvalue in the given column to aBooleanand returns the result.getBoolean(int columnIndex, String trueString, String falseString) Converts theStringvalue in the given column to aBooleanand returns the result.getBoolean(Enum<?> column) Converts theStringvalue in the given column to aBooleanand returns the result.getBoolean(Enum<?> column, String trueString, String falseString) Converts theStringvalue in the given column to aBooleanand returns the result.getBoolean(String headerName) Converts theStringvalue in the given column to aBooleanand returns the result.getBoolean(String headerName, String trueString, String falseString) Converts theStringvalue in the given column to aBooleanand returns the result.getByte(int columnIndex) Converts theStringvalue in the given column to aByteand returns the result.Converts theStringvalue in the given column to aByteand returns the result.Converts theStringvalue in the given column to aByteand returns the result.Converts theStringvalue in the given column to aByteand returns the result.Converts theStringvalue in the given column to aByteand returns the result.Converts theStringvalue in the given column to aByteand returns the result.getCalendar(int columnIndex) Converts theStringvalue in the given column to aCalendarand returns the result.getCalendar(int columnIndex, String format, String... formatOptions) Converts theStringvalue in the given column to aCalendarand returns the result.getCalendar(Enum<?> column) Converts theStringvalue in the given column to aCalendarand returns the result.getCalendar(Enum<?> column, String format, String... formatOptions) Converts theStringvalue in the given column to aCalendarand returns the result.getCalendar(String headerName) Converts theStringvalue in the given column to aCalendarand returns the result.getCalendar(String headerName, String format, String... formatOptions) Converts theStringvalue in the given column to aCalendarand returns the result.getChar(int columnIndex) Converts theStringvalue in the given column to aCharacterand returns the result.Converts theStringvalue in the given column to aCharacterand returns the result.Converts theStringvalue in the given column to aCharacterand returns the result.getDate(int columnIndex) Converts theStringvalue in the given column to aDateand returns the result.Converts theStringvalue in the given column to aDateand returns the result.Converts theStringvalue in the given column to aDateand returns the result.Converts theStringvalue in the given column to aDateand returns the result.Converts theStringvalue in the given column to aDateand returns the result.Converts theStringvalue in the given column to aDateand returns the result.getDouble(int columnIndex) Converts theStringvalue in the given column to aDoubleand returns the result.Converts theStringvalue in the given column to aDoubleand returns the result.Converts theStringvalue in the given column to aDoubleand returns the result.Converts theStringvalue in the given column to aDoubleand returns the result.Converts theStringvalue in the given column to aDoubleand returns the result.Converts theStringvalue in the given column to aDoubleand returns the result.getFloat(int columnIndex) Converts theStringvalue in the given column to aFloatand returns the result.Converts theStringvalue in the given column to aFloatand returns the result.Converts theStringvalue in the given column to aFloatand returns the result.Converts theStringvalue in the given column to aFloatand returns the result.Converts theStringvalue in the given column to aFloatand returns the result.Converts theStringvalue in the given column to aLongand returns the result.getInt(int columnIndex) Converts theStringvalue in the given column to aIntegerand returns the result.Converts theStringvalue in the given column to aIntegerand returns the result.Converts theStringvalue in the given column to aIntegerand returns the result.Converts theStringvalue in the given column to aIntegerand returns the result.Converts theStringvalue in the given column to aIntegerand returns the result.Converts theStringvalue in the given column to aIntegerand returns the result.getLong(int columnIndex) Converts theStringvalue in the given column to aLongand returns the result.Converts theStringvalue in the given column to aLongand returns the result.Converts theStringvalue in the given column to aLongand returns the result.Converts theStringvalue in the given column to aLongand returns the result.Converts theStringvalue in the given column to aLongand returns the result.Converts theStringvalue in the given column to aLongand returns the result.Returns theRecordMetaDataassociated with all records parsed from the input.getShort(int columnIndex) Converts theStringvalue in the given column to aShortand returns the result.Converts theStringvalue in the given column to aShortand returns the result.Converts theStringvalue in the given column to aShortand returns the result.Converts theStringvalue in the given column to aShortand returns the result.Converts theStringvalue in the given column to aShortand returns the result.Converts theStringvalue in the given column to aShortand returns the result.getString(int columnIndex) Returns theStringvalue in the given columngetString(int columnIndex, int maxLength) Returns theStringvalue in the given column, truncating it to a given maximum lengthReturns theStringvalue in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)Returns theStringvalue in the given column, truncating it to a given maximum lengthReturns theStringvalue in the given columnReturns theStringvalue in the given column, truncating it to a given maximum length<T> TReturns the value contained in the given column.<T> TgetValue(int columnIndex, 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> TReturns the value contained in the given column.<T> TgetValue(Enum<?> column, Class<T> expectedType, Conversion... conversions) Returns the value contained in the given column, after applying a sequence of conversion over it.<T> TReturns the value contained in the given column, or a default value if the column containsnull<T> TgetValue(Enum<?> column, T defaultValue, Conversion... conversions) Returns the value contained in a given column, after applying a sequence of conversions over it.<T> TReturns the value contained in the given column.<T> TgetValue(String headerName, Class<T> expectedType, Conversion... conversions) Returns the value contained in the given column, after applying a sequence of conversion over it.<T> TReturns the value contained in the given column, or a default value if the column containsnull<T> TgetValue(String headerName, T defaultValue, Conversion... conversions) Returns the value contained in a given column, after applying a sequence of conversions over it.String[]Returns the plain values obtained from a record parsed from the input.String[]getValues(int... fieldIndexes) Returns a selection of plain values obtained from a record parsed from the input.String[]Returns a selection of plain values obtained from a record parsed from the input.String[]Returns a selection of plain values obtained from a record parsed from the input.Converts the record into a map ofStringvalues.toEnumObjectMap(Class<T> enumType, T... selectedColumns) Converts the record into a map ofObjectvalues.toFieldMap(String... selectedFields) Converts the record into a map ofStringvalues.toFieldObjectMap(String... selectedFields) Converts the record into a map ofObjectvalues.toIndexMap(int... selectedIndexes) Converts the record into a map ofStringvalues.toIndexObjectMap(int... selectedIndexes) Converts the record into a map ofObjectvalues.
-
Method Details
-
getMetaData
RecordMetaData getMetaData()Returns 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 astoFieldMap(String...),fillFieldMap(Map, String...)and any other method that returns Objects will use the metadata information to perform data conversions.- Returns:
- the metadata object that provides information and basic data conversion controls over all records parsed from the input.
-
getValues
String[] getValues()Returns the plain values obtained from a record parsed from the input.- Returns:
- a
Stringarray with all values parsed from the input for this record.
-
getValues
Returns a selection of plain values obtained from a record parsed from the input.- Parameters:
fieldNames- sequence of field names whose values will be returned.- Returns:
- a
Stringarray with the selected values parsed from the input for this record.
-
getValues
Returns a selection of plain values obtained from a record parsed from the input.- Parameters:
fieldIndexes- sequence of field indexes whose values will be returned.- Returns:
- a
Stringarray with the selected values parsed from the input for this record.
-
getValues
Returns a selection of plain values obtained from a record parsed from the input.- Parameters:
fields- sequence of fields whose values will be returned.- Returns:
- a
Stringarray with the selected values parsed from the input for this record.
-
getValue
Returns the value contained in the given column.- 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
Returns the value contained in the given column.- 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
Returns the value contained in the given column.- 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
Returns the value contained in the given column, after applying a sequence of conversion over it.- 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
Returns the value contained in the given column, after applying a sequence of conversion over it.- 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
Returns the value contained in the given column, after applying a sequence of conversion over it.- 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
Returns the value contained in the given column, or a default value if the column containsnull- 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
Returns the value contained in the given column, or a default value if the column containsnull- 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
<T> T getValue(int columnIndex, T defaultValue) Returns the value contained in the given column, or a default value if the column containsnull- 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
Returns the value contained in a given column, after applying a sequence of conversions over it.- 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
Returns the value contained in a given column, after applying a sequence of conversions over it.- 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
Returns the value contained in a given column, after applying a sequence of conversions over it.- 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
Returns theStringvalue in the given column- Parameters:
headerName- the name of the column- Returns:
- the value stored in the given column,
nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getString
Returns theStringvalue in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)- Parameters:
column- the column- Returns:
- the value stored in the given column,
nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getString
Returns theStringvalue in the given column, truncating it to a given maximum length- 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)
-
getString
Returns theStringvalue in the given column, truncating it to a given maximum length- 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
Returns theStringvalue in the given column, truncating it to a given maximum length- 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
Returns theStringvalue in the given column- Parameters:
columnIndex- the index of the column- Returns:
- the value stored in the given column,
nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getByte
Converts theStringvalue in the given column to aByteand returns the result. TheByteConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aByteand returns the result. TheByteConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aByteand returns the result. TheByteConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aShortand returns the result. TheShortConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aShortand returns the result. TheShortConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aShortand returns the result. TheShortConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aIntegerand returns the result. TheIntegerConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aIntegerand returns the result. TheIntegerConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aIntegerand returns the result. TheIntegerConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aLongand returns the result. TheLongConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aLongand returns the result. TheLongConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aLongand returns the result. TheLongConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aLongand returns the result. TheFloatConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aFloatand returns the result. TheFloatConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aFloatand returns the result. TheFloatConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aDoubleand returns the result. TheDoubleConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aDoubleand returns the result. TheDoubleConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aDoubleand returns the result. TheDoubleConversionconversion will be used perform the transformation.- 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)
-
getByte
Converts theStringvalue in the given column to aByteand returns the result. TheByteConversionconversion will be used perform the transformation.- Parameters:
headerName- the column name- Returns:
- the
Bytestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getByte
Converts theStringvalue in the given column to aByteand returns the result. TheByteConversionconversion will be used perform the transformation.- Parameters:
column- the column- Returns:
- the
Bytestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getByte
Converts theStringvalue in the given column to aByteand returns the result. TheByteConversionconversion will be used perform the transformation.- Parameters:
columnIndex- the columnIndex- Returns:
- the
Bytestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getShort
Converts theStringvalue in the given column to aShortand returns the result. TheShortConversionconversion will be used perform the transformation.- Parameters:
headerName- the column name- Returns:
- the
Shortstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getShort
Converts theStringvalue in the given column to aShortand returns the result. TheShortConversionconversion will be used perform the transformation.- Parameters:
column- the column- Returns:
- the
Shortstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getShort
Converts theStringvalue in the given column to aShortand returns the result. TheShortConversionconversion will be used perform the transformation.- Parameters:
columnIndex- the columnIndex- Returns:
- the
Shortstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getInt
Converts theStringvalue in the given column to aIntegerand returns the result. TheIntegerConversionconversion will be used perform the transformation.- Parameters:
headerName- the column name- Returns:
- the
Integerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getInt
Converts theStringvalue in the given column to aIntegerand returns the result. TheIntegerConversionconversion will be used perform the transformation.- Parameters:
column- the column- Returns:
- the
Integerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getInt
Converts theStringvalue in the given column to aIntegerand returns the result. TheIntegerConversionconversion will be used perform the transformation.- Parameters:
columnIndex- the columnIndex- Returns:
- the
Integerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getLong
Converts theStringvalue in the given column to aLongand returns the result. TheLongConversionconversion will be used perform the transformation.- Parameters:
headerName- the column name- Returns:
- the
Longstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getLong
Converts theStringvalue in the given column to aLongand returns the result. TheLongConversionconversion will be used perform the transformation.- Parameters:
column- the column- Returns:
- the
Longstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getLong
Converts theStringvalue in the given column to aLongand returns the result. TheLongConversionconversion will be used perform the transformation.- Parameters:
columnIndex- the columnIndex- Returns:
- the
Longstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getFloat
Converts theStringvalue in the given column to aFloatand returns the result. TheFloatConversionconversion will be used perform the transformation.- Parameters:
headerName- the column name- Returns:
- the
Floatstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getFloat
Converts theStringvalue in the given column to aFloatand returns the result. TheFloatConversionconversion will be used perform the transformation.- Parameters:
column- the column- Returns:
- the
Floatstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getFloat
Converts theStringvalue in the given column to aFloatand returns the result. TheFloatConversionconversion will be used perform the transformation.- Parameters:
columnIndex- the columnIndex- Returns:
- the
Floatstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDouble
Converts theStringvalue in the given column to aDoubleand returns the result. TheDoubleConversionconversion will be used perform the transformation.- Parameters:
headerName- the column name- Returns:
- the
Doublestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDouble
Converts theStringvalue in the given column to aDoubleand returns the result. TheDoubleConversionconversion will be used perform the transformation.- Parameters:
column- the column- Returns:
- the
Doublestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDouble
Converts theStringvalue in the given column to aDoubleand returns the result. TheDoubleConversionconversion will be used perform the transformation.- Parameters:
columnIndex- the columnIndex- Returns:
- the
Doublestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getChar
Converts theStringvalue in the given column to aCharacterand returns the result. TheCharacterConversionconversion will be used perform the transformation.- Parameters:
headerName- the column name- Returns:
- the
Characterstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getChar
Converts theStringvalue in the given column to aCharacterand returns the result. TheCharacterConversionconversion will be used perform the transformation.- Parameters:
column- the column- Returns:
- the
Characterstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getChar
Converts theStringvalue in the given column to aCharacterand returns the result. TheCharacterConversionconversion will be used perform the transformation.- Parameters:
columnIndex- the column index- Returns:
- the
Characterstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBoolean
Converts theStringvalue in the given column to aBooleanand returns the result. TheBooleanConversionconversion will be used perform the transformation.- Parameters:
headerName- the column name- Returns:
- the
Booleanstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBoolean
Converts theStringvalue in the given column to aBooleanand returns the result. TheBooleanConversionconversion will be used perform the transformation.- Parameters:
column- the column- Returns:
- the
Booleanstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBoolean
Converts theStringvalue in the given column to aBooleanand returns the result. TheBooleanConversionconversion will be used perform the transformation.- Parameters:
columnIndex- the column index- Returns:
- the
Booleanstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBoolean
Converts theStringvalue in the given column to aBooleanand returns the result. TheBooleanConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aBooleanand returns the result. TheBooleanConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aBooleanand returns the result. TheBooleanConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aBigIntegerand returns the result. TheBigIntegerConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aBigIntegerand returns the result. TheBigIntegerConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aBigIntegerand returns the result. TheBigIntegerConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aBigDecimaland returns the result. TheBigDecimalConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aBigDecimaland returns the result. TheBigDecimalConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aBigDecimaland returns the result. TheBigDecimalConversionconversion will be used perform the transformation.- 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)
-
getBigInteger
Converts theStringvalue in the given column to aBigIntegerand returns the result. TheBigIntegerConversionconversion will be used perform the transformation.- Parameters:
headerName- the column name- Returns:
- the
BigIntegerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBigInteger
Converts theStringvalue in the given column to aBigIntegerand returns the result. TheBigIntegerConversionconversion will be used perform the transformation.- Parameters:
column- the column- Returns:
- the
BigIntegerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBigInteger
Converts theStringvalue in the given column to aBigIntegerand returns the result. TheBigIntegerConversionconversion will be used perform the transformation.- Parameters:
columnIndex- the columnIndex- Returns:
- the
BigIntegerstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBigDecimal
Converts theStringvalue in the given column to aBigDecimaland returns the result. TheBigDecimalConversionconversion will be used perform the transformation.- Parameters:
headerName- the column name- Returns:
- the
BigDecimalstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBigDecimal
Converts theStringvalue in the given column to aBigDecimaland returns the result. TheBigDecimalConversionconversion will be used perform the transformation.- Parameters:
column- the column- Returns:
- the
BigDecimalstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getBigDecimal
Converts theStringvalue in the given column to aBigDecimaland returns the result. TheBigDecimalConversionconversion will be used perform the transformation.- Parameters:
columnIndex- the columnIndex- Returns:
- the
BigDecimalstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDate
Converts theStringvalue in the given column to aDateand returns the result. TheDateConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aDateand returns the result. TheDateConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aDateand returns the result. TheDateConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aCalendarand returns the result. TheCalendarConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aCalendarand returns the result. TheCalendarConversionconversion will be used perform the transformation.- 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
Converts theStringvalue in the given column to aCalendarand returns the result. TheCalendarConversionconversion will be used perform the transformation.- 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)
-
getDate
Converts theStringvalue in the given column to aDateand returns the result. TheDateConversionconversion sequence registered usingRecordMetaData.convertFields(Conversion[])will be used perform the transformation.- Parameters:
headerName- the column name- Returns:
- the
Datestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDate
Converts theStringvalue in the given column to aDateand returns the result. TheDateConversionconversion sequence registered usingRecordMetaData.convertFields(Conversion[])will be used perform the transformation.- Parameters:
column- the column- Returns:
- the
Datestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getDate
Converts theStringvalue in the given column to aDateand returns the result. TheDateConversionconversion sequence registered usingRecordMetaData.convertFields(Conversion[])will be used perform the transformation.- Parameters:
columnIndex- the column index- Returns:
- the
Datestored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getCalendar
Converts theStringvalue in the given column to aCalendarand returns the result. TheCalendarConversionconversion sequence registered usingRecordMetaData.convertFields(Conversion[])will be used perform the transformation.- Parameters:
headerName- the column name- Returns:
- the
Calendarstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getCalendar
Converts theStringvalue in the given column to aCalendarand returns the result. TheCalendarConversionconversion sequence registered usingRecordMetaData.convertFields(Conversion[])will be used perform the transformation.- Parameters:
column- the column- Returns:
- the
Calendarstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
getCalendar
Converts theStringvalue in the given column to aCalendarand returns the result. TheCalendarConversionconversion sequence registered usingRecordMetaData.convertFields(Conversion[])will be used perform the transformation.- Parameters:
columnIndex- the column index- Returns:
- the
Calendarstored in the given column,nullor the default value specified inRecordMetaData.defaultValueOf(String)
-
toFieldMap
Converts the record into a map ofStringvalues.- 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.
-
toIndexMap
Converts the record into a map ofStringvalues.- 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.
-
toEnumMap
Converts the record into a map ofStringvalues.- 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
Fills a map with theStringvalues of this record.- 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
Fills a map with theStringvalues of this record.- 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
Fills a map with theStringvalues of this record.- 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
Converts 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.- 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
Converts 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.- Parameters:
selectedIndexes- 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
Converts 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.- 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
Fills 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.- 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
Fills 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.- 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
Fills 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.- 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.
-