public interface MutableFilterContext extends FilterContext
VectorizedRowBatch
.
Each FilterContext consists of an array with the ids (int) of rows that are selected by the
filter, an integer representing the number of selected rows, and a boolean showing if the filter
actually selected any rows.Modifier and Type | Method and Description |
---|---|
default FilterContext |
immutable()
Get the immutable version of the current FilterContext.
|
void |
setFilterContext(boolean isSelectedInUse,
int[] selected,
int selectedSize)
Set context with the given values by reference.
|
void |
setSelected(int[] selectedArray)
Set the array of the rows that pass the filter by reference.
|
void |
setSelectedInUse(boolean selectedInUse)
Set the selectedInUse boolean showing if the filter is applied.
|
void |
setSelectedSize(int selectedSize)
Set the number of the rows that pass the filter.
|
int[] |
updateSelected(int minCapacity)
Get an array for selected that is expected to be modified.
|
boolean |
validateSelected()
Validate method checking if existing selected array contains accepted values.
|
getSelected, getSelectedSize, isSelectedInUse, reset
void setFilterContext(boolean isSelectedInUse, int[] selected, int selectedSize)
isSelectedInUse
- if the filter is appliedselected
- an array of the selected rowsselectedSize
- the number of the selected rowsboolean validateSelected()
int[] updateSelected(int minCapacity)
minCapacity
- default FilterContext immutable()
void setSelectedInUse(boolean selectedInUse)
selectedInUse
- void setSelected(int[] selectedArray)
selectedArray
- void setSelectedSize(int selectedSize)
selectedSize
- Copyright © 2021 The Apache Software Foundation. All rights reserved.