gr.uoa.di.madgik.searchlibrary.operatorlibrary.datasource
Class DataSourceOp

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

public class DataSourceOp
extends Object

Operator class used to used to retrieve content from various data sources and produce a new result set output holding the records

Author:
john.gerbesiotis - DI NKUA

Constructor Summary
DataSourceOp(String inputType, String inputValue, HashMap<String,String> inputParameters)
           
DataSourceOp(String inputType, String inputValue, HashMap<String,String> inputParameters, long timeout, TimeUnit timeUnit)
           
DataSourceOp(String inputType, String inputValue, Map<String,String> inputParameters)
          Creates a new DataSourceOp with the default timeout for the writer
DataSourceOp(String inputType, String inputValue, Map<String,String> inputParameters, long timeout, TimeUnit timeUnit)
          Creates a new DataSourceOp with configurable timeout for the writer
 
Method Summary
 URI compute()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceOp

public DataSourceOp(String inputType,
                    String inputValue,
                    Map<String,String> inputParameters)
Creates a new DataSourceOp with the default timeout for the writer

Parameters:
inputType - The predefined type of the input data source
inputValue - The value for the input of the specific inputType
inputParameters - The parameters for the specific input

DataSourceOp

public DataSourceOp(String inputType,
                    String inputValue,
                    HashMap<String,String> inputParameters)

DataSourceOp

public DataSourceOp(String inputType,
                    String inputValue,
                    Map<String,String> inputParameters,
                    long timeout,
                    TimeUnit timeUnit)
Creates a new DataSourceOp with configurable timeout for the writer

Parameters:
inputType - The predefined type of the input data source
inputValue - The value for the input of the specific inputType
inputParameters - The parameters for the specific input
timeout - The timeout to be used for the writer
timeUnit - The time unit of the timeout used

DataSourceOp

public DataSourceOp(String inputType,
                    String inputValue,
                    HashMap<String,String> inputParameters,
                    long timeout,
                    TimeUnit timeUnit)
Method Detail

compute

public URI compute()
            throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.