Github user meiercaleb commented on a diff in the pull request:
https://github.com/apache/incubator-rya/pull/161#discussion_r123321422
--- Diff:
extras/rya.pcj.fluo/pcj.fluo.app/src/main/java/org/apache/rya/indexing/pcj/fluo/app/query/SparqlFluoQueryBuilder.java
---
@@ -417,6 +438,60 @@ public void meet(final Projection node) {
// Walk to the next node.
super.meet(node);
}
+
+
+ public void meet(Reduced node) {
+ //create id, initialize ConstructQueryMetadata builder,
register ConstructQueryMetadata
+ //builder with FluoQueryBuilder, and add metadata that we
currently have
+ final String constructId = nodeIds.getOrMakeId(node);
+ final ConstructQueryMetadata.Builder constructBuilder =
ConstructQueryMetadata.builder();
+ constructBuilder.setNodeId(constructId);
+ fluoQueryBuilder.setConstructQueryMetadata(constructBuilder);
+ constructBuilder.setSparql(sparql);
+
+ //get child node
+ QueryModelNode child = node.getArg();
+ Preconditions.checkArgument(child instanceof Projection ||
child instanceof MultiProjection);
--- End diff --
Think I just forgot that I had statically imported checkNotNull. Didn't
look to see if I was consistent.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---