@Override
    public List<Writable> next() {
        if(!hasNext()){ //Also triggers prefetch
            throw new NoSuchElementException("No next element");
        }
        List<Writable> out = next.getRecord();
        next = null;
        return out;
    }
@ Override public List < Writable > next ( ) { if ( ! hasNext ( ) ) { throw new NoSuchElementException ( "No next element" ) ; } List < Writable > out = next . getRecord ( ) ; next = null ; return out ; }
Get the next record

@return