本文整理汇总了Java中org.apache.hadoop.io.WritableUtils.cloneInto方法的典型用法代码示例。如果您正苦于以下问题:Java WritableUtils.cloneInto方法的具体用法?Java WritableUtils.cloneInto怎么用?Java WritableUtils.cloneInto使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.io.WritableUtils
的用法示例。
在下文中一共展示了WritableUtils.cloneInto方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: next
import org.apache.hadoop.io.WritableUtils; //导入方法依赖的package包/类
/** {@inheritDoc} */
public boolean next(K key, V value) throws IOException {
if (jc.flush(ivalue)) {
WritableUtils.cloneInto(key, jc.key());
WritableUtils.cloneInto(value, emit(ivalue));
return true;
}
jc.clear();
K iterkey = createKey();
final PriorityQueue<ComposableRecordReader<K,?>> q = getRecordReaderQueue();
while (!q.isEmpty()) {
fillJoinCollector(iterkey);
jc.reset(iterkey);
if (jc.flush(ivalue)) {
WritableUtils.cloneInto(key, jc.key());
WritableUtils.cloneInto(value, emit(ivalue));
return true;
}
jc.clear();
}
return false;
}
示例2: next
import org.apache.hadoop.io.WritableUtils; //导入方法依赖的package包/类
/**
* Emit the next set of key, value pairs as defined by the child
* RecordReaders and operation associated with this composite RR.
*/
public boolean next(K key, TupleWritable value) throws IOException {
if (jc.flush(value)) {
WritableUtils.cloneInto(key, jc.key());
return true;
}
jc.clear();
K iterkey = createKey();
final PriorityQueue<ComposableRecordReader<K,?>> q = getRecordReaderQueue();
while (!q.isEmpty()) {
fillJoinCollector(iterkey);
jc.reset(iterkey);
if (jc.flush(value)) {
WritableUtils.cloneInto(key, jc.key());
return true;
}
jc.clear();
}
return false;
}
示例3: next
import org.apache.hadoop.io.WritableUtils; //导入方法依赖的package包/类
/**
* 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;
}
示例4: replay
import org.apache.hadoop.io.WritableUtils; //导入方法依赖的package包/类
public boolean replay(V val) throws IOException {
WritableUtils.cloneInto(val, emit(ivalue));
return true;
}
示例5: key
import org.apache.hadoop.io.WritableUtils; //导入方法依赖的package包/类
/**
* Clone the key at the head of this RR into the object supplied.
*/
public void key(K qkey) throws IOException {
WritableUtils.cloneInto(qkey, khead);
}