New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix rdf type jcr mixin translation #125
Conversation
* @date Oct 23, 2013 | ||
* @param <T> | ||
*/ | ||
public class DifferencingIterator<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does this class get used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, phoo. It doesn't-- it's from other work and must have gotten swept up into a stage. Should I send another commit with it removed, since you're going to squash it anyway?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good... new commit with this class removed.
|
||
// add JCR mixins as rdf:type triples | ||
final Iterator<NodeType> nodeTypes = forArray(node.getMixinNodeTypes()); | ||
concat(transform(nodeTypes, nodetype2triple())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
guava.transform() returns an interator. In this case, where guava.concat() is only taking a single arg, what purpose does the "concat" server. Would not the "transform" be sufficient?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not Guava's Iterator.concat(), it's our RdfStream.concat().
Incidentally, there is a useful invocation of Iterators.concat() with one argument. If that arg is an Iterator<Iterator>, concat() will flatten it into an Iterator, which we find useful in our code. See:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is an interesting tidbit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Java is not a functional language, but sometimes it plays one on TV.
Have we landed on a plan for the other half of this: rdf -> node-type? |
I'm working on that now. That's persistence. |
👍 |
Where did you get a squirrel? |
Resolved with: e18ddb8 |
Fixes:
https://www.pivotaltracker.com/story/show/59441130