本文整理匯總了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);
}