public class OnlineSortWorker<T extends gr.uoa.di.madgik.grs.record.Record> extends Object implements SortWorker
| Constructor and Description |
|---|
OnlineSortWorker(gr.uoa.di.madgik.grs.reader.RandomReader<T> reader,
gr.uoa.di.madgik.grs.writer.IRecordWriter<gr.uoa.di.madgik.grs.record.Record> writer,
String keyFieldName,
short order,
ComparisonMethod method,
ComparisonMode mode,
long timeout,
TimeUnit timeUnit,
StatsContainer stats)
Constructs an
OnlineSortWorker |
public OnlineSortWorker(gr.uoa.di.madgik.grs.reader.RandomReader<T> reader, gr.uoa.di.madgik.grs.writer.IRecordWriter<gr.uoa.di.madgik.grs.record.Record> writer, String keyFieldName, short order, ComparisonMethod method, ComparisonMode mode, long timeout, TimeUnit timeUnit, StatsContainer stats) throws Exception
OnlineSortWorkerreader - The RandomReader from which input will be readwriter - The IRecordWriter to which output will be writtenkeyFieldName - The Field name of the key based on which the sorting should be performedorder - The order of the sorting. This should be one of CompareTokens.ASCENDING_ORDER and CompareTokens.DESCENDING_ORDERmethod - The method of comparison. This should be one of ComparisonMethod.FULL_COMPARISON, ComparisonMethod.DETECT_MODE and ComparisonMethod.PROVIDED_MODEmode - The mode of comparison. This should be one of ComparisonMode.COMPARE_STRINGS, ComparisonMode.COMPARE_LONGINTS, ComparisonMode.COMPARE_DOUBLES and ComparisonMode.COMPARE_DATEStimeout - The timeout to be used both by the reader and the writertimeUnit - The unit of the timeout to be usedstats - statisticsExceptionpublic void run()
run in interface RunnableRunnable.run()Copyright © 2017. All Rights Reserved.