A buffer for results of a query.
|
C# Example |
QueryResultBuffer buffer = new QueryResultBuffer(); Variable a = new Variable("a"), b = new Variable("b"), c = new Variable("c"); source.Query( new Statement[] { new Statement(a, "http://xmlns.com/foaf/0.1/nick", (Literal)"MyNickName"), new Statement(a, b, c) }, , new QueryOptions(), buffer); foreach (VariableBindings b in buffer) { Console.WriteLine("a => " + b["a"]); Console.WriteLine("b => " + b["b"]); Console.WriteLine(); } |
See Also: Inherited members from QueryResultSink.
Creates a new instance of this class. |
Bindings [read-only] | System.Collections.Generic.List<SemWeb.Query.VariableBindings> . The bindings that have been buffered. |
Comments [read-only] | System.Collections.Generic.List<System.String> . To be added. |
Variables [read-only] | SemWeb.Variable[]. A list of the variables potentially bound by the query. |
abstract |
Add
(VariableBindings) Called to add a new result row. (Inherited from QueryResultSink.) |
AddComments
(string) Adds comments about how the query has been processed. (Inherited from QueryResultSink.) |
|
Finished
() This method is called by a Query object after the last variable binding is added. (Inherited from QueryResultSink.) |
|
Init
(SemWeb.Variable[]) Called by the Query to initialize the result sink. (Inherited from QueryResultSink.) |
Creates a new instance of this class.
The bindings that have been buffered.
A list of the variables potentially bound by the query.
To be added.