|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.trippi.TripleIterator org.trippi.impl.kowari.KowariTripleIterator
public class KowariTripleIterator
A TripleIterator
that wraps a Kowari Answer object containing
triples.
Field Summary |
---|
Fields inherited from class org.trippi.TripleIterator |
---|
INPUT_FORMATS, OUTPUT_FORMATS |
Constructor Summary | |
---|---|
KowariTripleIterator(org.kowari.query.Answer answer)
Initialize the iterator given a Kowari Answer. |
Method Summary | |
---|---|
void |
close()
Release resources held by this iterator. |
void |
finalize()
Ensure close() gets called at garbage collection time. |
boolean |
hasNext()
Return true if there are any more triples. |
org.jrdf.graph.Triple |
next()
Return the next triple. |
Methods inherited from class org.trippi.TripleIterator |
---|
addToGraph, count, deleteFromGraph, fromStream, fromStream, setAliasMap, toStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KowariTripleIterator(org.kowari.query.Answer answer) throws TrippiException
TrippiException
- if there is an error positioning to the
first result.Method Detail |
---|
public boolean hasNext()
TripleIterator
hasNext
in class TripleIterator
public org.jrdf.graph.Triple next() throws TrippiException
TripleIterator
next
in class TripleIterator
TrippiException
public void close() throws TrippiException
TripleIterator
close
in class TripleIterator
TrippiException
public void finalize() throws TrippiException
finalize
in class java.lang.Object
TrippiException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |