in src/main/java/com/spotify/sparkey/SparkeyLogIterator.java [294:310]
public long skip(long n) throws IOException {
if (n < 0) {
throw new IllegalArgumentException();
}
if (remaining >= n) {
while (n > 0) {
long skipped = stream.skip(n);
if (skipped == 0) {
throw new EOFException();
}
remaining -= skipped;
n -= skipped;
}
return n;
}
throw new EOFException();
}