|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.trippi.TupleIterator
org.trippi.impl.base.LimitedTupleIterator
public class LimitedTupleIterator
Ensures that no more than a certain number of items are returned by the wrapped iterator.
| Field Summary |
|---|
| Fields inherited from class org.trippi.TupleIterator |
|---|
INPUT_FORMATS, OUTPUT_FORMATS |
| Constructor Summary | |
|---|---|
LimitedTupleIterator(TupleIterator wrapped,
int limit)
|
|
| Method Summary | |
|---|---|
void |
close()
Release resources held by this TupleIterator. |
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. |
| Methods inherited from class org.trippi.TupleIterator |
|---|
count, fromStream, main, nextTriples, setAliasMap, toStream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LimitedTupleIterator(TupleIterator wrapped,
int limit)
throws TrippiException
TrippiException| Method Detail |
|---|
public boolean hasNext()
TupleIterator
hasNext in class TupleIterator
public java.util.Map next()
throws TrippiException
TupleIterator
next in class TupleIteratorTrippiException
public java.lang.String[] names()
throws TrippiException
TupleIterator
names in class TupleIteratorTrippiException
public void close()
throws TrippiException
TupleIterator
close in class TupleIteratorTrippiException
public void finalize()
throws TrippiException
TupleIterator
finalize in class TupleIteratorTrippiException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||