public class FilterFunction extends Object
| Constructor and Description |
|---|
FilterFunction(SqlFunctionProperties properties,
boolean deterministic,
Predicate predicate) |
| Modifier and Type | Method and Description |
|---|---|
int |
filter(Page page,
int[] positions,
int positionCount,
RuntimeException[] errors)
Evaluates specified positions and returns the number of positions that passed the filter.
|
int[] |
getInputChannels() |
boolean |
isDeterministic() |
public FilterFunction(SqlFunctionProperties properties, boolean deterministic, Predicate predicate)
public int filter(Page page, int[] positions, int positionCount, RuntimeException[] errors)
Upon return, the positions array will contain positions that passed the filter or encountered an error. The errors array will contain errors that occurred while evaluating this filter as well as errors that happened earlier. The latter will be preserved only for positions that passed this filter.
positions - Monotonically increasing list of positions to evaluatepositionCount - Number of valid entries in the positions arrayerrors - Errors encountered while evaluating other filters, if any;
contains at least positionCount entries; null value indicates no errorpublic int[] getInputChannels()
public boolean isDeterministic()
Copyright © 2012–2022. All rights reserved.