org.eclipse.rdf4j.query.QueryInterruptedException类的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.7k)|赞(0)|评价(0)|浏览(84)

本文整理了Java中org.eclipse.rdf4j.query.QueryInterruptedException类的一些代码示例,展示了QueryInterruptedException类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QueryInterruptedException类的具体详情如下:
包路径:org.eclipse.rdf4j.query.QueryInterruptedException
类名称:QueryInterruptedException

QueryInterruptedException介绍

[英]An exception indicating that the evaluation of a query has been interrupted, for example because it took too long to complete.
[中]一种异常,指示查询的计算已被中断,例如,因为它花费了太长时间才完成。

代码示例

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

@Override
  protected void throwInterruptedException()
    throws QueryEvaluationException
  {
    throw new QueryInterruptedException("Query evaluation took too long");
  }
}

代码示例来源:origin: eclipse/rdf4j

@Override
public void execute()
  throws UpdateExecutionException
{
  try {
    // execute update immediately
    SPARQLProtocolSession client = getHttpClient();
    try {
      client.sendUpdate(getQueryLanguage(), getQueryString(), getBaseURI(), dataset,
          includeInferred, getMaxExecutionTime(), getBindingsArray());
    }
    catch (UnauthorizedException e) {
      throw new UpdateExecutionException(e.getMessage(), e);
    }
    catch (QueryInterruptedException e) {
      throw new UpdateExecutionException(e.getMessage(), e);
    }
    catch (MalformedQueryException e) {
      throw new UpdateExecutionException(e.getMessage(), e);
    }
    catch (IOException e) {
      throw new UpdateExecutionException(e.getMessage(), e);
    }
  }
  catch (RepositoryException e) {
    throw new UpdateExecutionException(e.getMessage(), e);
  }
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

@Override
public void execute()
  throws UpdateExecutionException
{
  try {
    // execute update immediately
    SPARQLProtocolSession client = getHttpClient();
    try {
      client.sendUpdate(getQueryLanguage(), getQueryString(), getBaseURI(), dataset,
          includeInferred, getMaxExecutionTime(), getBindingsArray());
    }
    catch (UnauthorizedException e) {
      throw new UpdateExecutionException(e.getMessage(), e);
    }
    catch (QueryInterruptedException e) {
      throw new UpdateExecutionException(e.getMessage(), e);
    }
    catch (MalformedQueryException e) {
      throw new UpdateExecutionException(e.getMessage(), e);
    }
    catch (IOException e) {
      throw new UpdateExecutionException(e.getMessage(), e);
    }
  }
  catch (RepositoryException e) {
    throw new UpdateExecutionException(e.getMessage(), e);
  }
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

@Override
  protected void throwInterruptedException()
    throws QueryEvaluationException
  {
    throw new QueryInterruptedException("Query evaluation took too long");
  }
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-repository-sparql

@Override
public void execute()
  throws UpdateExecutionException
{
  try {
    // execute update immediately
    SPARQLProtocolSession client = getHttpClient();
    try {
      client.sendUpdate(getQueryLanguage(), getQueryString(), getBaseURI(), dataset,
          includeInferred, getMaxExecutionTime(), getBindingsArray());
    }
    catch (UnauthorizedException e) {
      throw new UpdateExecutionException(e.getMessage(), e);
    }
    catch (QueryInterruptedException e) {
      throw new UpdateExecutionException(e.getMessage(), e);
    }
    catch (MalformedQueryException e) {
      throw new UpdateExecutionException(e.getMessage(), e);
    }
    catch (IOException e) {
      throw new UpdateExecutionException(e.getMessage(), e);
    }
  }
  catch (RepositoryException e) {
    throw new UpdateExecutionException(e.getMessage(), e);
  }
}

代码示例来源:origin: eclipse/rdf4j

@Override
  protected void throwInterruptedException()
    throws QueryEvaluationException
  {
    throw new QueryInterruptedException("Query evaluation took too long");
  }
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

throw new HTTPUpdateExecutionException(e.getMessage(), e);
throw new HTTPUpdateExecutionException(e.getMessage(), e);

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-repository-sail

@Override
  protected void throwInterruptedException()
    throws QueryEvaluationException
  {
    throw new QueryInterruptedException("execution took too long");
  }
};

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-repository-http

throw new HTTPUpdateExecutionException(e.getMessage(), e);
throw new HTTPUpdateExecutionException(e.getMessage(), e);

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryparser-api

@Override
  protected void throwInterruptedException()
    throws QueryEvaluationException
  {
    throw new QueryInterruptedException("Query evaluation took too long");
  }
}

代码示例来源:origin: eclipse/rdf4j

throw new HTTPUpdateExecutionException(e.getMessage(), e);
throw new HTTPUpdateExecutionException(e.getMessage(), e);

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryparser-api

@Override
  protected void throwInterruptedException()
    throws QueryEvaluationException
  {
    throw new QueryInterruptedException("Query evaluation took too long");
  }
}

代码示例来源:origin: eclipse/rdf4j

@Override
  protected void throwInterruptedException()
    throws QueryEvaluationException
  {
    throw new QueryInterruptedException("Query evaluation took too long");
  }
}

代码示例来源:origin: franzinc/agraph-java-client

/**
 * Evaluates the query and processes the result in handler.
 * <p>
 * When the analyzeOnly flag is true, only a query analysis is
 * performed; when false, the query is executed.
 *
 * @param analyzeOnly flags for analyzing or executing
 * @param handler     processes or stores the result
 * @throws QueryEvaluationException
 */
protected void evaluate(boolean analyzeOnly, AGResponseHandler handler)
    throws QueryEvaluationException {
  try {
    httpCon.prepareHttpRepoClient().query(this, analyzeOnly, handler);
  } catch (AGQueryTimeoutException e) {
    throw new QueryInterruptedException(e);
  } catch (AGHttpException e) {
    throw new QueryEvaluationException(e);
  }
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-http-client

throw new UnauthorizedException();
case HttpURLConnection.HTTP_UNAVAILABLE: // 503
  throw new QueryInterruptedException();
default:
  ErrorInfo errInfo = getErrorInfo(response);

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

throw new UnauthorizedException();
case HttpURLConnection.HTTP_UNAVAILABLE: // 503
  throw new QueryInterruptedException();
default:
  ErrorInfo errInfo = getErrorInfo(response);

代码示例来源:origin: eclipse/rdf4j

throw new UnauthorizedException();
case HttpURLConnection.HTTP_UNAVAILABLE: // 503
  throw new QueryInterruptedException();
default:
  ErrorInfo errInfo = getErrorInfo(response);

相关文章

微信公众号

最新文章

更多