public void readFromStream(FSDataInputStream stream) throws IOException {
Stopwatch watch = new Stopwatch();
watch.start();
BitData.FragmentRecordBatch header = BitData.FragmentRecordBatch.parseDelimitedFrom(stream);
DrillBuf buf = allocator.buffer(bodyLength);
buf.writeBytes(stream, bodyLength);
batch = new RawFragmentBatch(null, header, buf, null);
buf.release();
available = true;
latch.countDown();
long t = watch.elapsed(TimeUnit.MICROSECONDS);