gr.uoa.di.madgik.searchlibrary.operatorlibrary.filter
Class FilterOp

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

public class FilterOp
extends Object

Operator class used to perform an xPath based filtering operation on its input org.gcube.searchservice.searchlibrary.resultset.ResultSet and produce a new org.gcube.searchservice.searchlibrary.resultset.ResultSet output holding the passing records

Author:
UoA

Constructor Summary
FilterOp(URI inLocator, String payloadFieldName, StatsContainer stats)
          Creates a new FilterOp with the default timeout for the reader and the writer
FilterOp(URI inLocator, String payloadFieldName, StatsContainer stats, long timeout, TimeUnit timeUnit)
          Creates a new FilterOp with configurable timeout for the reader and the writer
 
Method Summary
 URI compute(String xPath)
          Performs the filtering operation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterOp

public FilterOp(URI inLocator,
                String payloadFieldName,
                StatsContainer stats)
Creates a new FilterOp with the default timeout for the reader and the writer

Parameters:
locator - The locator of the input
payloadFieldName - The name of the Field which contains the payload to apply the filtering operation on
stats - Statistics

FilterOp

public FilterOp(URI inLocator,
                String payloadFieldName,
                StatsContainer stats,
                long timeout,
                TimeUnit timeUnit)
Creates a new FilterOp with configurable timeout for the reader and the writer

Parameters:
locator - The locator of the input
payloadFieldName - The name of the Field which contains the payload to apply the filtering operation on
stats - Statistics
timeout - The timeout to be used both by the reader and the writer
timeUnit - The time unit of the timeout used
Method Detail

compute

public URI compute(String xPath)
            throws Exception
Performs the filtering operation

Parameters:
xPath - The xpath expression to use
Returns:
The locator of the produced output
Throws:
Exception - An unrecoverable error for the operation occured


Copyright © 2013. All Rights Reserved.