public interface OrcFilterContext extends org.apache.hadoop.hive.ql.io.filter.MutableFilterContext
VectorizedRowBatch
]] with schema.
This offers a convenience method of finding the column vector from a given column name that the filters can invoke to get access to the column vector.
Modifier and Type | Method and Description |
---|---|
ColumnVector[] |
findColumnVector(String name)
Retrieves the column vector that matches the specified name.
|
static boolean |
isNull(ColumnVector[] vectorBranch,
int idx)
Utility method for determining if a particular row element in the vector branch is null.
|
static boolean |
noNulls(ColumnVector[] vectorBranch)
Utility method for determining if the leaf vector of the branch can be treated as having
noNulls.
|
immutable, setFilterContext, setSelected, setSelectedInUse, setSelectedSize, updateSelected, validateSelected
getSelected, getSelectedSize, isSelectedInUse, reset
ColumnVector[] findColumnVector(String name)
name
- The column name whose vector should be retrievedIllegalArgumentException
- if the field is not found or if the nested field is not part
of a structstatic boolean noNulls(ColumnVector[] vectorBranch)
vectorBranch
- The input vector branch from the root to the leafstatic boolean isNull(ColumnVector[] vectorBranch, int idx) throws IllegalArgumentException
vectorBranch
- The input vector branch from the root to the leafidx
- The row index being testedIllegalArgumentException
- If a multivalued vector such as List or Map is encountered in
the branch.Copyright © 2013–2022 The Apache Software Foundation. All rights reserved.