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


Java QueryEvaluationException.printStackTrace方法代碼示例

本文整理匯總了Java中org.openrdf.query.QueryEvaluationException.printStackTrace方法的典型用法代碼示例。如果您正苦於以下問題:Java QueryEvaluationException.printStackTrace方法的具體用法?Java QueryEvaluationException.printStackTrace怎麽用?Java QueryEvaluationException.printStackTrace使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.openrdf.query.QueryEvaluationException的用法示例。


在下文中一共展示了QueryEvaluationException.printStackTrace方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: fetchArgResults

import org.openrdf.query.QueryEvaluationException; //導入方法依賴的package包/類
public CloseableIteration<BindingSet, QueryEvaluationException>  fetchArgResults(final TupleExpr joinArg, final BindingSet bindings) {
//		Callable<Cursor<BindingSet>> callable = new Callable<Cursor<BindingSet>>() {
		Callable<CloseableIteration<BindingSet, QueryEvaluationException>>  callable = new Callable<CloseableIteration<BindingSet, QueryEvaluationException>>() {
//			@Override public Cursor<BindingSet> call() {
			@Override public CloseableIteration<BindingSet, QueryEvaluationException> call() {
//				return evaluate(joinArg, bindings);
				try {
					return evaluate(joinArg, bindings);
				} catch (QueryEvaluationException e) {
					e.printStackTrace();
					return null;
				}
			}
		};
//		Future<Cursor<BindingSet>> future = executor.submit(callable);
		Future<CloseableIteration<BindingSet, QueryEvaluationException>> future = executor.submit(callable);
		return new AsyncCursor<BindingSet>(future);
	}
 
開發者ID:goerlitz,項目名稱:rdffederator,代碼行數:19,代碼來源:FederationEvalStrategy.java

示例2: getSearchFunction

import org.openrdf.query.QueryEvaluationException; //導入方法依賴的package包/類
/**
 * Get a {@link GeoSearchFunction} for a give URI.
 * 
 * @param searchFunction
 * @return
 */
public SearchFunction getSearchFunction(final URI searchFunction) {

    SearchFunction geoFunc = null;

    try {
        geoFunc = getSearchFunctionInternal(searchFunction);
    } catch (QueryEvaluationException e) {
        e.printStackTrace();
    }

    return geoFunc;
}
 
開發者ID:apache,項目名稱:incubator-rya,代碼行數:19,代碼來源:SearchFunctionFactory.java

示例3: getSearchFunction

import org.openrdf.query.QueryEvaluationException; //導入方法依賴的package包/類
/**
 * Get a {@link TemporalSearchFunction} for a give URI.
 *
 * @param searchFunction
 * @return
 */
public SearchFunction getSearchFunction(final URI searchFunction) {
    SearchFunction geoFunc = null;
    try {
        geoFunc = getSearchFunctionInternal(searchFunction);
    } catch (final QueryEvaluationException e) {
        e.printStackTrace();
    }

    return geoFunc;
}
 
開發者ID:apache,項目名稱:incubator-rya,代碼行數:17,代碼來源:TemporalTupleSet.java

示例4: getSearchFunction

import org.openrdf.query.QueryEvaluationException; //導入方法依賴的package包/類
/**
 * Get a {@link GeoSearchFunction} for a given URI.
 * 
 * @param searchFunction
 * @return
 */
public SearchFunction getSearchFunction(final URI searchFunction) {

    SearchFunction geoFunc = null;

    try {
        geoFunc = getSearchFunctionInternal(searchFunction);
    } catch (QueryEvaluationException e) {
        e.printStackTrace();
    }

    return geoFunc;
}
 
開發者ID:apache,項目名稱:incubator-rya,代碼行數:19,代碼來源:MongoGeoTupleSet.java

示例5: getSearchFunction

import org.openrdf.query.QueryEvaluationException; //導入方法依賴的package包/類
/**
 * Get a {@link GeoSearchFunction} for a given URI.
 *
 * @param searchFunction
 * @return
 */
public SearchFunction getSearchFunction(final URI searchFunction) {

    SearchFunction geoFunc = null;

    try {
        geoFunc = getSearchFunctionInternal(searchFunction);
    } catch (final QueryEvaluationException e) {
        e.printStackTrace();
    }

    return geoFunc;
}
 
開發者ID:apache,項目名稱:incubator-rya,代碼行數:19,代碼來源:GeoTupleSet.java

示例6: NaiveAlgorithm

import org.openrdf.query.QueryEvaluationException; //導入方法依賴的package包/類
/**
 * First off we start a graphDB. then we go over all valid assignments and add them all to undecided keys.
 * We have nodeDic to keep track of all entered nodes, one for each assignment which we also do in the 
 * while loop (enter a node with it's relevant matadata using json and Gson, for each assignment)
 * @param TupleQueryResult validAssignments, int suppToMakeSig, int usersToMakeSig.
 */
@SuppressWarnings("deprecation")
public NaiveAlgorithm(TupleQueryResult validAssignments, int suppToMakeSig, int usersToMakeSig) 
{
	/*first off we start a graphDB. then we go over all valid assignments and add them all to undecided keys.
	 * We have nodeDic to keep track of all entered nodes, one for each assignment which we also do in the 
	 * while loop (enter a node with it's relevant matadata using json and Gson, for each assignment) */
	super(validAssignments);
	this.nodeDic = new HashMap<BindingSet, Node>();
	this.MSP = new ArrayList<BindingSet>();
	this.undecidedKeys = new ArrayList<BindingSet>();
	this.suppToMakeSig =suppToMakeSig;
	this.usersToMakeSig = usersToMakeSig;
	
	BindingSet tempBindingSet = null;
	Node node = null;
	Transaction tx = graphDB.beginTx();
	try
	{
		while(validAssignments.hasNext())
		{ 
			tempBindingSet = validAssignments.next();
			node = graphDB.createNode();
			setBindingSet(node, tempBindingSet);
			setSupportDic(node, new HashMap<String,Integer>());
			setSignificanceBit(node, 0);
			nodeDic.put(tempBindingSet, node);
			this.undecidedKeys.add(tempBindingSet);
		}
		tx.success();
	}catch (QueryEvaluationException e)
	{
		e.printStackTrace();
	}finally
	{
		tx.finish();
	}
}
 
開發者ID:matanso,項目名稱:OASSIS,代碼行數:44,代碼來源:NaiveAlgorithm.java

示例7: countResults

import org.openrdf.query.QueryEvaluationException; //導入方法依賴的package包/類
private long countResults(TupleQueryResult results) {
	try {
		long counter = 0;
		while (results.hasNext()) {
			results.next();
			counter++;
		}
		return counter;
	} catch (QueryEvaluationException e) {
		e.printStackTrace();
		return 0;
	}
}
 
開發者ID:calipho-sib,項目名稱:sparql-playground,代碼行數:14,代碼來源:SparqlServiceIntegrationTest.java

示例8: buildHashMap

import org.openrdf.query.QueryEvaluationException; //導入方法依賴的package包/類
private void buildHashMap() {
	
	try {
		this.joinHashMap = new HashMap<List<Binding>, List<BindingSet>>();
		
		// populate hash map with left side results
		while (!closed && leftIter.hasNext()) {
			BindingSet next = leftIter.next();
			
			// compile join bindings of current binding set
			// (cross product will result in empty bindings list)
			List<Binding> joinBindings = new ArrayList<Binding>();
			for (String bindingName : this.joinBindingNames) {
				joinBindings.add(next.getBinding(bindingName));
			}

			// add join bindings to hash map
			List<BindingSet> bindings = joinHashMap.get(joinBindings);
			if (bindings == null) {
				bindings = new ArrayList<BindingSet>();
				joinHashMap.put(joinBindings, bindings);
			}
			bindings.add(next);
		}
	} catch (QueryEvaluationException e) {
		e.printStackTrace();
	}
}
 
開發者ID:goerlitz,項目名稱:rdffederator,代碼行數:29,代碼來源:HashJoinCursor.java

示例9: closeGraphQueryResult

import org.openrdf.query.QueryEvaluationException; //導入方法依賴的package包/類
static void closeGraphQueryResult(GraphQueryResult result) {
	try {
		result.close();
	} catch (QueryEvaluationException e1) {
		e1.printStackTrace();
	} catch (NullPointerException e) {
		e.printStackTrace();
	}
}
 
開發者ID:therelaxist,項目名稱:spring-usc,代碼行數:10,代碼來源:Homework.java

示例10: closeTupleQueryResult

import org.openrdf.query.QueryEvaluationException; //導入方法依賴的package包/類
static void closeTupleQueryResult(TupleQueryResult result) {
	try {
		result.close();
	} catch (QueryEvaluationException e1) {
		e1.printStackTrace();
	} catch (NullPointerException e) {
		e.printStackTrace();
	}
}
 
開發者ID:therelaxist,項目名稱:spring-usc,代碼行數:10,代碼來源:Homework.java


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