|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
gr.uoa.di.madgik.searchlibrary.operatorlibrary.duplicateeliminatoroperator.DistinctOp
public class DistinctOp
This thread performs the actual duplicate elimination
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
static int |
BufferCapacityDef
The default buffer capacity for the IRecordWriter and, for the IRecordReader, if applicable |
static int |
EliminationRatioComputationStepDef
A default value for the step of the elimination ratio recomputation |
static boolean |
KeepMaximumRankDef
The default rank processing policy |
static int |
SafeNumberOfResultsDef
A default value for the number of results which is considered safe for a reliable duplicate elimination ratio. |
static long |
TimeoutDef
The default timeout used by the IRecordWriter and all IRecordReaders. |
static TimeUnit |
TimeUnitDef
The default timeout unit used by the IRecordWriter and all IRecordReaders. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Method Summary | |
|---|---|
static URI |
dispatchNewWorker(URI loc,
String objectIdFieldName,
StatsContainer stats)
|
static URI |
dispatchNewWorker(URI loc,
String objectIdFieldName,
String objectRankFieldName,
boolean keepMaximumRank,
long timeout,
TimeUnit timeUnit,
int bufferCapacity,
StatsContainer stats)
Static constructor |
static URI |
dispatchNewWorker(URI loc,
String objectIdFieldName,
String objectRankFieldName,
boolean keepMaximumRank,
long timeout,
TimeUnit timeUnit,
StatsContainer stats)
Static constructor |
static URI |
dispatchNewWorker(URI loc,
String objectIdFieldName,
String objectRankFieldName,
boolean keepMaximumRank,
StatsContainer stats)
|
void |
run()
Main working cycle: Get a hashtable of distinct DocIDs (plus their ranks) Re-iterate the RS keeping only the RSs that have a matching DocID and Rank with the stored hashtable |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long TimeoutDef
IRecordWriter and all IRecordReaders. Currently set to 60.
public static final TimeUnit TimeUnitDef
IRecordWriter and all IRecordReaders. The current default unit is seconds.
public static final int BufferCapacityDef
IRecordWriter and, for the IRecordReader, if applicable
public static final boolean KeepMaximumRankDef
public static final int SafeNumberOfResultsDef
public static final int EliminationRatioComputationStepDef
| Method Detail |
|---|
public static URI dispatchNewWorker(URI loc,
String objectIdFieldName,
String objectRankFieldName,
boolean keepMaximumRank,
long timeout,
TimeUnit timeUnit,
int bufferCapacity,
StatsContainer stats)
throws Exception
loc - Locator of the incoming RSstats - keepMaximumRank - timeout - timeUnit - bufferCapacity -
Exception - in case of error
public static URI dispatchNewWorker(URI loc,
String objectIdFieldName,
String objectRankFieldName,
boolean keepMaximumRank,
long timeout,
TimeUnit timeUnit,
StatsContainer stats)
throws Exception
loc - Locator of the incoming RSstats - keepMaximumRank - timeout - timeUnit -
Exception - in case of error
public static URI dispatchNewWorker(URI loc,
String objectIdFieldName,
StatsContainer stats)
throws Exception
loc - stats - keepMaximumRank -
Exception
public static URI dispatchNewWorker(URI loc,
String objectIdFieldName,
String objectRankFieldName,
boolean keepMaximumRank,
StatsContainer stats)
throws Exception
loc - objectIdFieldName - objectRankFieldName - keepMaximumRank - stats -
Exceptionpublic void run()
run in interface Runnablerun in class Thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||