public class SortingFilter extends AggregateFunction
argIndexes
Constructor and Description |
---|
SortingFilter(AggregateFunction proxy,
BufferManager mgr,
String groupName,
boolean removeDuplicates)
Constructor for DuplicateFilter.
|
Modifier and Type | Method and Description |
---|---|
void |
addInputDirect(List<?> tuple,
CommandContext commandContext)
Called for the element value in every row of a group.
|
List<ElementSymbol> |
getElements() |
Object |
getResult(CommandContext commandContext)
Called after all values have been processed to get the result.
|
void |
initialize(Class<?> dataType,
Class<?>[] inputTypes)
Called to initialize the function.
|
void |
reset()
Called to reset the state of the function.
|
boolean |
respectsNull() |
void |
setElements(List<ElementSymbol> elements) |
void |
setSortItems(List<OrderByItem> sortItems) |
addInput, filter, getArgIndexes, getOutputType, getState, getStateTypes, setArgIndexes, setConditionIndex, setState
public SortingFilter(AggregateFunction proxy, BufferManager mgr, String groupName, boolean removeDuplicates)
public List<ElementSymbol> getElements()
public void setElements(List<ElementSymbol> elements)
public void setSortItems(List<OrderByItem> sortItems)
public void initialize(Class<?> dataType, Class<?>[] inputTypes)
AggregateFunction
initialize
in class AggregateFunction
dataType
- Data type of element begin aggregatedpublic void reset()
AggregateFunction
reset
in class AggregateFunction
public void addInputDirect(List<?> tuple, CommandContext commandContext) throws TeiidComponentException, TeiidProcessingException
AggregateFunction
addInputDirect
in class AggregateFunction
TeiidProcessingException
TeiidComponentException
public Object getResult(CommandContext commandContext) throws TeiidComponentException, TeiidProcessingException
AggregateFunction
getResult
in class AggregateFunction
TeiidProcessingException
TeiidComponentException
AggregateFunction.getResult(CommandContext)
public boolean respectsNull()
respectsNull
in class AggregateFunction
Copyright © 2019. All rights reserved.