|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrelop.Iterator
public abstract class Iterator
| Field Summary | |
|---|---|
protected Schema |
schema
Schema for resulting tuples; must be set in all subclass constructors. |
| Constructor Summary | |
|---|---|
Iterator()
|
|
| Method Summary | |
|---|---|
abstract void |
close()
Closes the iterator, releasing any resources (i.e. |
int |
execute()
Prints the schema, gets and prints all tuples, and closes the iterator. |
abstract void |
explain(int depth)
Gives a one-line explaination of the iterator, repeats the call on any child iterators, and increases the indent depth along the way. |
protected void |
finalize()
Called by the garbage collector when there are no more references to the object; closes the iterator if it's still open. |
abstract Tuple |
getNext()
Gets the next tuple in the iteration. |
abstract boolean |
hasNext()
Returns true if there are more tuples, false otherwise. |
protected void |
indent(int depth)
Outputs the indentation for the given depth. |
abstract boolean |
isOpen()
Returns true if the iterator is open; false otherwise. |
abstract void |
restart()
Restarts the iterator, i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Schema schema
| Constructor Detail |
|---|
public Iterator()
| Method Detail |
|---|
public abstract void explain(int depth)
protected void indent(int depth)
public abstract void restart()
public abstract boolean isOpen()
public abstract void close()
public abstract boolean hasNext()
public abstract Tuple getNext()
java.lang.IllegalStateException - if no more tuplespublic int execute()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||