|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.trippi.TupleIterator org.trippi.impl.base.SynchronizedTupleIterator
public class SynchronizedTupleIterator
Wraps an TripleIterator
and automatically releases the
current thread's lock on the associated SynchronizedTriplestoreSession
when closed.
Field Summary |
---|
Fields inherited from class org.trippi.TupleIterator |
---|
INPUT_FORMATS, OUTPUT_FORMATS |
Constructor Summary | |
---|---|
SynchronizedTupleIterator(TupleIterator iter,
SynchronizedTriplestoreSession session)
|
Method Summary | |
---|---|
void |
close()
Close the wrapped iterator and release the session to the pool. |
void |
finalize()
Ensure close() gets called at garbage collection time. |
boolean |
hasNext()
Return true if there are more results. |
java.lang.String[] |
names()
Get the names of the binding variables. |
java.util.Map |
next()
Return the next result. |
java.util.List |
nextTriples(TriplePattern[] patterns)
Return the next result as a List of Triple objects. |
Methods inherited from class org.trippi.TupleIterator |
---|
count, fromStream, main, setAliasMap, toStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SynchronizedTupleIterator(TupleIterator iter, SynchronizedTriplestoreSession session)
Method Detail |
---|
public boolean hasNext() throws TrippiException
TupleIterator
hasNext
in class TupleIterator
TrippiException
public java.util.Map next() throws TrippiException
TupleIterator
next
in class TupleIterator
TrippiException
public java.util.List nextTriples(TriplePattern[] patterns) throws TrippiException
TupleIterator
nextTriples
in class TupleIterator
TrippiException
public java.lang.String[] names() throws TrippiException
TupleIterator
names
in class TupleIterator
TrippiException
public void close() throws TrippiException
close
in class TupleIterator
TrippiException
public void finalize() throws TrippiException
finalize
in class TupleIterator
TrippiException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |