|
dbXML API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.dbxml.core.filer.Paged
|
+--org.dbxml.core.filer.BTree
|
+--org.dbxml.core.filer.BTreeFiler
BTreeFiler is a Filer implementation based on the BTree class.
| Inner classes inherited from class org.dbxml.core.filer.BTree |
BTree.BTreeRootInfo |
| Inner classes inherited from class org.dbxml.core.filer.Paged |
Paged.FileHeader, Paged.Page, Paged.PageHeader |
| Constructor Summary | |
BTreeFiler()
|
|
| Method Summary | |
boolean |
create()
create creates a new DBObject and any associated resources for the new DBObject, such as disk files, etc. |
Paged.FileHeader |
createFileHeader()
createFileHeader must be implemented by a Paged implementation in order to create an appropriate subclass instance of a FileHeader. |
Paged.FileHeader |
createFileHeader(boolean read)
createFileHeader must be implemented by a Paged implementation in order to create an appropriate subclass instance of a FileHeader. |
Paged.FileHeader |
createFileHeader(long pageCount)
createFileHeader must be implemented by a Paged implementation in order to create an appropriate subclass instance of a FileHeader. |
Paged.FileHeader |
createFileHeader(long pageCount,
int pageSize)
createFileHeader must be implemented by a Paged implementation in order to create an appropriate subclass instance of a FileHeader. |
Paged.PageHeader |
createPageHeader()
createPageHeader must be implemented by a Paged implementation in order to create an appropriate subclass instance of a PageHeader. |
boolean |
deleteRecord(Key key)
deleteRecord removes a Record from the Filer based on the specified Key. |
org.dbxml.server.Configuration |
getConfig()
|
java.lang.String |
getName()
|
long |
getRecordCount()
getRecordCount returns the number of Records in the Filer. |
RecordSet |
getRecordSet()
getRecordSet returns a RecordSet object for the current Filer. |
boolean |
open()
open opens the DBObject |
Record |
readRecord(Key key)
readRecord returns a Record from the Filer based on the specified Key. |
void |
setCollection(Collection collection)
setCollection tells the Filer who its parent is. |
void |
setConfig(org.dbxml.server.Configuration config)
|
void |
setLocation(java.lang.String location)
|
boolean |
writeRecord(Key key,
Value value)
writeRecord writes a Value to the Filer based on the specified Key. |
| Methods inherited from class org.dbxml.core.filer.BTree |
addValue, addValue, findValue, findValue, query, query, removeValue, removeValue |
| Methods inherited from class org.dbxml.core.filer.Paged |
close, deleteArrayInt, deleteArrayLong, deleteArrayShort, deleteArrayValue, drop, exists, getFileHeader, insertArrayInt, insertArrayLong, insertArrayShort, insertArrayValue, isOpened |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.dbxml.core.DBObject |
close, drop, exists, isOpened |
| Constructor Detail |
public BTreeFiler()
| Method Detail |
public void setConfig(org.dbxml.server.Configuration config)
setConfig in interface org.dbxml.server.Configurablepublic org.dbxml.server.Configuration getConfig()
getConfig in interface org.dbxml.server.Configurablepublic void setLocation(java.lang.String location)
public java.lang.String getName()
getName in interface org.dbxml.server.Named
public boolean open()
throws DBException
DBObjectopen in interface DBObjectopen in class BTreeorg.dbxml.core.DBObject
public boolean create()
throws DBException
DBObjectcreate in interface DBObjectcreate in class BTreeorg.dbxml.core.DBObjectpublic void setCollection(Collection collection)
FilersetCollection in interface Filerorg.dbxml.core.filer.Filercollection - The owner Collection
public Record readRecord(Key key)
throws DBException
FilerreadRecord in interface Filerorg.dbxml.core.filer.Filerkey - The Record's Key
public boolean writeRecord(Key key,
Value value)
throws DBException
FilerwriteRecord in interface Filerorg.dbxml.core.filer.Filerkey - The Record's Keyvalue - The Record's Value
public boolean deleteRecord(Key key)
throws DBException
FilerdeleteRecord in interface Filerorg.dbxml.core.filer.Filerkey - The Record's Key
public long getRecordCount()
throws DBException
FilergetRecordCount in interface Filerorg.dbxml.core.filer.Filer
public RecordSet getRecordSet()
throws DBException
FilergetRecordSet in interface Filerorg.dbxml.core.filer.Filerpublic Paged.FileHeader createFileHeader()
PagedcreateFileHeader in class BTreeorg.dbxml.core.filer.Paged
public Paged.FileHeader createFileHeader(boolean read)
throws java.io.IOException
PagedcreateFileHeader in class BTreeorg.dbxml.core.filer.Pagedread - If true, reads the FileHeader from diskjava.io.IOException - if an exception occurspublic Paged.FileHeader createFileHeader(long pageCount)
PagedcreateFileHeader in class BTreeorg.dbxml.core.filer.PagedpageCount - The number of pages to allocate for primary storage
public Paged.FileHeader createFileHeader(long pageCount,
int pageSize)
PagedcreateFileHeader in class BTreeorg.dbxml.core.filer.PagedpageCount - The number of pages to allocate for primary storagepageSize - The size of a Page (should be a multiple of a FS block)public Paged.PageHeader createPageHeader()
PagedcreatePageHeader in class BTreeorg.dbxml.core.filer.Paged
|
dbXML API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||