public class DocumentStore
extends java.lang.Object
Constructor and Description |
---|
DocumentStore() |
Modifier and Type | Method and Description |
---|---|
void |
flushDocumentCache()
Writes cached node statuses, cached summary documents, and then the
update file to disk.
|
java.lang.String |
getStatsString()
Returns a string with statistics on document storage operations.
|
void |
invalidateDocumentCache()
Invalidates the document cache, so that it will be freshly populated
during the next execution.
|
<T extends Document> |
list(java.lang.Class<T> documentType) |
<T extends Document> |
list(java.lang.Class<T> documentType,
long updatedAfter)
Returns all fingerprints of documents of the given type that have
been updated after the given time in milliseconds since the epoch.
|
<T extends Document> |
remove(java.lang.Class<T> documentType) |
<T extends Document> |
remove(java.lang.Class<T> documentType,
java.lang.String fingerprint)
Removes the document with given type and identified by the given
fingerprint.
|
<T extends Document> |
retrieve(java.lang.Class<T> documentType,
boolean parse) |
<T extends Document> |
retrieve(java.lang.Class<T> documentType,
boolean parse,
java.lang.String fingerprint)
Retrieves the document with given type and identified by the given
fingerprint, and either parses it or returns it unparsed.
|
void |
setOutDir(java.io.File outDir) |
<T extends Document> |
store(T document) |
<T extends Document> |
store(T document,
java.lang.String fingerprint)
Stores the given document using the given fingerprint as
identifier.
|
public void setOutDir(java.io.File outDir)
public <T extends Document> java.util.SortedSet<java.lang.String> list(java.lang.Class<T> documentType)
public <T extends Document> java.util.SortedSet<java.lang.String> list(java.lang.Class<T> documentType, long updatedAfter)
public <T extends Document> boolean store(T document)
public <T extends Document> boolean store(T document, java.lang.String fingerprint)
public <T extends Document> T retrieve(java.lang.Class<T> documentType, boolean parse)
public <T extends Document> T retrieve(java.lang.Class<T> documentType, boolean parse, java.lang.String fingerprint)
public <T extends Document> boolean remove(java.lang.Class<T> documentType)
public <T extends Document> boolean remove(java.lang.Class<T> documentType, java.lang.String fingerprint)
public void flushDocumentCache()
public void invalidateDocumentCache()
public java.lang.String getStatsString()