simpledb.index.btree
Class DirEntry

java.lang.Object
  extended by simpledb.index.btree.DirEntry

public class DirEntry
extends Object

A directory entry has two components: the number of the child block, and the dataval of the first record in that block.

Author:
Edward Sciore

Constructor Summary
DirEntry(Constant dataval, int blocknum)
          Creates a new entry for the specified dataval and block number.
 
Method Summary
 int blockNumber()
          Returns the block number component of the entry
 Constant dataVal()
          Returns the dataval component of the entry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirEntry

public DirEntry(Constant dataval,
                int blocknum)
Creates a new entry for the specified dataval and block number.

Parameters:
dataval - the dataval
blocknum - the block number
Method Detail

dataVal

public Constant dataVal()
Returns the dataval component of the entry

Returns:
the dataval component of the entry

blockNumber

public int blockNumber()
Returns the block number component of the entry

Returns:
the block number component of the entry


Copyright © 2011. All Rights Reserved.