public class OrcFilterContextImpl extends Object implements OrcFilterContext
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.
Constructor and Description |
---|
OrcFilterContextImpl(TypeDescription readSchema,
boolean isSchemaCaseAware) |
Modifier and Type | Method and Description |
---|---|
ColumnVector[] |
findColumnVector(String name)
Retrieves the column vector that matches the specified name.
|
ColumnVector[] |
getCols() |
int[] |
getSelected() |
int |
getSelectedSize() |
boolean |
isSelectedInUse() |
void |
reset() |
OrcFilterContext |
setBatch(@NotNull VectorizedRowBatch batch) |
void |
setFilterContext(boolean selectedInUse,
int[] selected,
int selectedSize) |
void |
setSelected(int[] ints) |
void |
setSelectedInUse(boolean b) |
void |
setSelectedSize(int i) |
int[] |
updateSelected(int i) |
boolean |
validateSelected() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isNull, noNulls
immutable
public OrcFilterContextImpl(TypeDescription readSchema, boolean isSchemaCaseAware)
public OrcFilterContext setBatch(@NotNull @NotNull VectorizedRowBatch batch)
public void setFilterContext(boolean selectedInUse, int[] selected, int selectedSize)
setFilterContext
in interface org.apache.hadoop.hive.ql.io.filter.MutableFilterContext
public boolean validateSelected()
validateSelected
in interface org.apache.hadoop.hive.ql.io.filter.MutableFilterContext
public int[] updateSelected(int i)
updateSelected
in interface org.apache.hadoop.hive.ql.io.filter.MutableFilterContext
public void setSelectedInUse(boolean b)
setSelectedInUse
in interface org.apache.hadoop.hive.ql.io.filter.MutableFilterContext
public void setSelected(int[] ints)
setSelected
in interface org.apache.hadoop.hive.ql.io.filter.MutableFilterContext
public void setSelectedSize(int i)
setSelectedSize
in interface org.apache.hadoop.hive.ql.io.filter.MutableFilterContext
public void reset()
reset
in interface org.apache.hadoop.hive.ql.io.filter.FilterContext
public boolean isSelectedInUse()
isSelectedInUse
in interface org.apache.hadoop.hive.ql.io.filter.FilterContext
public int[] getSelected()
getSelected
in interface org.apache.hadoop.hive.ql.io.filter.FilterContext
public int getSelectedSize()
getSelectedSize
in interface org.apache.hadoop.hive.ql.io.filter.FilterContext
public ColumnVector[] getCols()
public ColumnVector[] findColumnVector(String name)
OrcFilterContext
findColumnVector
in interface OrcFilterContext
name
- The column name whose vector should be retrievedCopyright © 2013–2022 The Apache Software Foundation. All rights reserved.