|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.uoa.di.madgik.searchlibrary.operatorlibrary.keeptop.KeepTopOp
public class KeepTopOp
Operator class used to perform a keep top operation on an input ResultSet and produce a new output ResultSet with the top records
| Constructor Summary | |
|---|---|
KeepTopOp(URI locator,
StatsContainer stats)
Creates a new KeepTopOp with the default timeout for the reader and the writer |
|
KeepTopOp(URI locator,
StatsContainer stats,
long timeout,
TimeUnit timeUnit)
Creates a new KeepTopOp with configurable timeout for the reader and the writer |
|
| Method Summary | |
|---|---|
URI |
compute(int count)
Performs the Keep Top operation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeepTopOp(URI locator,
StatsContainer stats)
KeepTopOp with the default timeout for the reader and the writer
locator - The locator of the inputstats - Statistics
public KeepTopOp(URI locator,
StatsContainer stats,
long timeout,
TimeUnit timeUnit)
KeepTopOp with configurable timeout for the reader and the writer
locator - The locator of the inputstats - Statisticstimeout - The timeout to be used both by the reader and the writertimeUnit - The time unit of the timeout used| Method Detail |
|---|
public URI compute(int count)
throws Exception
count - The number of records to keep
Exception - An unrecoverable for the operation error occured
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||