SSTableRecordReader.java 文件源码

java
阅读 16 收藏 0 点赞 0 评论 0

项目:cassowary 作者:
@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;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号