Class RecordImpl<C extends Context>

java.lang.Object
com.univocity.parsers.common.record.RecordImpl<C>
All Implemented Interfaces:
Record

class RecordImpl<C extends Context> extends Object implements Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String[]
     
    private final RecordMetaDataImpl<C>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private int[]
    buildSelection(int[] selectedIndexes)
     
    <T extends Enum<T>>
    T[]
    buildSelection(Class<T> enumType, T... selectedColumns)
     
    private String[]
    buildSelection(String[] selectedFields)
     
    boolean
     
    <T extends Enum<T>>
    Map<T,String>
    fillEnumMap(Map<T,String> map, T... selectedColumns)
    Fills a map with the String values of this record.
    <T extends Enum<T>>
    Map<T,Object>
    fillEnumObjectMap(Map<T,Object> map, T... selectedColumns)
    Fills a map with the converted Object values of this record.
    fillFieldMap(Map<String,String> map, String... selectedFields)
    Fills a map with the String values of this record.
    fillFieldObjectMap(Map<String,Object> map, String... selectedFields)
    Fills a map with the converted Object values of this record.
    fillIndexMap(Map<Integer,String> map, int... selectedIndexes)
    Fills a map with the String values of this record.
    fillIndexObjectMap(Map<Integer,Object> map, int... selectedIndexes)
    Fills a map with the converted Object values of this record.
    getBigDecimal(int columnIndex)
    Converts the String value in the given column to a BigDecimal and returns the result.
    getBigDecimal(int columnIndex, String format, String... formatOptions)
    Converts the String value in the given column to a BigDecimal and returns the result.
    getBigDecimal(Enum<?> column)
    Converts the String value in the given column to a BigDecimal and returns the result.
    getBigDecimal(Enum<?> column, String format, String... formatOptions)
    Converts the String value in the given column to a BigDecimal and returns the result.
    getBigDecimal(String headerName)
    Converts the String value in the given column to a BigDecimal and returns the result.
    getBigDecimal(String headerName, String format, String... formatOptions)
    Converts the String value in the given column to a BigDecimal and returns the result.
    getBigInteger(int columnIndex)
    Converts the String value in the given column to a BigInteger and returns the result.
    getBigInteger(int columnIndex, String format, String... formatOptions)
    Converts the String value in the given column to a BigInteger and returns the result.
    getBigInteger(Enum<?> column)
    Converts the String value in the given column to a BigInteger and returns the result.
    getBigInteger(Enum<?> column, String format, String... formatOptions)
    Converts the String value in the given column to a BigInteger and returns the result.
    getBigInteger(String headerName)
    Converts the String value in the given column to a BigInteger and returns the result.
    getBigInteger(String headerName, String format, String... formatOptions)
    Converts the String value in the given column to a BigInteger and returns the result.
    getBoolean(int columnIndex)
    Converts the String value in the given column to a Boolean and returns the result.
    getBoolean(int columnIndex, String trueString, String falseString)
    Converts the String value in the given column to a Boolean and returns the result.
    getBoolean(Enum<?> column)
    Converts the String value in the given column to a Boolean and returns the result.
    getBoolean(Enum<?> column, String trueString, String falseString)
    Converts the String value in the given column to a Boolean and returns the result.
    getBoolean(String headerName)
    Converts the String value in the given column to a Boolean and returns the result.
    getBoolean(String headerName, String trueString, String falseString)
    Converts the String value in the given column to a Boolean and returns the result.
    getByte(int columnIndex)
    Converts the String value in the given column to a Byte and returns the result.
    getByte(int columnIndex, String format, String... formatOptions)
    Converts the String value in the given column to a Byte and returns the result.
    getByte(Enum<?> column)
    Converts the String value in the given column to a Byte and returns the result.
    getByte(Enum<?> column, String format, String... formatOptions)
    Converts the String value in the given column to a Byte and returns the result.
    getByte(String headerName)
    Converts the String value in the given column to a Byte and returns the result.
    getByte(String headerName, String format, String... formatOptions)
    Converts the String value in the given column to a Byte and returns the result.
    getCalendar(int columnIndex)
    Converts the String value in the given column to a Calendar and returns the result.
    getCalendar(int columnIndex, String format, String... formatOptions)
    Converts the String value in the given column to a Calendar and returns the result.
    getCalendar(Enum<?> column)
    Converts the String value in the given column to a Calendar and returns the result.
    getCalendar(Enum<?> column, String format, String... formatOptions)
    Converts the String value in the given column to a Calendar and returns the result.
    getCalendar(String headerName)
    Converts the String value in the given column to a Calendar and returns the result.
    getCalendar(String headerName, String format, String... formatOptions)
    Converts the String value in the given column to a Calendar and returns the result.
    getChar(int columnIndex)
    Converts the String value in the given column to a Character and returns the result.
    getChar(Enum<?> column)
    Converts the String value in the given column to a Character and returns the result.
    getChar(String headerName)
    Converts the String value in the given column to a Character and returns the result.
    getDate(int columnIndex)
    Converts the String value in the given column to a Date and returns the result.
    getDate(int columnIndex, String format, String... formatOptions)
    Converts the String value in the given column to a Date and returns the result.
    getDate(Enum<?> column)
    Converts the String value in the given column to a Date and returns the result.
    getDate(Enum<?> column, String format, String... formatOptions)
    Converts the String value in the given column to a Date and returns the result.
    getDate(String headerName)
    Converts the String value in the given column to a Date and returns the result.
    getDate(String headerName, String format, String... formatOptions)
    Converts the String value in the given column to a Date and returns the result.
    getDouble(int columnIndex)
    Converts the String value in the given column to a Double and returns the result.
    getDouble(int columnIndex, String format, String... formatOptions)
    Converts the String value in the given column to a Double and returns the result.
    getDouble(Enum<?> column)
    Converts the String value in the given column to a Double and returns the result.
    getDouble(Enum<?> column, String format, String... formatOptions)
    Converts the String value in the given column to a Double and returns the result.
    getDouble(String headerName)
    Converts the String value in the given column to a Double and returns the result.
    getDouble(String headerName, String format, String... formatOptions)
    Converts the String value in the given column to a Double and returns the result.
    getFloat(int columnIndex)
    Converts the String value in the given column to a Float and returns the result.
    getFloat(int columnIndex, String format, String... formatOptions)
    Converts the String value in the given column to a Float and returns the result.
    getFloat(Enum<?> column)
    Converts the String value in the given column to a Float and returns the result.
    getFloat(Enum<?> column, String format, String... formatOptions)
    Converts the String value in the given column to a Float and returns the result.
    getFloat(String headerName)
    Converts the String value in the given column to a Float and returns the result.
    getFloat(String headerName, String format, String... formatOptions)
    Converts the String value in the given column to a Long and returns the result.
    getInt(int columnIndex)
    Converts the String value in the given column to a Integer and returns the result.
    getInt(int columnIndex, String format, String... formatOptions)
    Converts the String value in the given column to a Integer and returns the result.
    getInt(Enum<?> column)
    Converts the String value in the given column to a Integer and returns the result.
    getInt(Enum<?> column, String format, String... formatOptions)
    Converts the String value in the given column to a Integer and returns the result.
    getInt(String headerName)
    Converts the String value in the given column to a Integer and returns the result.
    getInt(String headerName, String format, String... formatOptions)
    Converts the String value in the given column to a Integer and returns the result.
    getLong(int columnIndex)
    Converts the String value in the given column to a Long and returns the result.
    getLong(int columnIndex, String format, String... formatOptions)
    Converts the String value in the given column to a Long and returns the result.
    getLong(Enum<?> column)
    Converts the String value in the given column to a Long and returns the result.
    getLong(Enum<?> column, String format, String... formatOptions)
    Converts the String value in the given column to a Long and returns the result.
    getLong(String headerName)
    Converts the String value in the given column to a Long and returns the result.
    getLong(String headerName, String format, String... formatOptions)
    Converts the String value in the given column to a Long and returns the result.
    Returns the RecordMetaData associated with all records parsed from the input.
    getShort(int columnIndex)
    Converts the String value in the given column to a Short and returns the result.
    getShort(int columnIndex, String format, String... formatOptions)
    Converts the String value in the given column to a Short and returns the result.
    getShort(Enum<?> column)
    Converts the String value in the given column to a Short and returns the result.
    getShort(Enum<?> column, String format, String... formatOptions)
    Converts the String value in the given column to a Short and returns the result.
    getShort(String headerName)
    Converts the String value in the given column to a Short and returns the result.
    getShort(String headerName, String format, String... formatOptions)
    Converts the String value in the given column to a Short and returns the result.
    getString(int columnIndex)
    Returns the String value in the given column
    getString(int columnIndex, int maxLength)
    Returns the String value in the given column, truncating it to a given maximum length
    getString(Enum<?> column)
    Returns the String value in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    getString(Enum<?> column, int maxLength)
    Returns the String value in the given column, truncating it to a given maximum length
    getString(String headerName)
    Returns the String value in the given column
    getString(String headerName, int maxLength)
    Returns the String value in the given column, truncating it to a given maximum length
    <T> T
    getValue(int columnIndex, Class<T> expectedType)
    Returns the value contained in the given column.
    <T> T
    getValue(int columnIndex, Class<T> expectedType, Conversion... conversions)
    Returns the value contained in the given column, after applying a sequence of conversion over it.
    <T> T
    getValue(int columnIndex, T defaultValue)
    Returns the value contained in the given column, or a default value if the column contains null
    <T> T
    getValue(int columnIndex, T defaultValue, Conversion... conversions)
    Returns the value contained in a given column, after applying a sequence of conversions over it.
    <T> T
    getValue(Enum<?> column, Class<T> expectedType)
    Returns the value contained in the given column.
    <T> T
    getValue(Enum<?> column, Class<T> expectedType, Conversion... conversions)
    Returns the value contained in the given column, after applying a sequence of conversion over it.
    <T> T
    getValue(Enum<?> column, T defaultValue)
    Returns the value contained in the given column, or a default value if the column contains null
    <T> T
    getValue(Enum<?> column, T defaultValue, Conversion... conversions)
    Returns the value contained in a given column, after applying a sequence of conversions over it.
    <T> T
    getValue(String headerName, Class<T> expectedType)
    Returns the value contained in the given column.
    <T> T
    getValue(String headerName, Class<T> expectedType, Conversion... conversions)
    Returns the value contained in the given column, after applying a sequence of conversion over it.
    <T> T
    getValue(String headerName, T defaultValue)
    Returns the value contained in the given column, or a default value if the column contains null
    <T> T
    getValue(String headerName, T defaultValue, Conversion... conversions)
    Returns the value contained in a given column, after applying a sequence of conversions over it.
    Returns the plain values obtained from a record parsed from the input.
    getValues(int... fieldIndexes)
    Returns a selection of plain values obtained from a record parsed from the input.
    getValues(Enum<?>... fields)
    Returns a selection of plain values obtained from a record parsed from the input.
    getValues(String... fieldNames)
    Returns a selection of plain values obtained from a record parsed from the input.
    int
     
    <T extends Enum<T>>
    Map<T,String>
    toEnumMap(Class<T> enumType, T... selectedColumns)
    Converts the record into a map of String values.
    <T extends Enum<T>>
    Map<T,Object>
    toEnumObjectMap(Class<T> enumType, T... selectedColumns)
    Converts the record into a map of Object values.
    toFieldMap(String... selectedFields)
    Converts the record into a map of String values.
    toFieldObjectMap(String... selectedFields)
    Converts the record into a map of Object values.
    toIndexMap(int... selectedIndexes)
    Converts the record into a map of String values.
    toIndexObjectMap(int... selectedIndex)
    Converts the record into a map of Object values.
     
    private String
    truncate(String string, int maxLength)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getMetaData

      public RecordMetaData getMetaData()
      Description copied from interface: Record
      Returns the RecordMetaData associated 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 as Record.toFieldMap(String...), Record.fillFieldMap(Map, String...) and any other method that returns Objects will use the metadata information to perform data conversions.
      Specified by:
      getMetaData in interface Record
      Returns:
      the metadata object that provides information and basic data conversion controls over all records parsed from the input.
    • getValues

      public String[] getValues()
      Description copied from interface: Record
      Returns the plain values obtained from a record parsed from the input.
      Specified by:
      getValues in interface Record
      Returns:
      a String array with all values parsed from the input for this record.
    • getValue

      public <T> T getValue(String headerName, Class<T> expectedType)
      Description copied from interface: Record
      Returns the value contained in the given column.
      Specified by:
      getValue in interface Record
      Type Parameters:
      T - the expected value type
      Parameters:
      headerName - the name of the column whose value will be returned
      expectedType - 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(Enum<?> column, Class<T> expectedType)
      Description copied from interface: Record
      Returns the value contained in the given column.
      Specified by:
      getValue in interface Record
      Type Parameters:
      T - the expected value type
      Parameters:
      column - the column whose value will be returned
      expectedType - 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, Class<T> expectedType)
      Description copied from interface: Record
      Returns the value contained in the given column.
      Specified by:
      getValue in interface Record
      Type Parameters:
      T - the expected value type
      Parameters:
      columnIndex - the position of the column whose value will be returned
      expectedType - 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(String headerName, Class<T> expectedType, Conversion... conversions)
      Description copied from interface: Record
      Returns the value contained in the given column, after applying a sequence of conversion over it.
      Specified by:
      getValue in interface Record
      Type Parameters:
      T - the expected value type
      Parameters:
      headerName - the name of the column whose value will be returned
      expectedType - 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 of Conversions to apply over the column value.
      Returns:
      the value this record holds at the given column
    • getValue

      public <T> T getValue(Enum<?> column, Class<T> expectedType, Conversion... conversions)
      Description copied from interface: Record
      Returns the value contained in the given column, after applying a sequence of conversion over it.
      Specified by:
      getValue in interface Record
      Type Parameters:
      T - the expected value type
      Parameters:
      column - the column whose value will be returned
      expectedType - 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 of Conversions to apply over the column value.
      Returns:
      the value this record holds at the given column
    • getValue

      public <T> T getValue(int columnIndex, Class<T> expectedType, Conversion... conversions)
      Description copied from interface: Record
      Returns the value contained in the given column, after applying a sequence of conversion over it.
      Specified by:
      getValue in interface Record
      Type Parameters:
      T - the expected value type
      Parameters:
      columnIndex - the index of the column whose value will be returned
      expectedType - 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 of Conversions to apply over the column value.
      Returns:
      the value this record holds at the given column
    • getValue

      public <T> T getValue(String headerName, T defaultValue)
      Description copied from interface: Record
      Returns the value contained in the given column, or a default value if the column contains null
      Specified by:
      getValue in interface Record
      Type Parameters:
      T - the expected value type
      Parameters:
      headerName - the name of the column whose value will be returned
      defaultValue - The default value to use if the column contains null. 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(Enum<?> column, T defaultValue)
      Description copied from interface: Record
      Returns the value contained in the given column, or a default value if the column contains null
      Specified by:
      getValue in interface Record
      Type Parameters:
      T - the expected value type
      Parameters:
      column - the column whose value will be returned
      defaultValue - The default value to use if the column contains null. 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: Record
      Returns the value contained in the given column, or a default value if the column contains null
      Specified by:
      getValue in interface Record
      Type Parameters:
      T - the expected value type
      Parameters:
      columnIndex - index of the column whose value will be returned
      defaultValue - The default value to use if the column contains null. 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(String headerName, T defaultValue, Conversion... conversions)
      Description copied from interface: Record
      Returns the value contained in a given column, after applying a sequence of conversions over it.
      Specified by:
      getValue in interface Record
      Type Parameters:
      T - the expected value type
      Parameters:
      headerName - the name of the column whose value will be returned
      defaultValue - The default value to use if the column contains null.
      conversions - the sequence of Conversions to apply over the column value.
      Returns:
      the value this record holds at the given column
    • getValue

      public <T> T getValue(Enum<?> column, T defaultValue, Conversion... conversions)
      Description copied from interface: Record
      Returns the value contained in a given column, after applying a sequence of conversions over it.
      Specified by:
      getValue in interface Record
      Type Parameters:
      T - the expected value type
      Parameters:
      column - the column whose value will be returned
      defaultValue - The default value to use if the column contains null.
      conversions - the sequence of Conversions 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: Record
      Returns the value contained in a given column, after applying a sequence of conversions over it.
      Specified by:
      getValue in interface Record
      Type Parameters:
      T - the expected value type
      Parameters:
      columnIndex - the index of the column whose value will be returned
      defaultValue - The default value to use if the column contains null.
      conversions - the sequence of Conversions to apply over the column value.
      Returns:
      the value this record holds at the given column
    • getString

      public String getString(String headerName)
      Description copied from interface: Record
      Returns the String value in the given column
      Specified by:
      getString in interface Record
      Parameters:
      headerName - the name of the column
      Returns:
      the value stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getString

      public String getString(Enum<?> column)
      Description copied from interface: Record
      Returns the String value in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
      Specified by:
      getString in interface Record
      Parameters:
      column - the column
      Returns:
      the value stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getString

      public String getString(int columnIndex)
      Description copied from interface: Record
      Returns the String value in the given column
      Specified by:
      getString in interface Record
      Parameters:
      columnIndex - the index of the column
      Returns:
      the value stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getString

      public String getString(String headerName, int maxLength)
      Description copied from interface: Record
      Returns the String value in the given column, truncating it to a given maximum length
      Specified by:
      getString in interface Record
      Parameters:
      headerName - the name of the column
      maxLength - the maximum number of characters to be returned.
      Returns:
      the value stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getString

      public String getString(Enum<?> column, int maxLength)
      Description copied from interface: Record
      Returns the String value in the given column, truncating it to a given maximum length
      Specified by:
      getString in interface Record
      Parameters:
      column - the column
      maxLength - the maximum number of characters to be returned.
      Returns:
      the value stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getString

      public String getString(int columnIndex, int maxLength)
      Description copied from interface: Record
      Returns the String value in the given column, truncating it to a given maximum length
      Specified by:
      getString in interface Record
      Parameters:
      columnIndex - the index of the column
      maxLength - the maximum number of characters to be returned.
      Returns:
      the value stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • truncate

      private String truncate(String string, int maxLength)
    • getByte

      public Byte getByte(String headerName, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Byte and returns the result. The ByteConversion conversion will be used perform the transformation.
      Specified by:
      getByte in interface Record
      Parameters:
      headerName - the name of the column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Byte stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getByte

      public Byte getByte(Enum<?> column, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Byte and returns the result. The ByteConversion conversion will be used perform the transformation.
      Specified by:
      getByte in interface Record
      Parameters:
      column - the column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Byte stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getByte

      public Byte getByte(int columnIndex, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Byte and returns the result. The ByteConversion conversion will be used perform the transformation.
      Specified by:
      getByte in interface Record
      Parameters:
      columnIndex - the index of column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Byte stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getShort

      public Short getShort(String headerName, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Short and returns the result. The ShortConversion conversion will be used perform the transformation.
      Specified by:
      getShort in interface Record
      Parameters:
      headerName - the name of the column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Short stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getShort

      public Short getShort(Enum<?> column, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Short and returns the result. The ShortConversion conversion will be used perform the transformation.
      Specified by:
      getShort in interface Record
      Parameters:
      column - the column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Short stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getShort

      public Short getShort(int columnIndex, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Short and returns the result. The ShortConversion conversion will be used perform the transformation.
      Specified by:
      getShort in interface Record
      Parameters:
      columnIndex - the index of column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Short stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getInt

      public Integer getInt(String headerName, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Integer and returns the result. The IntegerConversion conversion will be used perform the transformation.
      Specified by:
      getInt in interface Record
      Parameters:
      headerName - the name of the column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Integer stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getInt

      public Integer getInt(Enum<?> column, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Integer and returns the result. The IntegerConversion conversion will be used perform the transformation.
      Specified by:
      getInt in interface Record
      Parameters:
      column - the column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Integer stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getInt

      public Integer getInt(int columnIndex, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Integer and returns the result. The IntegerConversion conversion will be used perform the transformation.
      Specified by:
      getInt in interface Record
      Parameters:
      columnIndex - the index of column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Integer stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getLong

      public Long getLong(String headerName, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Long and returns the result. The LongConversion conversion will be used perform the transformation.
      Specified by:
      getLong in interface Record
      Parameters:
      headerName - the name of the column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Long stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getLong

      public Long getLong(Enum<?> column, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Long and returns the result. The LongConversion conversion will be used perform the transformation.
      Specified by:
      getLong in interface Record
      Parameters:
      column - the column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Long stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getLong

      public Long getLong(int columnIndex, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Long and returns the result. The LongConversion conversion will be used perform the transformation.
      Specified by:
      getLong in interface Record
      Parameters:
      columnIndex - the index of column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Long stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getFloat

      public Float getFloat(String headerName, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Long and returns the result. The FloatConversion conversion will be used perform the transformation.
      Specified by:
      getFloat in interface Record
      Parameters:
      headerName - the name of the column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Long stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getFloat

      public Float getFloat(Enum<?> column, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Float and returns the result. The FloatConversion conversion will be used perform the transformation.
      Specified by:
      getFloat in interface Record
      Parameters:
      column - the column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Float stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getFloat

      public Float getFloat(int columnIndex, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Float and returns the result. The FloatConversion conversion will be used perform the transformation.
      Specified by:
      getFloat in interface Record
      Parameters:
      columnIndex - the index of column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Float stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getDouble

      public Double getDouble(String headerName, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Double and returns the result. The DoubleConversion conversion will be used perform the transformation.
      Specified by:
      getDouble in interface Record
      Parameters:
      headerName - the name of the column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Double stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getDouble

      public Double getDouble(Enum<?> column, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Double and returns the result. The DoubleConversion conversion will be used perform the transformation.
      Specified by:
      getDouble in interface Record
      Parameters:
      column - the column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Double stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getDouble

      public Double getDouble(int columnIndex, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Double and returns the result. The DoubleConversion conversion will be used perform the transformation.
      Specified by:
      getDouble in interface Record
      Parameters:
      columnIndex - the index of column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the Double stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getChar

      public Character getChar(String headerName)
      Description copied from interface: Record
      Converts the String value in the given column to a Character and returns the result. The CharacterConversion conversion will be used perform the transformation.
      Specified by:
      getChar in interface Record
      Parameters:
      headerName - the column name
      Returns:
      the Character stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getChar

      public Character getChar(Enum<?> column)
      Description copied from interface: Record
      Converts the String value in the given column to a Character and returns the result. The CharacterConversion conversion will be used perform the transformation.
      Specified by:
      getChar in interface Record
      Parameters:
      column - the column
      Returns:
      the Character stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getChar

      public Character getChar(int columnIndex)
      Description copied from interface: Record
      Converts the String value in the given column to a Character and returns the result. The CharacterConversion conversion will be used perform the transformation.
      Specified by:
      getChar in interface Record
      Parameters:
      columnIndex - the column index
      Returns:
      the Character stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getBoolean

      public Boolean getBoolean(String headerName)
      Description copied from interface: Record
      Converts the String value in the given column to a Boolean and returns the result. The BooleanConversion conversion will be used perform the transformation.
      Specified by:
      getBoolean in interface Record
      Parameters:
      headerName - the column name
      Returns:
      the Boolean stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getBoolean

      public Boolean getBoolean(Enum<?> column)
      Description copied from interface: Record
      Converts the String value in the given column to a Boolean and returns the result. The BooleanConversion conversion will be used perform the transformation.
      Specified by:
      getBoolean in interface Record
      Parameters:
      column - the column
      Returns:
      the Boolean stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getBoolean

      public Boolean getBoolean(int columnIndex)
      Description copied from interface: Record
      Converts the String value in the given column to a Boolean and returns the result. The BooleanConversion conversion will be used perform the transformation.
      Specified by:
      getBoolean in interface Record
      Parameters:
      columnIndex - the column index
      Returns:
      the Boolean stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getBoolean

      public Boolean getBoolean(String headerName, String trueString, String falseString)
      Description copied from interface: Record
      Converts the String value in the given column to a Boolean and returns the result. The BooleanConversion conversion will be used perform the transformation.
      Specified by:
      getBoolean in interface Record
      Parameters:
      headerName - the column name
      trueString - a String that represents the Boolean value true
      falseString - a String that represents the Boolean value false
      Returns:
      the Boolean stored in the given column if its original String value matches either the trueString or falseString, otherwise null or the default specified in RecordMetaData.defaultValueOf(String)
    • getBoolean

      public Boolean getBoolean(Enum<?> column, String trueString, String falseString)
      Description copied from interface: Record
      Converts the String value in the given column to a Boolean and returns the result. The BooleanConversion conversion will be used perform the transformation.
      Specified by:
      getBoolean in interface Record
      Parameters:
      column - the column
      trueString - a String that represents the Boolean value true
      falseString - a String that represents the Boolean value false
      Returns:
      the Boolean stored in the given column if its original String value matches either the trueString or falseString, otherwise null or the default specified in RecordMetaData.defaultValueOf(String)
    • getBoolean

      public Boolean getBoolean(int columnIndex, String trueString, String falseString)
      Description copied from interface: Record
      Converts the String value in the given column to a Boolean and returns the result. The BooleanConversion conversion will be used perform the transformation.
      Specified by:
      getBoolean in interface Record
      Parameters:
      columnIndex - the column index
      trueString - a String that represents the Boolean value true
      falseString - a String that represents the Boolean value false
      Returns:
      the Boolean stored in the given column if its original String value matches either the trueString or falseString, otherwise null or the default specified in RecordMetaData.defaultValueOf(String)
    • getBigInteger

      public BigInteger getBigInteger(String headerName, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a BigInteger and returns the result. The BigIntegerConversion conversion will be used perform the transformation.
      Specified by:
      getBigInteger in interface Record
      Parameters:
      headerName - the column name
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the BigInteger stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getBigInteger

      public BigInteger getBigInteger(Enum<?> column, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a BigInteger and returns the result. The BigIntegerConversion conversion will be used perform the transformation.
      Specified by:
      getBigInteger in interface Record
      Parameters:
      column - the column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the BigInteger stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getBigInteger

      public BigInteger getBigInteger(int columnIndex, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a BigInteger and returns the result. The BigIntegerConversion conversion will be used perform the transformation.
      Specified by:
      getBigInteger in interface Record
      Parameters:
      columnIndex - the index of column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the BigInteger stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getBigDecimal

      public BigDecimal getBigDecimal(String headerName, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a BigDecimal and returns the result. The BigDecimalConversion conversion will be used perform the transformation.
      Specified by:
      getBigDecimal in interface Record
      Parameters:
      headerName - the column name
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the BigDecimal stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getBigDecimal

      public BigDecimal getBigDecimal(Enum<?> column, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a BigDecimal and returns the result. The BigDecimalConversion conversion will be used perform the transformation.
      Specified by:
      getBigDecimal in interface Record
      Parameters:
      column - the column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the BigDecimal stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getBigDecimal

      public BigDecimal getBigDecimal(int columnIndex, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a BigDecimal and returns the result. The BigDecimalConversion conversion will be used perform the transformation.
      Specified by:
      getBigDecimal in interface Record
      Parameters:
      columnIndex - the index of column
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"decimalSeparator=,", "maximumFractionDigits=3"}
      Returns:
      the BigDecimal stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getDate

      public Date getDate(String headerName, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Date and returns the result. The DateConversion conversion will be used perform the transformation.
      Specified by:
      getDate in interface Record
      Parameters:
      headerName - the column name
      format - the numeric mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"lenient=true"}
      Returns:
      the Date stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getDate

      public Date getDate(Enum<?> column, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Date and returns the result. The DateConversion conversion will be used perform the transformation.
      Specified by:
      getDate in interface Record
      Parameters:
      column - the column
      format - the date mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"lenient=true"}
      Returns:
      the Date stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getDate

      public Date getDate(int columnIndex, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Date and returns the result. The DateConversion conversion will be used perform the transformation.
      Specified by:
      getDate in interface Record
      Parameters:
      columnIndex - the index of column
      format - the date mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"lenient=true"}
      Returns:
      the Date stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getCalendar

      public Calendar getCalendar(String headerName, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Calendar and returns the result. The CalendarConversion conversion will be used perform the transformation.
      Specified by:
      getCalendar in interface Record
      Parameters:
      headerName - the column name
      format - the date mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"lenient=true"}
      Returns:
      the Calendar stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getCalendar

      public Calendar getCalendar(Enum<?> column, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Calendar and returns the result. The CalendarConversion conversion will be used perform the transformation.
      Specified by:
      getCalendar in interface Record
      Parameters:
      column - the column
      format - the date mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"lenient=true"}
      Returns:
      the Calendar stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getCalendar

      public Calendar getCalendar(int columnIndex, String format, String... formatOptions)
      Description copied from interface: Record
      Converts the String value in the given column to a Calendar and returns the result. The CalendarConversion conversion will be used perform the transformation.
      Specified by:
      getCalendar in interface Record
      Parameters:
      columnIndex - the index of column
      format - the date mask to apply over the parsed content
      formatOptions - a sequence of key-value pairs with options to configure the underlying formatter. Each element must be specified as property_name=property_value, e.g. options={"lenient=true"}
      Returns:
      the Calendar stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • buildSelection

      private String[] buildSelection(String[] selectedFields)
    • buildSelection

      private int[] buildSelection(int[] selectedIndexes)
    • buildSelection

      public <T extends Enum<T>> T[] buildSelection(Class<T> enumType, T... selectedColumns)
    • toIndexMap

      public Map<Integer,String> toIndexMap(int... selectedIndexes)
      Description copied from interface: Record
      Converts the record into a map of String values.
      Specified by:
      toIndexMap in interface Record
      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 Map<String,String> toFieldMap(String... selectedFields)
      Description copied from interface: Record
      Converts the record into a map of String values.
      Specified by:
      toFieldMap in interface Record
      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 Enum<T>> Map<T,String> toEnumMap(Class<T> enumType, T... selectedColumns)
      Description copied from interface: Record
      Converts the record into a map of String values.
      Specified by:
      toEnumMap in interface Record
      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 Map<String,String> fillFieldMap(Map<String,String> map, String... selectedFields)
      Description copied from interface: Record
      Fills a map with the String values of this record.
      Specified by:
      fillFieldMap in interface Record
      Parameters:
      map - the map that will receive the values
      selectedFields - 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 Map<Integer,String> fillIndexMap(Map<Integer,String> map, int... selectedIndexes)
      Description copied from interface: Record
      Fills a map with the String values of this record.
      Specified by:
      fillIndexMap in interface Record
      Parameters:
      map - the map that will receive the values
      selectedIndexes - 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 Enum<T>> Map<T,String> fillEnumMap(Map<T,String> map, T... selectedColumns)
      Description copied from interface: Record
      Fills a map with the String values of this record.
      Specified by:
      fillEnumMap in interface Record
      Type Parameters:
      T - the enumeration type
      Parameters:
      map - the map that will receive the values
      selectedColumns - 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 Map<String,Object> toFieldObjectMap(String... selectedFields)
      Description copied from interface: Record
      Converts the record into a map of Object values. Conversions must be registered using RecordMetaData.convertFields(Conversion[]) or RecordMetaData.convertIndexes(Conversion[]) (Conversion[])}. Columns without a known conversion will have their values put into the map as plain Strings.
      Specified by:
      toFieldObjectMap in interface Record
      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 Map<Integer,Object> toIndexObjectMap(int... selectedIndex)
      Description copied from interface: Record
      Converts the record into a map of Object values. Conversions must be registered using RecordMetaData.convertFields(Conversion[]) or RecordMetaData.convertIndexes(Conversion[]) (Conversion[])}. Columns without a known conversion will have their values put into the map as plain Strings.
      Specified by:
      toIndexObjectMap in interface Record
      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 Enum<T>> Map<T,Object> toEnumObjectMap(Class<T> enumType, T... selectedColumns)
      Description copied from interface: Record
      Converts the record into a map of Object values. Conversions must be registered using RecordMetaData.convertFields(Conversion[]) or RecordMetaData.convertIndexes(Conversion[]) (Conversion[])}. Columns without a known conversion will have their values put into the map as plain Strings.
      Specified by:
      toEnumObjectMap in interface Record
      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 Map<String,Object> fillFieldObjectMap(Map<String,Object> map, String... selectedFields)
      Description copied from interface: Record
      Fills a map with the converted Object values of this record. Conversions must be registered using RecordMetaData.convertFields(Conversion[]) or RecordMetaData.convertIndexes(Conversion[]) (Conversion[])}. Columns without a known conversion will have their values put into the map as plain Strings.
      Specified by:
      fillFieldObjectMap in interface Record
      Parameters:
      map - the map that will receive the values
      selectedFields - 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 Map<Integer,Object> fillIndexObjectMap(Map<Integer,Object> map, int... selectedIndexes)
      Description copied from interface: Record
      Fills a map with the converted Object values of this record. Conversions must be registered using RecordMetaData.convertFields(Conversion[]) or RecordMetaData.convertIndexes(Conversion[]) (Conversion[])}. Columns without a known conversion will have their values put into the map as plain Strings.
      Specified by:
      fillIndexObjectMap in interface Record
      Parameters:
      map - the map that will receive the values
      selectedIndexes - 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 Enum<T>> Map<T,Object> fillEnumObjectMap(Map<T,Object> map, T... selectedColumns)
      Description copied from interface: Record
      Fills a map with the converted Object values of this record. Conversions must be registered using RecordMetaData.convertFields(Conversion[]) or RecordMetaData.convertIndexes(Conversion[]) (Conversion[])}. Columns without a known conversion will have their values put into the map as plain Strings.
      Specified by:
      fillEnumObjectMap in interface Record
      Type Parameters:
      T - the enumeration type
      Parameters:
      map - the map that will receive the values
      selectedColumns - 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 BigInteger getBigInteger(String headerName)
      Description copied from interface: Record
      Converts the String value in the given column to a BigInteger and returns the result. The BigIntegerConversion conversion will be used perform the transformation.
      Specified by:
      getBigInteger in interface Record
      Parameters:
      headerName - the column name
      Returns:
      the BigInteger stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getBigInteger

      public BigInteger getBigInteger(Enum<?> column)
      Description copied from interface: Record
      Converts the String value in the given column to a BigInteger and returns the result. The BigIntegerConversion conversion will be used perform the transformation.
      Specified by:
      getBigInteger in interface Record
      Parameters:
      column - the column
      Returns:
      the BigInteger stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getBigInteger

      public BigInteger getBigInteger(int columnIndex)
      Description copied from interface: Record
      Converts the String value in the given column to a BigInteger and returns the result. The BigIntegerConversion conversion will be used perform the transformation.
      Specified by:
      getBigInteger in interface Record
      Parameters:
      columnIndex - the columnIndex
      Returns:
      the BigInteger stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getBigDecimal

      public BigDecimal getBigDecimal(String headerName)
      Description copied from interface: Record
      Converts the String value in the given column to a BigDecimal and returns the result. The BigDecimalConversion conversion will be used perform the transformation.
      Specified by:
      getBigDecimal in interface Record
      Parameters:
      headerName - the column name
      Returns:
      the BigDecimal stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getBigDecimal

      public BigDecimal getBigDecimal(Enum<?> column)
      Description copied from interface: Record
      Converts the String value in the given column to a BigDecimal and returns the result. The BigDecimalConversion conversion will be used perform the transformation.
      Specified by:
      getBigDecimal in interface Record
      Parameters:
      column - the column
      Returns:
      the BigDecimal stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getBigDecimal

      public BigDecimal getBigDecimal(int columnIndex)
      Description copied from interface: Record
      Converts the String value in the given column to a BigDecimal and returns the result. The BigDecimalConversion conversion will be used perform the transformation.
      Specified by:
      getBigDecimal in interface Record
      Parameters:
      columnIndex - the columnIndex
      Returns:
      the BigDecimal stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getByte

      public Byte getByte(String headerName)
      Description copied from interface: Record
      Converts the String value in the given column to a Byte and returns the result. The ByteConversion conversion will be used perform the transformation.
      Specified by:
      getByte in interface Record
      Parameters:
      headerName - the column name
      Returns:
      the Byte stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getByte

      public Byte getByte(Enum<?> column)
      Description copied from interface: Record
      Converts the String value in the given column to a Byte and returns the result. The ByteConversion conversion will be used perform the transformation.
      Specified by:
      getByte in interface Record
      Parameters:
      column - the column
      Returns:
      the Byte stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getByte

      public Byte getByte(int columnIndex)
      Description copied from interface: Record
      Converts the String value in the given column to a Byte and returns the result. The ByteConversion conversion will be used perform the transformation.
      Specified by:
      getByte in interface Record
      Parameters:
      columnIndex - the columnIndex
      Returns:
      the Byte stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getShort

      public Short getShort(String headerName)
      Description copied from interface: Record
      Converts the String value in the given column to a Short and returns the result. The ShortConversion conversion will be used perform the transformation.
      Specified by:
      getShort in interface Record
      Parameters:
      headerName - the column name
      Returns:
      the Short stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getShort

      public Short getShort(Enum<?> column)
      Description copied from interface: Record
      Converts the String value in the given column to a Short and returns the result. The ShortConversion conversion will be used perform the transformation.
      Specified by:
      getShort in interface Record
      Parameters:
      column - the column
      Returns:
      the Short stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getShort

      public Short getShort(int columnIndex)
      Description copied from interface: Record
      Converts the String value in the given column to a Short and returns the result. The ShortConversion conversion will be used perform the transformation.
      Specified by:
      getShort in interface Record
      Parameters:
      columnIndex - the columnIndex
      Returns:
      the Short stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getInt

      public Integer getInt(String headerName)
      Description copied from interface: Record
      Converts the String value in the given column to a Integer and returns the result. The IntegerConversion conversion will be used perform the transformation.
      Specified by:
      getInt in interface Record
      Parameters:
      headerName - the column name
      Returns:
      the Integer stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getInt

      public Integer getInt(Enum<?> column)
      Description copied from interface: Record
      Converts the String value in the given column to a Integer and returns the result. The IntegerConversion conversion will be used perform the transformation.
      Specified by:
      getInt in interface Record
      Parameters:
      column - the column
      Returns:
      the Integer stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getInt

      public Integer getInt(int columnIndex)
      Description copied from interface: Record
      Converts the String value in the given column to a Integer and returns the result. The IntegerConversion conversion will be used perform the transformation.
      Specified by:
      getInt in interface Record
      Parameters:
      columnIndex - the columnIndex
      Returns:
      the Integer stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getLong

      public Long getLong(String headerName)
      Description copied from interface: Record
      Converts the String value in the given column to a Long and returns the result. The LongConversion conversion will be used perform the transformation.
      Specified by:
      getLong in interface Record
      Parameters:
      headerName - the column name
      Returns:
      the Long stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getLong

      public Long getLong(Enum<?> column)
      Description copied from interface: Record
      Converts the String value in the given column to a Long and returns the result. The LongConversion conversion will be used perform the transformation.
      Specified by:
      getLong in interface Record
      Parameters:
      column - the column
      Returns:
      the Long stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getLong

      public Long getLong(int columnIndex)
      Description copied from interface: Record
      Converts the String value in the given column to a Long and returns the result. The LongConversion conversion will be used perform the transformation.
      Specified by:
      getLong in interface Record
      Parameters:
      columnIndex - the columnIndex
      Returns:
      the Long stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getFloat

      public Float getFloat(String headerName)
      Description copied from interface: Record
      Converts the String value in the given column to a Float and returns the result. The FloatConversion conversion will be used perform the transformation.
      Specified by:
      getFloat in interface Record
      Parameters:
      headerName - the column name
      Returns:
      the Float stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getFloat

      public Float getFloat(Enum<?> column)
      Description copied from interface: Record
      Converts the String value in the given column to a Float and returns the result. The FloatConversion conversion will be used perform the transformation.
      Specified by:
      getFloat in interface Record
      Parameters:
      column - the column
      Returns:
      the Float stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getFloat

      public Float getFloat(int columnIndex)
      Description copied from interface: Record
      Converts the String value in the given column to a Float and returns the result. The FloatConversion conversion will be used perform the transformation.
      Specified by:
      getFloat in interface Record
      Parameters:
      columnIndex - the columnIndex
      Returns:
      the Float stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getDouble

      public Double getDouble(String headerName)
      Description copied from interface: Record
      Converts the String value in the given column to a Double and returns the result. The DoubleConversion conversion will be used perform the transformation.
      Specified by:
      getDouble in interface Record
      Parameters:
      headerName - the column name
      Returns:
      the Double stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getDouble

      public Double getDouble(Enum<?> column)
      Description copied from interface: Record
      Converts the String value in the given column to a Double and returns the result. The DoubleConversion conversion will be used perform the transformation.
      Specified by:
      getDouble in interface Record
      Parameters:
      column - the column
      Returns:
      the Double stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getDouble

      public Double getDouble(int columnIndex)
      Description copied from interface: Record
      Converts the String value in the given column to a Double and returns the result. The DoubleConversion conversion will be used perform the transformation.
      Specified by:
      getDouble in interface Record
      Parameters:
      columnIndex - the columnIndex
      Returns:
      the Double stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getDate

      public Date getDate(String headerName)
      Description copied from interface: Record
      Converts the String value in the given column to a Date and returns the result. The DateConversion conversion sequence registered using RecordMetaData.convertFields(Conversion[]) will be used perform the transformation.
      Specified by:
      getDate in interface Record
      Parameters:
      headerName - the column name
      Returns:
      the Date stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getDate

      public Date getDate(Enum<?> column)
      Description copied from interface: Record
      Converts the String value in the given column to a Date and returns the result. The DateConversion conversion sequence registered using RecordMetaData.convertFields(Conversion[]) will be used perform the transformation.
      Specified by:
      getDate in interface Record
      Parameters:
      column - the column
      Returns:
      the Date stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getDate

      public Date getDate(int columnIndex)
      Description copied from interface: Record
      Converts the String value in the given column to a Date and returns the result. The DateConversion conversion sequence registered using RecordMetaData.convertFields(Conversion[]) will be used perform the transformation.
      Specified by:
      getDate in interface Record
      Parameters:
      columnIndex - the column index
      Returns:
      the Date stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getCalendar

      public Calendar getCalendar(String headerName)
      Description copied from interface: Record
      Converts the String value in the given column to a Calendar and returns the result. The CalendarConversion conversion sequence registered using RecordMetaData.convertFields(Conversion[]) will be used perform the transformation.
      Specified by:
      getCalendar in interface Record
      Parameters:
      headerName - the column name
      Returns:
      the Calendar stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getCalendar

      public Calendar getCalendar(Enum<?> column)
      Description copied from interface: Record
      Converts the String value in the given column to a Calendar and returns the result. The CalendarConversion conversion sequence registered using RecordMetaData.convertFields(Conversion[]) will be used perform the transformation.
      Specified by:
      getCalendar in interface Record
      Parameters:
      column - the column
      Returns:
      the Calendar stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • getCalendar

      public Calendar getCalendar(int columnIndex)
      Description copied from interface: Record
      Converts the String value in the given column to a Calendar and returns the result. The CalendarConversion conversion sequence registered using RecordMetaData.convertFields(Conversion[]) will be used perform the transformation.
      Specified by:
      getCalendar in interface Record
      Parameters:
      columnIndex - the column index
      Returns:
      the Calendar stored in the given column, null or the default value specified in RecordMetaData.defaultValueOf(String)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getValues

      public String[] getValues(String... fieldNames)
      Description copied from interface: Record
      Returns a selection of plain values obtained from a record parsed from the input.
      Specified by:
      getValues in interface Record
      Parameters:
      fieldNames - sequence of field names whose values will be returned.
      Returns:
      a String array with the selected values parsed from the input for this record.
    • getValues

      public String[] getValues(int... fieldIndexes)
      Description copied from interface: Record
      Returns a selection of plain values obtained from a record parsed from the input.
      Specified by:
      getValues in interface Record
      Parameters:
      fieldIndexes - sequence of field indexes whose values will be returned.
      Returns:
      a String array with the selected values parsed from the input for this record.
    • getValues

      public String[] getValues(Enum<?>... fields)
      Description copied from interface: Record
      Returns a selection of plain values obtained from a record parsed from the input.
      Specified by:
      getValues in interface Record
      Parameters:
      fields - sequence of fields whose values will be returned.
      Returns:
      a String array with the selected values parsed from the input for this record.