|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.xindice.core.filer.Paged.FileHeader
public abstract class Paged.FileHeader
Paged file's header
Constructor Summary | |
---|---|
Paged.FileHeader()
|
|
Paged.FileHeader(boolean read)
|
|
Paged.FileHeader(long pageCount)
|
|
Paged.FileHeader(long pageCount,
int pageSize)
|
Method Summary | |
---|---|
void |
decRecordCount()
Decrement the number of records being managed by the file |
long |
getFirstFreePage()
The first free page in unused secondary space |
short |
getHeaderSize()
The size of the FileHeader. |
long |
getLastFreePage()
The last free page in unused secondary space |
short |
getMaxKeySize()
Get the maximum number of bytes. |
long |
getPageCount()
The number of pages in primary storage |
byte |
getPageHeaderSize()
Get the size of a page header. |
int |
getPageSize()
The size of a page. |
long |
getRecordCount()
The number of records being managed by the file (not pages) |
long |
getTotalCount()
The number of total pages in the file |
int |
getWorkSize()
|
void |
incRecordCount()
Increment the number of records being managed by the file |
long |
incTotalCount()
|
boolean |
isDirty()
|
void |
read()
|
void |
read(RandomAccessFile raf)
|
void |
setDirty()
|
void |
setFirstFreePage(long firstFreePage)
The first free page in unused secondary space |
void |
setHeaderSize(short headerSize)
The size of the FileHeader. |
void |
setLastFreePage(long lastFreePage)
The last free page in unused secondary space |
void |
setMaxKeySize(short maxKeySize)
Set the maximum number of bytes a key can be. |
void |
setPageCount(long pageCount)
The number of pages in primary storage. |
void |
setPageHeaderSize(byte pageHeaderSize)
Set the size of a page header. |
void |
setPageSize(int pageSize)
The size of a page. |
void |
setTotalCount(long totalCount)
The number of total pages in the file. |
void |
write()
|
void |
write(RandomAccessFile raf)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Paged.FileHeader()
public Paged.FileHeader(long pageCount)
public Paged.FileHeader(long pageCount, int pageSize)
public Paged.FileHeader(boolean read) throws IOException
IOException
Method Detail |
---|
public final void read() throws IOException
IOException
public void read(RandomAccessFile raf) throws IOException
IOException
public final void write() throws IOException
IOException
public void write(RandomAccessFile raf) throws IOException
IOException
public final void setDirty()
public final boolean isDirty()
public final void setHeaderSize(short headerSize)
headerSize
- the new header sizepublic final short getHeaderSize()
public final void setPageSize(int pageSize)
pageSize
- the new page sizepublic final int getPageSize()
public final void setPageCount(long pageCount)
pageCount
- the new page countpublic final long getPageCount()
public final void setTotalCount(long totalCount)
totalCount
- the new total countpublic final long incTotalCount()
public final long getTotalCount()
public final void setFirstFreePage(long firstFreePage)
firstFreePage
- the new first free pagepublic final long getFirstFreePage()
public final void setLastFreePage(long lastFreePage)
lastFreePage
- sets the last free pagepublic final long getLastFreePage()
public final void setPageHeaderSize(byte pageHeaderSize)
pageHeaderSize
- the new page header sizepublic final byte getPageHeaderSize()
public final void setMaxKeySize(short maxKeySize)
maxKeySize
- the new max key sizepublic final short getMaxKeySize()
public final void incRecordCount()
public final void decRecordCount()
public final long getRecordCount()
public final int getWorkSize()
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |