@Override public boolean next() throws IOException { for (;;) { if (block == null || block.type() != LOG_BLOCK_TYPE) { return false; } else if (!block.next()) { long pos = block.endPosition(); if (pos >= scanEnd) { return false; } block = readBlock(pos, scanEnd); continue; } block.parseKey(); if (match != null && !block.match(match, false)) { block.skipValue(); return false; } refName = block.name(); updateIndex = block.readLogUpdateIndex(); entry = block.readLogEntry(); if (entry == null && !includeDeletes) { continue; } return true; } }
@Override public boolean next() throws IOException { for (;;) { if (block == null || block.type() != REF_BLOCK_TYPE) { return false; } else if (!block.next()) { long pos = block.endPosition(); if (pos >= scanEnd) { return false; } block = readBlock(pos, scanEnd); continue; } block.parseKey(); if (match != null && !block.match(match, prefix)) { block.skipValue(); return false; } updateIndex = minUpdateIndex + block.readUpdateIndexDelta(); ref = block.readRef(); if (!includeDeletes && wasDeleted()) { continue; } return true; } }
pos = block.endPosition();
@Override public boolean next() throws IOException { for (;;) { if (block == null || block.type() != LOG_BLOCK_TYPE) { return false; } else if (!block.next()) { long pos = block.endPosition(); if (pos >= scanEnd) { return false; } block = readBlock(pos, scanEnd); continue; } block.parseKey(); if (match != null && !block.match(match, false)) { block.skipValue(); return false; } refName = block.name(); updateIndex = block.readLogUpdateIndex(); entry = block.readLogEntry(); if (entry == null && !includeDeletes) { continue; } return true; } }
@Override public boolean next() throws IOException { for (;;) { if (block == null || block.type() != REF_BLOCK_TYPE) { return false; } else if (!block.next()) { long pos = block.endPosition(); if (pos >= scanEnd) { return false; } block = readBlock(pos, scanEnd); continue; } block.parseKey(); if (match != null && !block.match(match, prefix)) { block.skipValue(); return false; } updateIndex = minUpdateIndex + block.readUpdateIndexDelta(); ref = block.readRef(); if (!includeDeletes && wasDeleted()) { continue; } return true; } }
pos = block.endPosition();