本文整理了Java中org.apache.hadoop.mapred.join.WrappedRecordReader.hasNext()
方法的一些代码示例,展示了WrappedRecordReader.hasNext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WrappedRecordReader.hasNext()
方法的具体详情如下:
包路径:org.apache.hadoop.mapred.join.WrappedRecordReader
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!