btree
Class IndexFileScan

java.lang.Object
  extended bybtree.IndexFileScan
Direct Known Subclasses:
BTFileScan

public abstract class IndexFileScan
extends java.lang.Object

Base class for a index file scan


Constructor Summary
IndexFileScan()
           
 
Method Summary
abstract  void delete_current()
          Delete the current record.
abstract  KeyDataEntry get_next()
          Get the next record.
abstract  int keysize()
          Returns the size of the key
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexFileScan

public IndexFileScan()
Method Detail

get_next

public abstract KeyDataEntry get_next()
                               throws ScanIteratorException
Get the next record.

Returns:
the KeyDataEntry, which contains the key and data
Throws:
ScanIteratorException - error when iterating through the records

delete_current

public abstract void delete_current()
                             throws ScanDeleteException
Delete the current record.

Throws:
ScanDeleteException - delete current record failed

keysize

public abstract int keysize()
Returns the size of the key

Returns:
the keysize