|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Filer is the low-level file management interface for Xindice. A Filer object is implemented in order to provide a data source to the Xindice Collection class. Filers are developed to perform transparent storage and retrieval to and from heterogenous data sources (such as FTP, HTTP, RDBMS, etc...)
Method Summary | |
boolean |
deleteRecord(Key key)
deleteRecord removes a Record from the Filer based on the specified Key. |
void |
flush()
flush forcefully flushes any unwritten buffers to disk. |
long |
getRecordCount()
getRecordCount returns the number of Records in the Filer. |
RecordSet |
getRecordSet()
getRecordSet returns a RecordSet object for the current Filer. |
Record |
readRecord(Key key)
readRecord returns a Record from the Filer based on the specified Key. |
Record |
readRecord(Key key,
boolean metaOnly)
readRecord returns a Record from the Filer based on the specified Key containing filer meta information and value. |
void |
setLocation(File root,
String location)
setLocation tells the Filer where to store its data. |
Record |
writeRecord(Key key,
Value value)
writeRecord writes a Value to the Filer based on the specified Key. |
Methods inherited from interface org.apache.xindice.util.Named |
getName |
Methods inherited from interface org.apache.xindice.core.DBObject |
close, create, drop, exists, isOpened, open |
Methods inherited from interface org.apache.xindice.util.Configurable |
getConfig, setConfig |
Method Detail |
public void setLocation(File root, String location)
root
- The root under which to store datalocation
- The name to use for storing datapublic Record readRecord(Key key) throws DBException
key
- The Record's Key
DBException
public Record readRecord(Key key, boolean metaOnly) throws DBException
key
- The Record's KeymetaOnly
- if true, resulting record contains only meta information
DBException
public Record writeRecord(Key key, Value value) throws DBException
key
- The Record's Keyvalue
- The Record's Value
DBException
public boolean deleteRecord(Key key) throws DBException
key
- The Record's Key
DBException
public long getRecordCount() throws DBException
DBException
public RecordSet getRecordSet() throws DBException
DBException
public void flush() throws DBException
DBException
|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |