public interface IVRepository
| Modifier and Type | Interface and Description |
|---|---|
static class |
IVRepository.OpeningMode |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the repository.
|
void |
create(String name)
Creates a new physical repository.
|
Iterable<IVDocument> |
documents()
Creates an iterable object for all the documents contained into this repository.
|
IVDocument |
getDocument(long docKey)
Gets the virtual document for a given document key.
|
IVDocument |
getFirstDocument()
Gets the first virtual document in this repository.
|
String |
importDocument(RawDocument rawDoc)
Imports a document into this repository.
|
long |
importDocumentReturnKey(RawDocument rawDoc) |
InputStream |
loadExtraData1() |
void |
open(String name)
Opens an existing physical repository.
|
void |
open(String name,
IVRepository.OpeningMode mode) |
void |
removeDocument(IVDocument doc)
Removes a given document from this repository.
|
void |
saveExtraData1(InputStream inputStream)
Saves a block of extra data into the repository.
|
void open(String name, IVRepository.OpeningMode mode)
void create(String name)
name - the name of the repository.void open(String name)
name - the name of the repository.void close()
Iterable<IVDocument> documents()
String importDocument(RawDocument rawDoc)
rawDoc - the document to import (must be URI based).long importDocumentReturnKey(RawDocument rawDoc)
void removeDocument(IVDocument doc)
Calling this method may invalidate any current iterator created by documents(),
as well as the sibling relationships for any current IVDocument corresponding to
the previous and next documents of this one.
To remove all documents from a repository it may be simpler to re-create the repository.
doc - the virtual document to remove.IVDocument getFirstDocument()
IVDocument getDocument(long docKey)
docKey - the key of the document to retrieve.void saveExtraData1(InputStream inputStream)
inputStream - the input stream of the object to save.InputStream loadExtraData1()
Copyright © 2020. All rights reserved.