@Override
public boolean next(MapWritable key, MapWritable value) throws IOException {
// if we're starting out
if (hiveRowIterator == null)
hiveRowIterator = new HiveRowIterator(startPosition, endPosition, partitioner, keyAliasNames, columnAliasNames, metadata, columnNames, rateLimiter);
if (!hiveRowIterator.hasNext())
return false;
Pair<MapWritable, MapWritable> nextPair = hiveRowIterator.next();
key.clear();
key.putAll(nextPair.left);
value.clear();
value.putAll(nextPair.right);
return true;
}
SSTableRecordReader.java 文件源码
java
阅读 16
收藏 0
点赞 0
评论 0
项目:cassowary
作者:
评论列表
文章目录