Class ResultSetConsumer.HasResult

  • Enclosing class:
    ResultSetConsumer

    public static class ResultSetConsumer.HasResult
    extends ResultSetConsumer
    Helper implementation that allows you to find out simply if there were any results in the ResultSet
    • Constructor Detail

      • HasResult

        public HasResult()
    • Method Detail

      • processResultSet

        public void processResultSet​(org.apache.jena.query.ResultSet rs)
        Override the helper method for processing results to quickly check if there are any results
        Overrides:
        processResultSet in class ResultSetConsumer
        Parameters:
        rs - - the ResultSet to process
      • processQuerySolution

        protected void processQuerySolution​(org.apache.jena.query.QuerySolution qs)
        Description copied from class: ResultSetConsumer
        Method for processing each QuerySolution - must be overridden in each implementation
        Specified by:
        processQuerySolution in class ResultSetConsumer
        Parameters:
        qs - - the current query solution
      • hasResult

        public boolean hasResult()
        Were any results found