org.trippi.impl.base
Class TupleBasedTripleIterator
java.lang.Object
org.trippi.TripleIterator
org.trippi.impl.base.TupleBasedTripleIterator
public class TupleBasedTripleIterator
- extends TripleIterator
A TripleIterator
that wraps a TupleIterator
,
using an array of TriplePattern
s to generate triples
for each tuple.
- Author:
- cwilper@cs.cornell.edu
Method Summary |
void |
close()
Release resources held by this iterator. |
void |
finalize()
|
boolean |
hasNext()
Return true if there are any more triples. |
org.jrdf.graph.Triple |
next()
Return the next triple. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TupleBasedTripleIterator
public TupleBasedTripleIterator(TupleIterator tuples,
TriplePattern[] patterns)
throws TrippiException
- Throws:
TrippiException
hasNext
public boolean hasNext()
- Description copied from class:
TripleIterator
- Return true if there are any more triples.
- Specified by:
hasNext
in class TripleIterator
next
public org.jrdf.graph.Triple next()
throws TrippiException
- Description copied from class:
TripleIterator
- Return the next triple.
- Specified by:
next
in class TripleIterator
- Throws:
TrippiException
close
public void close()
throws TrippiException
- Description copied from class:
TripleIterator
- Release resources held by this iterator.
- Specified by:
close
in class TripleIterator
- Throws:
TrippiException
finalize
public void finalize()
throws TrippiException
- Overrides:
finalize
in class java.lang.Object
- Throws:
TrippiException