|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.repository.WebStore
public class WebStore
Nested Class Summary | |
---|---|
static class |
WebStore.Page
|
Nested classes/interfaces inherited from interface org.egothor.repository.DataRepository |
---|
DataRepository.TupleSequence |
Constructor Summary | |
---|---|
WebStore(URIRepository map,
DataRepository data)
Creates a new instance of WebStore |
Method Summary | |
---|---|
int |
addItem(long page_id,
byte[] document,
int length)
Adds another document into the repository. |
long |
append(java.net.URI uri)
Returns the new identifier related to the URI, -id iff the URI already exists under the id in the base. |
void |
close()
Closes the repository. |
void |
destroy()
Destroy the repository. |
DataInputStream |
elementAt(long key,
int revision)
Retrieves a data block. |
DataRepository.TupleSequence |
elements()
The tuples are [long:uid;int:rev;Object:DataInputStream;Object:URI]. |
void |
flush()
|
WebStore.Page |
pageAt(long key,
int revision)
Retrieves a data block. |
long |
size()
Returns number of URIs in the base, or -1 iff the value is unknown. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebStore(URIRepository map, DataRepository data)
Method Detail |
---|
public void close()
DataRepository
close
in interface DataRepository
close
in interface URIRepositoryAppender
public void destroy()
DataRepository
destroy
in interface DataRepository
public int addItem(long page_id, byte[] document, int length)
addItem
in interface DataRepository
public long append(java.net.URI uri) throws DatabaseStorageException
append
in interface URIRepositoryAppender
DatabaseStorageException
public WebStore.Page pageAt(long key, int revision) throws DatabaseStorageException
key
- the key of the blockrevision
- revision number of the block, 0 is used for the latest (current) revision
DatabaseStorageException
public long size()
URIRepositoryAppender
size
in interface URIRepositoryAppender
public DataInputStream elementAt(long key, int revision)
DataRepository
elementAt
in interface DataRepository
key
- the key of the blockrevision
- revision number of the block, 0 is used for the latest (current) revision
public DataRepository.TupleSequence elements()
elements
in interface DataRepository
public void flush()
flush
in interface DataRepository
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |