/** * Read a single reference's log. * * @param refName * exact name of the reference whose log to read. * @return cursor to iterate; empty cursor if no logs match. * @throws java.io.IOException * if logs cannot be read. */ public LogCursor seekLog(String refName) throws IOException { return seekLog(refName, Long.MAX_VALUE); }
/** {@inheritDoc} */ @Override public LogCursor seekLog(String refName, long updateIdx) throws IOException { MergedLogCursor m = new MergedLogCursor(); for (int i = 0; i < tables.length; i++) { m.add(new LogQueueEntry(tables[i].seekLog(refName, updateIdx), i)); } return m; }
/** * Read a single reference's log. * * @param refName * exact name of the reference whose log to read. * @return cursor to iterate; empty cursor if no logs match. * @throws java.io.IOException * if logs cannot be read. */ public LogCursor seekLog(String refName) throws IOException { return seekLog(refName, Long.MAX_VALUE); }
/** {@inheritDoc} */ @Override public LogCursor seekLog(String refName, long updateIdx) throws IOException { MergedLogCursor m = new MergedLogCursor(); for (int i = 0; i < tables.length; i++) { m.add(new LogQueueEntry(tables[i].seekLog(refName, updateIdx), i)); } return m; }