com.metamatrix.query.processor.relational
Class DuplicateFilter

java.lang.Object
  extended by com.metamatrix.query.processor.relational.DuplicateFilter
All Implemented Interfaces:
AggregateFunction

public class DuplicateFilter
extends java.lang.Object
implements AggregateFunction


Constructor Summary
DuplicateFilter(AggregateFunction proxy, BufferManager mgr, java.lang.String groupName, int batchSize)
          Constructor for DuplicateFilter.
 
Method Summary
 void addInput(java.lang.Object input)
          Called for the element value in every row of a group.
 java.lang.Object getResult()
          Called after all values have been processed to get the result.
 void initialize(java.lang.Class dataType)
          Called to initialize the function.
 void reset()
          Called to reset the state of the function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DuplicateFilter

public DuplicateFilter(AggregateFunction proxy,
                       BufferManager mgr,
                       java.lang.String groupName,
                       int batchSize)
Constructor for DuplicateFilter.

Method Detail

initialize

public void initialize(java.lang.Class dataType)
Description copied from interface: AggregateFunction
Called to initialize the function. In the future this may expand with additional information.

Specified by:
initialize in interface AggregateFunction
Parameters:
dataType - Data type of element begin aggregated
See Also:
com.metamatrix.query.function.aggregate.AggregateFunction#initialize(String)

reset

public void reset()
Description copied from interface: AggregateFunction
Called to reset the state of the function.

Specified by:
reset in interface AggregateFunction

addInput

public void addInput(java.lang.Object input)
              throws FunctionExecutionException,
                     ExpressionEvaluationException,
                     MetaMatrixComponentException
Description copied from interface: AggregateFunction
Called for the element value in every row of a group.

Specified by:
addInput in interface AggregateFunction
Parameters:
input - Input value, may be null
Throws:
FunctionExecutionException
ExpressionEvaluationException
MetaMatrixComponentException
See Also:
AggregateFunction.addInput(Object)

getResult

public java.lang.Object getResult()
                           throws MetaMatrixComponentException,
                                  MetaMatrixProcessingException
Description copied from interface: AggregateFunction
Called after all values have been processed to get the result.

Specified by:
getResult in interface AggregateFunction
Returns:
Result value
Throws:
MetaMatrixProcessingException
MetaMatrixComponentException
See Also:
AggregateFunction.getResult()


Copyright © 2009. All Rights Reserved.