--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
To unsubscribe from this group and stop receiving emails from it, send an email to stardog+u...@clarkparsia.com.
Am I correct that the copy constructor is how you pass state from one result to the next
and the multiplicity lets you avoid avoid calling it for a bajillion identical results?Is the multiplicity based on the entire result bindings or just the arguments to the aggregate?
On Tue, Oct 20, 2015 at 7:23 AM, Zachary Whitley <zachary...@gmail.com> wrote:Am I correct that the copy constructor is how you pass state from one result to the nextNo, the copy constructor is used during optimization when making copies of query plans.
On Tuesday, October 20, 2015 at 8:26:38 AM UTC-4, Michael Grove wrote:On Tue, Oct 20, 2015 at 7:23 AM, Zachary Whitley <zachary...@gmail.com> wrote:Am I correct that the copy constructor is how you pass state from one result to the nextNo, the copy constructor is used during optimization when making copies of query plans.Got it. So is a shallow copy sufficient or does it need to be a deep copy?
On Tue, Oct 20, 2015 at 9:55 AM, <zachary...@wavestrike.com> wrote:
On Tuesday, October 20, 2015 at 8:26:38 AM UTC-4, Michael Grove wrote:On Tue, Oct 20, 2015 at 7:23 AM, Zachary Whitley <zachary...@gmail.com> wrote:Am I correct that the copy constructor is how you pass state from one result to the nextNo, the copy constructor is used during optimization when making copies of query plans.Got it. So is a shallow copy sufficient or does it need to be a deep copy?For your own copy constructor? You'd want a deep copy.
On Tuesday, October 20, 2015 at 9:59:41 AM UTC-4, Michael Grove wrote:On Tue, Oct 20, 2015 at 9:55 AM, <zachary...@wavestrike.com> wrote:
On Tuesday, October 20, 2015 at 8:26:38 AM UTC-4, Michael Grove wrote:On Tue, Oct 20, 2015 at 7:23 AM, Zachary Whitley <zachary...@gmail.com> wrote:Am I correct that the copy constructor is how you pass state from one result to the nextNo, the copy constructor is used during optimization when making copies of query plans.Got it. So is a shallow copy sufficient or does it need to be a deep copy?For your own copy constructor? You'd want a deep copy.Ok, one last stupid question. In the Gmean.java example on aggregates is there any particular reason that it uses the Multiply and Root functions? (Other than they're there, they work, and why not?). Just wondering if there was something particular in the implementation that required it or maybe used it or if it just made for a clean example without any unnecessary dependencies.