Class DelimitedUnmarshallingContext

    • Constructor Detail

      • DelimitedUnmarshallingContext

        public DelimitedUnmarshallingContext()
    • Method Detail

      • setRecordValue

        public void setRecordValue​(java.lang.Object value)
        Description copied from class: UnmarshallingContext
        Sets the value of the record returned from the RecordReader
        Specified by:
        setRecordValue in class UnmarshallingContext
        Parameters:
        value - the record value read by a record reader
        See Also:
        RecordReader
      • getFieldCount

        public int getFieldCount()
        Returns the number of fields read from the input stream.
        Returns:
        the number of fields
      • getFieldText

        public java.lang.String getFieldText​(java.lang.String fieldName,
                                             int position,
                                             int until)
        Returns the field text at the given position in the record.
        Parameters:
        position - the position of the field within the record
        until - the maximum position of the field as an offset of the field count, for example -2 to indicate the any position except the last two fields in the record
        Returns:
        the field text
      • toRecordValue

        public java.lang.Object toRecordValue​(java.lang.String[] array)
        Description copied from class: UnmarshallingContext
        Converts a String[] to a record value.
        Overrides:
        toRecordValue in class UnmarshallingContext
        Parameters:
        array - the String[] to convert
        Returns:
        the record value, or null if not supported
      • toRecordValue

        public java.lang.Object toRecordValue​(java.util.List<java.lang.String> list)
        Description copied from class: UnmarshallingContext
        Converts a List to a record value.
        Overrides:
        toRecordValue in class UnmarshallingContext
        Parameters:
        list - the List to convert
        Returns:
        the record value, or null if not supported