Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-789

BigdataSailRemoteRepositoryConnection should implement interface methods

    XMLWordPrintable

    Details

      Description

      prepare*Query methods from BigdataSailRemoteRepositoryConnection return query objects that support only evaluate() method, other methods throw UnsupportedOperationException. There are TODOs about implementing that:

       * TODO Implement buffering of adds and removes so that we can turn off
       * 		auto-commit. 
       * TODO Fix all the Query objects (TupleQuery, GraphQuery,
       * 		BooleanQuery) to support the various possible operations on them, such as
       * 		setting a binding. 
      

      I found this when I tried to use evaluate(RDFHandler/TupleQueryResultHandler) and setBinding() methods.
      Why I need them:
      - setBinding() is just convenient to use
      - e.g. you don't have to worry about escaping while manually constructing bindings in SPARQL. And our exising code uses this method a lot.
      - evaluate() with callback can be more efficient because it can avoid using additional thread from executor to parse result and use calling thread to do that at the same time handling the results.

      Also we will probably need setMaxQueryTime().

      This is about READ_CACHE branch rev 7217.

        Attachments

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              Assignee:
              igorkim igorkim
              Reporter:
              ash2k ash2k
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: