Class MutableTupleQueryResult

    • Constructor Detail

      • MutableTupleQueryResult

        public MutableTupleQueryResult​(Collection<String> bindingNames,
                                       Collection<? extends BindingSet> bindingSets)
        Creates a query result table with the supplied binding names. The supplied list of binding names is assumed to be constant; care should be taken that the contents of this list doesn't change after supplying it to this solution.
        Parameters:
        bindingNames - The binding names, in order of projection.
      • MutableTupleQueryResult

        @Deprecated(since="4.1.0",
                    forRemoval=true)
        public MutableTupleQueryResult​(Collection<String> bindingNames,
                                       org.eclipse.rdf4j.common.iteration.Iteration<? extends BindingSet,​E> bindingSetIter)
                                throws E extends Exception
        Deprecated, for removal: This API element is subject to removal in a future version.
        Throws:
        E extends Exception
      • MutableTupleQueryResult

        public MutableTupleQueryResult​(Collection<String> bindingNames,
                                       org.eclipse.rdf4j.common.iteration.CloseableIteration<? extends BindingSet,​E> bindingSetIter)
                                throws E extends Exception
        Throws:
        E extends Exception
    • Method Detail

      • size

        public int size()
      • getIndex

        public int getIndex()
      • setIndex

        public void setIndex​(int index)
      • hasPrevious

        public boolean hasPrevious()
      • beforeFirst

        public void beforeFirst()
        Moves the cursor to the start of the query result, just before the first binding set. After calling this method, the result can be iterated over from scratch.
      • afterLast

        public void afterLast()
        Moves the cursor to the end of the query result, just after the last binding set.
      • insert

        public void insert​(BindingSet bindingSet)
        Inserts the specified binding set into the list. The binding set is inserted immediately before the next element that would be returned by next(), if any, and after the next element that would be returned by previous(), if any. (If the table contains no binding sets, the new element becomes the sole element on the table.) The new element is inserted before the implicit cursor: a subsequent call to next() would be unaffected, and a subsequent call to previous() would return the new binding set.
        Parameters:
        bindingSet - The binding set to insert.
      • insert

        public void insert​(int index,
                           BindingSet bindingSet)
      • append

        public void append​(BindingSet bindingSet)
      • set

        public void set​(BindingSet bindingSet)
      • remove

        public BindingSet remove​(int index)
      • clear

        public void clear()