public class DocumentStore<T extends Document>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.util.Set<T> |
retrieve(java.io.File documentFile)
Retrieves all previously stored documents from the given file.
|
java.util.Set<T> |
retrieve(java.io.File documentFile,
java.lang.String prefix)
Retrieves previously stored documents from the given file that start
with the given prefix.
|
boolean |
store(java.io.File documentFile,
java.util.Set<T> documentsToStore)
Stores the provided documents in the given file and returns whether
the storage operation was successful.
|
public boolean store(java.io.File documentFile, java.util.Set<T> documentsToStore)
If the file already existed and if it contains documents, merge the new documents with the existing ones.
public java.util.Set<T> retrieve(java.io.File documentFile)
public java.util.Set<T> retrieve(java.io.File documentFile, java.lang.String prefix)