protected Iterator < RepositoryLogRecord > getNewIterator ( int offset , int length ) { OnePidRecordListImpl logResult = getLogResult ( ) ; OnePidRecordListImpl traceResult = getTraceResult ( ) ; if ( logResult == null && traceResult == null ) { return EMPTY_ITERATOR ; } else if ( traceResult == null ) { return logResult . getNewIterator ( offset , length ) ; } else if ( logResult == null ) { return traceResult . getNewIterator ( offset , length ) ; } else { MergedServerInstanceLogRecordIterator result = new MergedServerInstanceLogRecordIterator ( logResult , traceResult ) ; result . setRange ( offset , length ) ; return result ; } }
Creates new OnePidRecordIterator returning records in the range .