Class JobQueue.DuplicateFinder
- java.lang.Object
-
- org.apache.manifoldcf.crawler.jobs.JobQueue.DuplicateFinder
-
- All Implemented Interfaces:
ILimitChecker
- Enclosing class:
- JobQueue
protected static class JobQueue.DuplicateFinder extends java.lang.Object implements ILimitChecker
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringprevDocIDHashprotected java.lang.LongprevJobID-
Fields inherited from interface org.apache.manifoldcf.core.interfaces.ILimitChecker
_rcsid
-
-
Constructor Summary
Constructors Constructor Description DuplicateFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckContinue()See if we should examine another row.booleancheckInclude(IResultRow row)See if a result row should be included in the final result set.booleandoesCompareWork()See if this class can be legitimately compared against another of the same type.ILimitCheckerduplicate()Create a duplicate of this class instance.booleanequals(java.lang.Object object)Compare two objects and see if equal.inthashCode()Find the hashcode for this class.
-
-
-
Method Detail
-
doesCompareWork
public boolean doesCompareWork()
See if this class can be legitimately compared against another of the same type.- Specified by:
doesCompareWorkin interfaceILimitChecker- Returns:
- true if comparisons will ever return "true".
-
duplicate
public ILimitChecker duplicate()
Create a duplicate of this class instance. All current state should be preserved. NOTE: Since doesCompareWork() returns false, queries using this limit checker cannot be cached, and therefore duplicate() is never called from the query executor.- Specified by:
duplicatein interfaceILimitChecker- Returns:
- the duplicate.
-
hashCode
public int hashCode()
Find the hashcode for this class. This will only ever be used if doesCompareWork() returns true.- Specified by:
hashCodein interfaceILimitChecker- Overrides:
hashCodein classjava.lang.Object- Returns:
- the hashcode.
-
equals
public boolean equals(java.lang.Object object)
Compare two objects and see if equal. This will only ever be used if doesCompareWork() returns true.- Specified by:
equalsin interfaceILimitChecker- Overrides:
equalsin classjava.lang.Object- Parameters:
object- is the object to compare against.- Returns:
- true if equal.
-
checkInclude
public boolean checkInclude(IResultRow row) throws ManifoldCFException
See if a result row should be included in the final result set.- Specified by:
checkIncludein interfaceILimitChecker- Parameters:
row- is the result row to check.- Returns:
- true if it should be included, false otherwise.
- Throws:
ManifoldCFException
-
checkContinue
public boolean checkContinue() throws ManifoldCFExceptionSee if we should examine another row.- Specified by:
checkContinuein interfaceILimitChecker- Returns:
- true if we need to keep going, or false if we are done.
- Throws:
ManifoldCFException
-
-