simpledb.buffer
Interface PageFormatter

All Known Implementing Classes:
BTPageFormatter

public interface PageFormatter

An interface used to initialize a new block on disk. There will be an implementing class for each "type" of disk block.

Author:
Edward Sciore

Method Summary
 void format(Page p)
          Initializes a page, whose contents will be written to a new disk block.
 

Method Detail

format

void format(Page p)
Initializes a page, whose contents will be written to a new disk block. This method is called only during the method Buffer.assignToNew(java.lang.String, simpledb.buffer.PageFormatter).

Parameters:
p - a buffer page


Copyright © 2011. All Rights Reserved.