public void beginSlice() throws IOException {
Preconditions.checkState(recordIterator == null, "%s: Already initialized: %s",
this, recordIterator);
input = new CountingInputStream(
new BufferedInputStream(
new BlobstoreInputStream(new BlobKey(blobKey), startOffset + offset),
DEFAULT_BUFFER_SIZE));
recordIterator = new InputStreamIterator(input, endOffset - startOffset - offset,
startOffset != 0L && offset == 0L,
terminator);
}