|
Xindice API version 1.1b4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xindice.core.filer.Paged
org.apache.xindice.core.filer.HashFiler
HashFiler is a Filer implementation based on the Paged class. By extending Paged, HashFiler inherits the ability to maintain Record metadata such as creation and modification time. It also provides quite a bit more flexibility in its ability to retreive blocks of data and allocate Record space.
| Nested Class Summary |
| Nested classes inherited from class org.apache.xindice.core.filer.Paged |
Paged.FileHeader, Paged.Page, Paged.PageHeader |
| Field Summary | |
protected static byte |
RECORD
Deprecated. Record page status |
| Fields inherited from class org.apache.xindice.core.filer.Paged |
DELETED, NO_PAGE, OVERFLOW, UNUSED |
| Constructor Summary | |
HashFiler()
Deprecated. |
|
| Method Summary | |
boolean |
create()
Deprecated. create creates a new DBObject and any associated resources for the new DBObject, such as disk files, etc. |
Paged.FileHeader |
createFileHeader()
Deprecated. createFileHeader must be implemented by a Paged implementation in order to create an appropriate subclass instance of a FileHeader. |
Paged.FileHeader |
createFileHeader(boolean read)
Deprecated. createFileHeader must be implemented by a Paged implementation in order to create an appropriate subclass instance of a FileHeader. |
Paged.FileHeader |
createFileHeader(long pageCount)
Deprecated. 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)
Deprecated. createFileHeader must be implemented by a Paged implementation in order to create an appropriate subclass instance of a FileHeader. |
Paged.PageHeader |
createPageHeader()
Deprecated. createPageHeader must be implemented by a Paged implementation in order to create an appropriate subclass instance of a PageHeader. |
boolean |
deleteRecord(Key key)
Deprecated. deleteRecord removes a Record from the Filer based on the specified Key. |
void |
flush()
Deprecated. flush forcefully flushes any unwritten buffers to disk. |
java.lang.String |
getName()
Deprecated. getName retrieves the contextually important name of the object |
long |
getRecordCount()
Deprecated. getRecordCount returns the number of Records in the Filer. |
RecordSet |
getRecordSet()
Deprecated. getRecordSet returns a RecordSet object for the current Filer. |
Record |
readRecord(Key key)
Deprecated. readRecord returns a Record from the Filer based on the specified Key. |
void |
setLocation(java.io.File root,
java.lang.String location)
Deprecated. setLocation tells the Filer where to store its data. |
boolean |
writeRecord(Key key,
Value value)
Deprecated. writeRecord writes a Value to the Filer based on the specified Key. |
| Methods inherited from class org.apache.xindice.core.filer.Paged |
checkOpened, close, closeDescriptor, deleteArrayInt, deleteArrayLong, deleteArrayShort, deleteArrayValue, drop, exists, getConfig, getDescriptor, getFile, getFileHeader, getFreePage, getPage, insertArrayInt, insertArrayLong, insertArrayShort, insertArrayValue, isOpened, open, putDescriptor, readValue, readValue, setConfig, setFile, unlinkPages, unlinkPages, writeValue, writeValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.xindice.core.DBObject |
close, drop, exists, isOpened, open |
| Methods inherited from interface org.apache.xindice.util.Configurable |
getConfig, setConfig |
| Field Detail |
protected static final byte RECORD
| Constructor Detail |
public HashFiler()
| Method Detail |
public void setLocation(java.io.File root,
java.lang.String location)
Filer
setLocation in interface Filerroot - The root under which to store datalocation - The name to use for storing datapublic java.lang.String getName()
Named
getName in interface Named
public boolean create()
throws DBException
DBObject
create in interface DBObjectcreate in class PagedDBException
public Record readRecord(Key key)
throws DBException
Filer
readRecord in interface Filerkey - The Record's Key
DBException
public boolean writeRecord(Key key,
Value value)
throws DBException
Filer
writeRecord in interface Filerkey - The Record's Keyvalue - The Record's Value
DBException
public boolean deleteRecord(Key key)
throws DBException
Filer
deleteRecord in interface Filerkey - The Record's Key
DBException
public long getRecordCount()
throws DBException
Filer
getRecordCount in interface FilerDBException
public RecordSet getRecordSet()
throws DBException
Filer
getRecordSet in interface FilerDBException
public void flush()
throws DBException
Filer
flush in interface Filerflush in class PagedDBExceptionpublic Paged.FileHeader createFileHeader()
Paged
createFileHeader in class Paged
public Paged.FileHeader createFileHeader(boolean read)
throws java.io.IOException
Paged
createFileHeader in class Pagedread - If true, reads the FileHeader from disk
java.io.IOException - if an exception occurspublic Paged.FileHeader createFileHeader(long pageCount)
Paged
createFileHeader in class PagedpageCount - The number of pages to allocate for primary storage
public Paged.FileHeader createFileHeader(long pageCount,
int pageSize)
Paged
createFileHeader in class 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()
Paged
createPageHeader in class Paged
|
Xindice API version 1.1b4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||