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