|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object relop.Iterator
public abstract class Iterator
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 explanation 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 relop.Tuple |
getNext()
Gets the next tuple in the iteration. |
relop.Schema |
getSchema()
|
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. |
void |
setSchema(relop.Schema schema)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 relop.Tuple getNext()
java.lang.IllegalStateException
- if no more tuplespublic int execute()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void setSchema(relop.Schema schema)
public relop.Schema getSchema()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |