global
Interface GlobalConst

All Known Implementing Classes:
AST_CreateTable, BMTest, BucketScan, BufMgr, Catalog, DiskMgr, DMTest, HashBucket, HashIndex, HashScan, HeapFile, HeapScan, HFPage, HFTest, IXTest, Page, PageId, ROTest, SortedPage, TestDriver

public interface GlobalConst

Global constants; implement this interface to access them conveniently.


Field Summary
static int EMPTY_SLOT
          Length of an "empty" slot in a heap file page.
static int FIRST_PAGEID
          Page number of the first page in a database file.
static int INVALID_PAGEID
          Page number of an invalid page (i.e.
static int MAX_COLSIZE
          Maximum length of a column (in bytes).
static int MAX_TUPSIZE
          Maximum length of a tuple (in bytes).
static int NAME_MAXLEN
          Maximum size of a name (i.e.
static int PAGE_SIZE
          Size of a page, in bytes.
static boolean PIN_DISKIO
          Replace an existing memory page with the current disk page.
static boolean PIN_MEMCPY
          Replace the buffer frame with an existing memory page.
static boolean UNPIN_CLEAN
          Optimization to avoid writing to disk when unpinned.
static boolean UNPIN_DIRTY
          Forces the page to be written to disk when unpinned.
 

Field Detail

PAGE_SIZE

static final int PAGE_SIZE
Size of a page, in bytes.

See Also:
Constant Field Values

INVALID_PAGEID

static final int INVALID_PAGEID
Page number of an invalid page (i.e. null pointer).

See Also:
Constant Field Values

FIRST_PAGEID

static final int FIRST_PAGEID
Page number of the first page in a database file.

See Also:
Constant Field Values

NAME_MAXLEN

static final int NAME_MAXLEN
Maximum size of a name (i.e. of files or attributes).

See Also:
Constant Field Values

PIN_MEMCPY

static final boolean PIN_MEMCPY
Replace the buffer frame with an existing memory page.

See Also:
Constant Field Values

PIN_DISKIO

static final boolean PIN_DISKIO
Replace an existing memory page with the current disk page.

See Also:
Constant Field Values

UNPIN_DIRTY

static final boolean UNPIN_DIRTY
Forces the page to be written to disk when unpinned.

See Also:
Constant Field Values

UNPIN_CLEAN

static final boolean UNPIN_CLEAN
Optimization to avoid writing to disk when unpinned.

See Also:
Constant Field Values

EMPTY_SLOT

static final int EMPTY_SLOT
Length of an "empty" slot in a heap file page.

See Also:
Constant Field Values

MAX_COLSIZE

static final int MAX_COLSIZE
Maximum length of a column (in bytes).

See Also:
Constant Field Values

MAX_TUPSIZE

static final int MAX_TUPSIZE
Maximum length of a tuple (in bytes).

See Also:
Constant Field Values