@Override protected QueryEvaluationException convert(Exception exception) { return new QueryEvaluationException(exception); } };
@Override protected QueryEvaluationException convert(Exception e) { return new QueryEvaluationException(e); } };
@Override protected void add(List<BindingSet> leftArgResults, BindingSet b) throws QueryEvaluationException { if (leftArgResults.add(b) && used.incrementAndGet() > maxSize) { throw new QueryEvaluationException(SIZE_LIMIT_REACHED+maxSize); } }
@Override protected void put(Map<BindingSet, List<BindingSet>> hashTable, BindingSet hashKey, List<BindingSet> hashValue) throws QueryEvaluationException { List<BindingSet> put = hashTable.put(hashKey, hashValue); if (put == null && used.incrementAndGet() > maxSize) { throw new QueryEvaluationException(SIZE_LIMIT_REACHED+maxSize); } }
public void close() throws QueryEvaluationException { try { baseIteration.close(); } catch (SailException e) { throw new QueryEvaluationException(e); } }
@Override public void close() throws QueryEvaluationException { try { iter.close(); } catch (final Exception e) { throw new QueryEvaluationException(e.getMessage(), e); } } };
public boolean hasNext() throws QueryEvaluationException { try { return baseIteration.hasNext(); } catch (SailException e) { throw new QueryEvaluationException(e); } }
@Override public void close() throws QueryEvaluationException { try { isClosed = true; query.close(); } catch (RyaDAOException e) { throw new QueryEvaluationException(e); } }
@Override public void remove() throws QueryEvaluationException { try { query.remove(); } catch (RyaDAOException e) { throw new QueryEvaluationException(e); } } };
@Override public void initialize() throws QueryEvaluationException { try { rep.initialize(); } catch (RepositoryException e) { throw new QueryEvaluationException(e); } }
public Statement next() throws QueryEvaluationException { try { return baseIteration.next(); } catch (SailException e) { throw new QueryEvaluationException(e); } }
public void remove() throws QueryEvaluationException { if (!open) throw new IllegalStateException(); try { src.remove(); } catch(SailException ex) { throw new QueryEvaluationException(ex); } }
public void close() throws QueryEvaluationException { if (open) { open = false; try { src.close(); } catch (SailException ex) { throw new QueryEvaluationException(ex); } } }
@Override public void close() throws QueryEvaluationException { closed = true; interruptParserThread(); try { queue.close(); in.close(); // close the input stream. } catch (IOException e) { throw new QueryEvaluationException(e); } }
@Override public GraphQueryResult evaluate() throws QueryEvaluationException { try { configureConnectOptions(q); return q.evaluate(); } catch (Exception ex) { throw new QueryEvaluationException(ex); } }
@Override public boolean evaluate() throws QueryEvaluationException { try { configureConnectOptions(q); return q.evaluate(); } catch (Exception ex) { throw new QueryEvaluationException(ex); } }
@Override public TupleQueryResult evaluate() throws QueryEvaluationException { try { configureConnectOptions(q); return q.evaluate(); } catch (Exception ex) { throw new QueryEvaluationException(ex); } }
public CloseableIteration<? extends Statement, QueryEvaluationException> getStatements(Resource subj, IRI pred, Value obj, Resource... contexts) throws QueryEvaluationException { try { return new Eval(dataset.getStatements(subj, pred, obj, contexts)); } catch (SailException e) { throw new QueryEvaluationException(e); } }
@Override public void close() throws QueryEvaluationException { try { result.close(); } finally { try { connection.close(); } catch (RepositoryException e) { throw new QueryEvaluationException("Exception closing connection.", e); } } }
protected void handleClose() throws QueryEvaluationException { try { super.handleClose(); leftIter.close(); iter.close(); } catch (Exception e) { throw new QueryEvaluationException(e); } } }