本文整理匯總了Java中org.apache.pig.backend.executionengine.ExecException.toString方法的典型用法代碼示例。如果您正苦於以下問題:Java ExecException.toString方法的具體用法?Java ExecException.toString怎麽用?Java ExecException.toString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.pig.backend.executionengine.ExecException
的用法示例。
在下文中一共展示了ExecException.toString方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: next
import org.apache.pig.backend.executionengine.ExecException; //導入方法依賴的package包/類
@Override
public Tuple next() {
NullableTuple ntup = tupIter.next();
int index = ntup.getIndex();
Tuple ret = null;
try {
ret = pkg.getValueTuple(ntup, index, key);
} catch (ExecException e)
{
throw new RuntimeException("ReadOnceBag failed to get value tuple : "+e.toString());
}
return ret;
}
示例2: processInput
import org.apache.pig.backend.executionengine.ExecException; //導入方法依賴的package包/類
/**
* A generic method for parsing input that either returns the attached input
* if it exists or fetches it from its predecessor. If special processing is
* required, this method should be overridden.
*
* @return The Result object that results from processing the input
* @throws ExecException
*/
public Result processInput() throws ExecException {
try {
Result res = new Result();
if (input == null && (inputs == null || inputs.size()==0)) {
// log.warn("No inputs found. Signaling End of Processing.");
res.returnStatus = POStatus.STATUS_EOP;
return res;
}
//Should be removed once the model is clear
if(getReporter()!=null) {
getReporter().progress();
}
if (!isInputAttached()) {
return inputs.get(0).getNextTuple();
} else {
res.result = input;
res.returnStatus = (res.result == null ? POStatus.STATUS_NULL: POStatus.STATUS_OK);
detachInput();
return res;
}
} catch (ExecException e) {
throw new ExecException("Exception while executing " + this.toString() + ": " + e.toString(), e);
}
}
示例3: next
import org.apache.pig.backend.executionengine.ExecException; //導入方法依賴的package包/類
@Override
public Tuple next() {
NullableTuple ntup = tupIter.next();
int index = ntup.getIndex();
Tuple ret = null;
try {
ret = pkgr.getValueTuple(keyWritable, ntup, index);
} catch (ExecException e)
{
throw new RuntimeException("ReadOnceBag failed to get value tuple : "+e.toString());
}
return ret;
}
示例4: processInput
import org.apache.pig.backend.executionengine.ExecException; //導入方法依賴的package包/類
/**
* A generic method for parsing input that either returns the attached input
* if it exists or fetches it from its predecessor. If special processing is
* required, this method should be overridden.
*
* @return The Result object that results from processing the input
* @throws ExecException
*/
public Result processInput() throws ExecException {
try {
if (input == null && (inputs == null || inputs.size() == 0)) {
// log.warn("No inputs found. Signaling End of Processing.");
return new Result(POStatus.STATUS_EOP, null);
}
// Should be removed once the model is clear
if (getReporter() != null) {
getReporter().progress();
}
if (!isInputAttached()) {
return inputs.get(0).getNextTuple();
} else {
Result res = new Result();
res.result = input;
res.returnStatus = POStatus.STATUS_OK;
detachInput();
return res;
}
} catch (ExecException e) {
throw new ExecException("Exception while executing "
+ this.toString() + ": " + e.toString(), e);
}
}