org.apache.hadoop.mapred.join.WrappedRecordReader.hasNext()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(85)

本文整理了Java中org.apache.hadoop.mapred.join.WrappedRecordReader.hasNext()方法的一些代码示例,展示了WrappedRecordReader.hasNext()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WrappedRecordReader.hasNext()方法的具体详情如下:
包路径:org.apache.hadoop.mapred.join.WrappedRecordReader
类名称:WrappedRecordReader
方法名:hasNext

WrappedRecordReader.hasNext介绍

[英]Return true if the RR- including the k,v pair stored in this object- is exhausted.
[中]如果RR(包括存储在此对象中的k,v对)已耗尽,则返回true。

代码示例

代码示例来源:origin: com.github.jiayuhan-it/hadoop-mapreduce-client-core

/**
 * Read the next k,v pair into the head of this object; return true iff
 * the RR and this are exhausted.
 */
protected boolean next() throws IOException {
 empty = !rr.next(khead, vhead);
 return hasNext();
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

/**
 * Read the next k,v pair into the head of this object; return true iff
 * the RR and this are exhausted.
 */
protected boolean next() throws IOException {
 empty = !rr.next(khead, vhead);
 return hasNext();
}

代码示例来源:origin: org.apache.hadoop/hadoop-mapred

/**
 * Read the next k,v pair into the head of this object; return true iff
 * the RR and this are exhausted.
 */
protected boolean next() throws IOException {
 empty = !rr.next(khead, vhead);
 return hasNext();
}

代码示例来源:origin: io.hops/hadoop-mapreduce-client-core

/**
 * Read the next k,v pair into the head of this object; return true iff
 * the RR and this are exhausted.
 */
protected boolean next() throws IOException {
 empty = !rr.next(khead, vhead);
 return hasNext();
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

/**
 * Read the next k,v pair into the head of this object; return true iff
 * the RR and this are exhausted.
 */
protected boolean next() throws IOException {
 empty = !rr.next(khead, vhead);
 return hasNext();
}

代码示例来源:origin: ch.cern.hadoop/hadoop-mapreduce-client-core

/**
 * Read the next k,v pair into the head of this object; return true iff
 * the RR and this are exhausted.
 */
protected boolean next() throws IOException {
 empty = !rr.next(khead, vhead);
 return hasNext();
}

代码示例来源:origin: org.jvnet.hudson.hadoop/hadoop-core

/**
 * Read the next k,v pair into the head of this object; return true iff
 * the RR and this are exhausted.
 */
protected boolean next() throws IOException {
 empty = !rr.next(khead, vhead);
 return hasNext();
}

代码示例来源:origin: ch.cern.hadoop/hadoop-mapreduce-client-core

/**
 * Skip key-value pairs with keys less than or equal to the key provided.
 */
public void skip(K key) throws IOException {
 if (hasNext()) {
  while (cmp.compare(khead, key) <= 0 && next());
 }
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-mapreduce-client-core

/**
 * Skip key-value pairs with keys less than or equal to the key provided.
 */
public void skip(K key) throws IOException {
 if (hasNext()) {
  while (cmp.compare(khead, key) <= 0 && next());
 }
}

代码示例来源:origin: org.apache.hadoop/hadoop-mapred

/**
 * Skip key-value pairs with keys less than or equal to the key provided.
 */
public void skip(K key) throws IOException {
 if (hasNext()) {
  while (cmp.compare(khead, key) <= 0 && next());
 }
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

/**
 * Skip key-value pairs with keys less than or equal to the key provided.
 */
public void skip(K key) throws IOException {
 if (hasNext()) {
  while (cmp.compare(khead, key) <= 0 && next());
 }
}

代码示例来源:origin: io.hops/hadoop-mapreduce-client-core

/**
 * Skip key-value pairs with keys less than or equal to the key provided.
 */
public void skip(K key) throws IOException {
 if (hasNext()) {
  while (cmp.compare(khead, key) <= 0 && next());
 }
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

/**
 * Skip key-value pairs with keys less than or equal to the key provided.
 */
public void skip(K key) throws IOException {
 if (hasNext()) {
  while (cmp.compare(khead, key) <= 0 && next());
 }
}

代码示例来源:origin: org.jvnet.hudson.hadoop/hadoop-core

/**
 * Skip key-value pairs with keys less than or equal to the key provided.
 */
public void skip(K key) throws IOException {
 if (hasNext()) {
  while (cmp.compare(khead, key) <= 0 && next());
 }
}

代码示例来源:origin: io.hops/hadoop-mapreduce-client-core

/**
 * Write key-value pair at the head of this stream to the objects provided;
 * get next key-value pair from proxied RR.
 */
public boolean next(K key, U value) throws IOException {
 if (hasNext()) {
  WritableUtils.cloneInto(key, khead);
  WritableUtils.cloneInto(value, vhead);
  next();
  return true;
 }
 return false;
}

代码示例来源:origin: org.apache.hadoop/hadoop-mapred

/**
 * Write key-value pair at the head of this stream to the objects provided;
 * get next key-value pair from proxied RR.
 */
public boolean next(K key, U value) throws IOException {
 if (hasNext()) {
  WritableUtils.cloneInto(key, khead);
  WritableUtils.cloneInto(value, vhead);
  next();
  return true;
 }
 return false;
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

/**
 * Write key-value pair at the head of this stream to the objects provided;
 * get next key-value pair from proxied RR.
 */
public boolean next(K key, U value) throws IOException {
 if (hasNext()) {
  WritableUtils.cloneInto(key, khead);
  WritableUtils.cloneInto(value, vhead);
  next();
  return true;
 }
 return false;
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-mapreduce-client-core

/**
 * Write key-value pair at the head of this stream to the objects provided;
 * get next key-value pair from proxied RR.
 */
public boolean next(K key, U value) throws IOException {
 if (hasNext()) {
  WritableUtils.cloneInto(key, khead);
  WritableUtils.cloneInto(value, vhead);
  next();
  return true;
 }
 return false;
}

代码示例来源:origin: ch.cern.hadoop/hadoop-mapreduce-client-core

/**
 * Write key-value pair at the head of this stream to the objects provided;
 * get next key-value pair from proxied RR.
 */
public boolean next(K key, U value) throws IOException {
 if (hasNext()) {
  WritableUtils.cloneInto(key, khead);
  WritableUtils.cloneInto(value, vhead);
  next();
  return true;
 }
 return false;
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

/**
 * Write key-value pair at the head of this stream to the objects provided;
 * get next key-value pair from proxied RR.
 */
public boolean next(K key, U value) throws IOException {
 if (hasNext()) {
  WritableUtils.cloneInto(key, khead);
  WritableUtils.cloneInto(value, vhead);
  next();
  return true;
 }
 return false;
}

相关文章