當前位置: 首頁>>代碼示例>>Java>>正文


Java ExecException.toString方法代碼示例

本文整理匯總了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;
}
 
開發者ID:sigmoidanalytics,項目名稱:spork-streaming,代碼行數:14,代碼來源:ReadOnceBag.java

示例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);
        }
    }
 
開發者ID:sigmoidanalytics,項目名稱:spork-streaming,代碼行數:35,代碼來源:PhysicalOperator.java

示例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;
}
 
開發者ID:sigmoidanalytics,項目名稱:spork,代碼行數:14,代碼來源:ReadOnceBag.java

示例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);
    }
}
 
開發者ID:sigmoidanalytics,項目名稱:spork,代碼行數:35,代碼來源:PhysicalOperator.java


注:本文中的org.apache.pig.backend.executionengine.ExecException.toString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。