|
Xindice API version 1.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.apache.xindice.util.SimpleConfigurable
|
+--org.apache.xindice.core.filer.SizeableMemFiler
SizeableMemFiler is an In-Memory Filer implementation for Xindice. SizeableMemFiler can be used for temporary collections and caching. It's basically a layering on top of HashMap.
| Field Summary | |
static int |
INITIAL_SIZE
|
static String |
INITIAL_SIZE_KEY
|
| Fields inherited from class org.apache.xindice.util.SimpleConfigurable |
config |
| Constructor Summary | |
SizeableMemFiler()
|
|
SizeableMemFiler(Map hashTable)
|
|
SizeableMemFiler(Map hashTable,
boolean readOnly)
|
|
| Method Summary | |
boolean |
close()
close closes the DBObject |
boolean |
create()
create creates a new DBObject and any associated resources for the new DBObject, such as disk files, etc. |
boolean |
deleteRecord(Key key)
deleteRecord removes a Record from the Filer based on the specified Key. |
boolean |
drop()
drop instructs the DBObjectimplementation to remove itself from existence. |
boolean |
exists()
exists returns whether or not a physical representation of this DBObject actually exists. |
void |
flush()
flush forcefully flushes any unwritten buffers to disk. |
String |
getName()
getName retrieves the contextually important name of the object |
long |
getRecordCount()
getRecordCount returns the number of Records in the Filer. |
RecordSet |
getRecordSet()
getRecordSet returns a RecordSet object for the current Filer. |
boolean |
isOpened()
isOpened returns whether or not the DBObject is opened for business. |
boolean |
open()
open opens the DBObject |
Record |
readRecord(Key key)
readRecord returns a Record from the Filer based on the specified Key. |
void |
setLocation(File root,
String location)
setLocation tells the Filer where to store its data. |
boolean |
writeRecord(Key key,
Value value)
writeRecord writes a Value to the Filer based on the specified Key. |
| Methods inherited from class org.apache.xindice.util.SimpleConfigurable |
getConfig, setConfig |
| 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.util.Configurable |
getConfig, setConfig |
| Field Detail |
public static final String INITIAL_SIZE_KEY
public static final int INITIAL_SIZE
| Constructor Detail |
public SizeableMemFiler()
public SizeableMemFiler(Map hashTable,
boolean readOnly)
public SizeableMemFiler(Map hashTable)
| Method Detail |
public void setLocation(File root,
String location)
FilersetLocation in interface Filerorg.apache.xindice.core.filer.Filerroot - The root under which to store datalocation - The name to use for storing datapublic String getName()
NamedgetName in interface Namedorg.apache.xindice.util.Namedpublic boolean create()
DBObjectcreate in interface DBObjectorg.apache.xindice.core.DBObjectpublic boolean open()
DBObjectopen in interface DBObjectorg.apache.xindice.core.DBObjectpublic boolean isOpened()
DBObjectisOpened in interface DBObjectorg.apache.xindice.core.DBObjectpublic boolean exists()
DBObjectexists in interface DBObjectorg.apache.xindice.core.DBObjectpublic boolean drop()
DBObjectdrop in interface DBObjectorg.apache.xindice.core.DBObjectpublic boolean close()
DBObjectclose in interface DBObjectorg.apache.xindice.core.DBObjectpublic void flush()
Filerflush in interface Filer
public Record readRecord(Key key)
throws DBException
FilerreadRecord in interface Filerorg.apache.xindice.core.filer.Filerkey - The Record's Key
public boolean writeRecord(Key key,
Value value)
throws DBException
FilerwriteRecord in interface Filerorg.apache.xindice.core.filer.Filerkey - The Record's Keyvalue - The Record's Value
public boolean deleteRecord(Key key)
throws DBException
FilerdeleteRecord in interface Filerorg.apache.xindice.core.filer.Filerkey - The Record's Key
public long getRecordCount()
throws DBException
FilergetRecordCount in interface Filerorg.apache.xindice.core.filer.Filer
public RecordSet getRecordSet()
throws DBException
FilergetRecordSet in interface Filerorg.apache.xindice.core.filer.Filer
|
Xindice API version 1.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||