/** @see com.hp.hpl.jena.mem.Temp#iterateAll(com.hp.hpl.jena.graph.Triple) */ public ExtendedIterator<Triple> iterateAll( Triple pattern ) { return indexField.filterOn( pattern ) .and( f2.filterOn( pattern ) ) .and( f3.filterOn( pattern ) ) .filterKeep( iterateAll() ) ; }
@Override public ExtendedIterator<Triple> iterator( Node index, Node n2, Node n3 ) { TripleBunch s = bunchMap.get( index.getIndexingValue() ); return s == null ? NullIterator.<Triple>instance() : f2.filterOn( n2 ).and( f3.filterOn( n3 ) ) .filterKeep( s.iterator() ) ; }
/** Answer an iterator over all the triples in this NTM which match <code>pattern</code>. The index field of this NTM is guaranteed concrete in the pattern. */ @Override public ExtendedIterator<Triple> iterator( Node index, Node n2, Node n3 ) { Object indexValue = index.getIndexingValue(); TripleBunch s = bunchMap.get( indexValue ); // System.err.println( ">> ntmf::iterator: " + (s == null ? (Object) "None" : s.getClass()) ); return s == null ? NullIterator.<Triple>instance() : f2.filterOn( n2 ).and( f3.filterOn( n3 ) ) .filterKeep( s.iterator( new NotifyMe( indexValue ) ) ) ; }