protected Writable getNextRecord ( ) { Writable w = null ; if ( recordLookahead != null ) { w = recordLookahead ; recordLookahead = null ; } while ( w == null && super . hasNext ( ) ) { w = super . next ( ) . iterator ( ) . next ( ) ; if ( ! w . toString ( ) . startsWith ( COMMENT_CHAR ) ) break ; w = null ; } return w ; }
Helper function to help detect lines that are commented out . May read ahead and cache a line .