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

java.lang.Object
  extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.Unary
Direct Known Subclasses:
GradualMergeOp, PartitionOp, ScriptOp, SelectOp, TransformOp

public abstract class Unary
extends Object


Field Summary
protected  URI inLocator
          The locator of the input
protected  Map<String,String> operatorParameters
           
protected  StatsContainer stats
           
protected  long timeout
           
static long TimeoutDef
          The default timeout used by the IRecordWriter and all IRecordReaders.
protected  TimeUnit timeUnit
           
static TimeUnit TimeUnitDef
          The default timeout unit used by the RecordWriter and all IRecordReaders.
 
Constructor Summary
Unary(URI inLocator, Map<String,String> operatorParameters, StatsContainer stats)
          Constructor of the abstract class.
Unary(URI inLocator, Map<String,String> operatorParameters, StatsContainer stats, long timeout, TimeUnit timeUnit)
           
 
Method Summary
abstract  URI compute()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inLocator

protected URI inLocator
The locator of the input


operatorParameters

protected Map<String,String> operatorParameters

stats

protected StatsContainer stats

TimeoutDef

public static final long TimeoutDef
The default timeout used by the IRecordWriter and all IRecordReaders. Currently set to 600.

See Also:
Constant Field Values

TimeUnitDef

public static final TimeUnit TimeUnitDef
The default timeout unit used by the RecordWriter and all IRecordReaders. The current default unit is seconds.


timeout

protected long timeout

timeUnit

protected TimeUnit timeUnit
Constructor Detail

Unary

public Unary(URI inLocator,
             Map<String,String> operatorParameters,
             StatsContainer stats)
      throws Exception
Constructor of the abstract class. Used for initialization.

Parameters:
inLocator - input value of the Unary
operatorParameters - input parameters of the Unary
stats - Statistics
Throws:
Exception - If the initialization of the Unary fails

Unary

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

compute

public abstract URI compute()
                     throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.