Interface RecordIdentifier


public interface RecordIdentifier
A discriminator for identifying text record types in multi-record schemas. Used by multi-record text file readers to determine how to parse a given record.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets a description of the last record identification failure.
    int
    Determines the type of the given text record.
  • Method Details

    • identifyRecord

      int identifyRecord(String record)
      Determines the type of the given text record.
      Parameters:
      record - the text of the record to identify
      Returns:
      the index of the identified type in the source schema; -1 if the type could not be identified.
    • getError

      String getError()
      Gets a description of the last record identification failure. This should only be called immediately after identifyRecord(String) has reported an error. If identifyRecord succeeds, the results of calling this method are undefined.
      Returns:
      the last error reported