|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrelop.Iterator
relop.IndexScan
public class IndexScan
Wrapper for bucket scan, an index access method.
| Constructor Summary | |
|---|---|
IndexScan(Schema schema,
HashIndex index,
HeapFile file)
Constructs an index scan, given the hash index and schema. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the iterator, releasing any resources (i.e. |
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. |
SearchKey |
getLastKey()
Gets the key of the last tuple returned. |
Tuple |
getNext()
Gets the next tuple in the iteration. |
int |
getNextHash()
Returns the hash value for the bucket containing the next tuple, or maximum number of buckets if none. |
boolean |
hasNext()
Returns true if there are more tuples, false otherwise. |
boolean |
isOpen()
Returns true if the iterator is open; false otherwise. |
void |
restart()
Restarts the iterator, i.e. |
| Methods inherited from class relop.Iterator |
|---|
execute, getSchema, setSchema |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexScan(Schema schema,
HashIndex index,
HeapFile file)
| Method Detail |
|---|
public void explain(int depth)
explain in class Iteratorpublic void restart()
restart in class Iteratorpublic boolean isOpen()
isOpen in class Iteratorpublic void close()
close in class Iteratorpublic boolean hasNext()
hasNext in class Iteratorpublic Tuple getNext()
getNext in class Iteratorjava.lang.IllegalStateException - if no more tuplespublic SearchKey getLastKey()
public int getNextHash()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||