LOG.info(MessageFormat.format(
"Loading ORCFile metadata ({0}): {1}",
context.getDataType().getSimpleName(),
status.getPath()));
}
Reader orc = OrcFile.createReader(context.getFileSystem(), status.getPath());
if (LOG.isInfoEnabled()) {
LOG.info(MessageFormat.format(
"Loaded ORCFile metadata ({0}): path={1}, rows={2}, deser-size={3}",
context.getDataType().getSimpleName(),
status.getPath(),
orc.getNumberOfRows(),
orc.getRawDataSize()));
}
BlockMap blockMap = BlockMap.create(
status.getPath().toString(),
status.getLen(),
BlockMap.computeBlocks(context.getFileSystem(), status),
false);
// TODO configurable split
for (StripeInformation stripe : orc.getStripes()) {
long begin = stripe.getOffset();
long end = begin + stripe.getLength();
DirectInputFragment fragment = blockMap.get(begin, end);
if (LOG.isDebugEnabled()) {
LOG.debug(MessageFormat.format(