Class MRecordReader.Position

  • Enclosing interface:
    MRecordReader

    public static class MRecordReader.Position
    extends Object
    Position in the input file.
    • Constructor Detail

      • Position

        public Position​(int r,
                        int l)
        Creates a locator.
        Parameters:
        r - the record number (greater than zero)
        l - the line number (greater than zero)
    • Method Detail

      • getRecordNumber

        public int getRecordNumber()
        Gets the record number.
        Returns:
        the record number (greater than zero)
      • getLineNumber

        public int getLineNumber()
        Gets the line number.
        Returns:
        the line number (greater than zero)