org.teiid.query.processor.relational
Class SortingFilter

java.lang.Object
  extended by org.teiid.query.function.aggregate.AggregateFunction
      extended by org.teiid.query.processor.relational.SortingFilter

public class SortingFilter
extends AggregateFunction


Constructor Summary
SortingFilter(AggregateFunction proxy, BufferManager mgr, java.lang.String groupName, boolean removeDuplicates)
          Constructor for DuplicateFilter.
 
Method Summary
 void addInputDirect(java.lang.Object input, java.util.List<?> tuple)
          Called for the element value in every row of a group.
 java.util.List getElements()
           
 java.lang.Object getResult()
          Called after all values have been processed to get the result.
 void initialize(java.lang.Class<?> dataType, java.lang.Class<?> inputType)
          Called to initialize the function.
 void reset()
          Called to reset the state of the function.
 void setElements(java.util.List elements)
           
 void setIndecies(int[] indecies)
           
 void setSortItems(java.util.List<OrderByItem> sortItems)
           
 
Methods inherited from class org.teiid.query.function.aggregate.AggregateFunction
addInput, setExpressionIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortingFilter

public SortingFilter(AggregateFunction proxy,
                     BufferManager mgr,
                     java.lang.String groupName,
                     boolean removeDuplicates)
Constructor for DuplicateFilter.

Method Detail

getElements

public java.util.List getElements()

setElements

public void setElements(java.util.List elements)

setIndecies

public void setIndecies(int[] indecies)

setSortItems

public void setSortItems(java.util.List<OrderByItem> sortItems)

initialize

public void initialize(java.lang.Class<?> dataType,
                       java.lang.Class<?> inputType)
Description copied from class: AggregateFunction
Called to initialize the function. In the future this may expand with additional information.

Overrides:
initialize in class AggregateFunction
Parameters:
dataType - Data type of element begin aggregated
See Also:
org.teiid.query.function.aggregate.AggregateFunction#initialize(String, Class)

reset

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

Specified by:
reset in class AggregateFunction

addInputDirect

public void addInputDirect(java.lang.Object input,
                           java.util.List<?> tuple)
                    throws FunctionExecutionException,
                           ExpressionEvaluationException,
                           TeiidComponentException,
                           TeiidProcessingException
Description copied from class: AggregateFunction
Called for the element value in every row of a group.

Specified by:
addInputDirect in class AggregateFunction
Parameters:
input - Input value, may be null
Throws:
TeiidProcessingException
FunctionExecutionException
ExpressionEvaluationException
TeiidComponentException

getResult

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

Specified by:
getResult in class AggregateFunction
Returns:
Result value
Throws:
TeiidProcessingException
TeiidComponentException
See Also:
AggregateFunction.getResult()


Copyright © 2010. All Rights Reserved.