if (hds == null) {
hds = new HyracksDataset(hcc, spec.getFrameSize(), opts.threads);
}
ByteBuffer buffer = ByteBuffer.allocate(spec.getFrameSize());
IHyracksDatasetReader reader = hds.createReader(jobId, ccb.getResultSetId());
IFrameTupleAccessor frameTupleAccessor = new ResultFrameTupleAccessor(spec.getFrameSize());
buffer.clear();
res.result = "";
while (reader.read(buffer) > 0) {
buffer.clear();
res.result += ResultUtils.getStringFromBuffer(buffer, frameTupleAccessor);
}
res.result.trim();
hcc.waitForCompletion(jobId);