Class WorkerThread.ExistingVersions
- java.lang.Object
-
- org.apache.manifoldcf.crawler.system.WorkerThread.ExistingVersions
-
- All Implemented Interfaces:
IExistingVersions
- Enclosing class:
- WorkerThread
protected static class WorkerThread.ExistingVersions extends java.lang.Object implements IExistingVersions
The implementation of the IExistingVersions interface.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
lastOutputConnectionName
protected java.util.Map<java.lang.String,QueuedDocument>
map
-
Fields inherited from interface org.apache.manifoldcf.crawler.interfaces.IExistingVersions
_rcsid
-
-
Constructor Summary
Constructors Constructor Description ExistingVersions(java.lang.String lastOutputConnectionName, java.util.List<QueuedDocument> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getIndexedVersionString(java.lang.String documentIdentifier)
Retrieve an existing version string given a document identifier.java.lang.String
getIndexedVersionString(java.lang.String documentIdentifier, java.lang.String componentIdentifier)
Retrieve a component existing version string given a document identifier.
-
-
-
Field Detail
-
map
protected final java.util.Map<java.lang.String,QueuedDocument> map
-
lastOutputConnectionName
protected final java.lang.String lastOutputConnectionName
-
-
Constructor Detail
-
ExistingVersions
public ExistingVersions(java.lang.String lastOutputConnectionName, java.util.List<QueuedDocument> list)
-
-
Method Detail
-
getIndexedVersionString
public java.lang.String getIndexedVersionString(java.lang.String documentIdentifier) throws ManifoldCFException
Retrieve an existing version string given a document identifier.- Specified by:
getIndexedVersionString
in interfaceIExistingVersions
- Parameters:
documentIdentifier
- is the document identifier.- Returns:
- the document version string, or null if the document was never previously indexed.
- Throws:
ManifoldCFException
-
getIndexedVersionString
public java.lang.String getIndexedVersionString(java.lang.String documentIdentifier, java.lang.String componentIdentifier) throws ManifoldCFException
Retrieve a component existing version string given a document identifier.- Specified by:
getIndexedVersionString
in interfaceIExistingVersions
- Parameters:
documentIdentifier
- is the document identifier.componentIdentifier
- is the component identifier, if any.- Returns:
- the document version string, or null of the document component was never previously indexed.
- Throws:
ManifoldCFException
-
-