|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IContentRepository
Document-centric interface for the BigdataFileSystem.
| Method Summary | |
|---|---|
int |
create(Document document)
Create a new persistent document in this repository based on the metadata and content in the supplied document object. |
long |
delete(String id)
Delete a single document. |
long |
deleteAll(String fromId,
String toId)
Delete all documents in the identified key range. |
Iterator<? extends DocumentHeader> |
getDocumentHeaders(String fromId,
String toId)
Return a listing of the documents and metadata about them in this repository. |
Document |
read(String id)
Fetch a single document object based on a URI. |
Iterator<String> |
search(String query)
Full text search against the indexed documents. |
int |
update(Document document)
Update an existing persistent document in this repository based on the metadata and content in the supplied document object. |
| Method Detail |
|---|
Document read(String id)
id - the identifier of the document to fetch
int create(Document document)
document - an object containing the content and metadata to persist
int update(Document document)
DocumentHeader.getId() method.
document - an object containing the content and metadata to update
long delete(String id)
id - the identifier of the document to delete
long deleteAll(String fromId,
String toId)
Note: If you assign identifiers using a namespace then you can use this method to rapidly delete all documents within that namespace.
fromId - The identifier of the first document to be deleted or
null if there is no lower bound.toId - The identifier of the first document that will NOT be deleted
or null if there is no upper bound.
Iterator<? extends DocumentHeader> getDocumentHeaders(String fromId,
String toId)
Note: If you assign identifiers using a namespace then you can use this method to efficiently visit all documents within that namespace.
fromId - The identifier of the first document to be visited or
null if there is no lower bound.toId - The identifier of the first document that will NOT be visited
or null if there is no upper bound.
DocumentHeaders.Iterator<String> search(String query)
query - A query.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||