gr.uoa.di.madgik.searchlibrary.operatorlibrary
Class UnaryOp

java.lang.Object
  extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.UnaryOp

public class UnaryOp
extends Object

Represents and unary operator class that takes single result set as input and returns result set as output

Author:
john.gerbesiotis - DI NKUA

Constructor Summary
UnaryOp(String operatorType, URI inLocator, HashMap<String,String> operatorParameters, StatsContainer stats)
           
UnaryOp(String operatorType, URI inLocator, HashMap<String,String> operatorParameters, StatsContainer stats, long timeout, TimeUnit timeUnit)
           
UnaryOp(String operatorType, URI inLocator, Map<String,String> operatorParameters, StatsContainer stats)
          Creates a new UnaryOp with the default timeout for the writer
UnaryOp(String operatorType, URI inLocator, Map<String,String> operatorParameters, StatsContainer stats, long timeout, TimeUnit timeUnit)
          Creates a new UnaryOp with configurable timeout for the writer
 
Method Summary
 URI compute()
          Starts the operator and returns the output locator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnaryOp

public UnaryOp(String operatorType,
               URI inLocator,
               Map<String,String> operatorParameters,
               StatsContainer stats)
        throws Exception
Creates a new UnaryOp with the default timeout for the writer

Parameters:
operatorType - The predefined type of the operator
inLocator - The input locator
operatorParameters - The parameters for the specific operator
stats - statistics
Throws:
Exception

UnaryOp

public UnaryOp(String operatorType,
               URI inLocator,
               HashMap<String,String> operatorParameters,
               StatsContainer stats)
        throws Exception
Throws:
Exception

UnaryOp

public UnaryOp(String operatorType,
               URI inLocator,
               Map<String,String> operatorParameters,
               StatsContainer stats,
               long timeout,
               TimeUnit timeUnit)
        throws Exception
Creates a new UnaryOp with configurable timeout for the writer

Parameters:
operatorType - The predefined type of the operator
inLocator - The input locator
operatorParameters - The parameters for the specific operator
stats - statistics
timeout - The timeout to be used for the writer
timeUnit - The time unit of the timeout used
Throws:
Exception

UnaryOp

public UnaryOp(String operatorType,
               URI inLocator,
               HashMap<String,String> operatorParameters,
               StatsContainer stats,
               long timeout,
               TimeUnit timeUnit)
        throws Exception
Throws:
Exception
Method Detail

compute

public URI compute()
            throws Exception
Starts the operator and returns the output locator

Returns:
the output locator of the operator compute method
Throws:
Exception


Copyright © 2013. All Rights Reserved.