|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.uoa.di.madgik.searchlibrary.operatorlibrary.sort.SortOp
public class SortOp
This class performs a sorting based on some key on its input org.gcube.searchservice.searchlibrary.resultset.ResultSet
and produces a output org.gcube.searchservice.searchlibrary.resultset.ResultSet sorted in the specified order.
| Constructor Summary | |
|---|---|
SortOp(URI inLocator,
StatsContainer stats)
Creates a new SortOp operating on the identified input with default timeout |
|
SortOp(URI inLocator,
StatsContainer stats,
long timeout,
TimeUnit timeUnit)
|
|
| Method Summary | |
|---|---|
URI |
compute(String key,
short order)
Performs the sorting operation using default method |
URI |
compute(String keyFieldName,
short order,
ComparisonMethod comparisonMethod,
ComparisonMode comparisonMode,
SortAlgorithm algorithm)
Performs the sorting operation |
static void |
main(String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SortOp(URI inLocator,
StatsContainer stats)
SortOp operating on the identified input with default timeout
inLocator - The locator identifying the inputstats - statistics
public SortOp(URI inLocator,
StatsContainer stats,
long timeout,
TimeUnit timeUnit)
inLocator - The locator identifying the input with configurable timeoutstats - statisticstimeout - The timeout to be used both by the reader and the writertimeUnit - The unit of the timeout to be used| Method Detail |
|---|
public URI compute(String key,
short order)
throws Exception
key - The key to base the sorting onorder - The order of the sorting. This can be one of CompareTokens.ASCENDING_ORDER and CompareTokens.DESCENDING_ORDER
Exception - An unrecoverable for the operation error occured
public URI compute(String keyFieldName,
short order,
ComparisonMethod comparisonMethod,
ComparisonMode comparisonMode,
SortAlgorithm algorithm)
throws Exception
keyFieldName - The name of the Field which will be used as a sort keyorder - The order of the sorting. This can be one of CompareTokens.ASCENDING_ORDER and CompareTokens.DESCENDING_ORDERcomparisonMethod - The method of comparison. This can be one of ComparisonMethod.PROVIDED_MODE, ComparisonMethod.DETECT_MODE and ComparisonMethod.FULL_COMPARISONcomparisonMode - The mode of comparison, provided only if comparisonMethod=ComparisonMethod.PROVIDED_MODE.
This can be one of ComparisonMode.COMPARE_LONGINTS, ComparisonMode.COMPARE_DOUBLES, ComparisonMode.COMPARE_DATES and ComparisonMode.COMPARE_STRINGS
Exception - An unrecoverable for the operation error occured
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||