|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 DataRepositoryclose in interface URIRepositoryAppenderpublic 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 URIRepositoryAppenderDatabaseStorageException
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
DatabaseStorageExceptionpublic long size()
URIRepositoryAppender
size in interface URIRepositoryAppender
public DataInputStream elementAt(long key,
int revision)
DataRepository
elementAt in interface DataRepositorykey - 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 DataRepositorypublic void flush()
flush in interface DataRepository
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||