|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.ql.exec.vector.expressions.NullUtil
public class NullUtil
Utility functions to handle null propagation.
| Constructor Summary | |
|---|---|
NullUtil()
|
|
| Method Summary | |
|---|---|
static int |
filterNulls(ColumnVector v,
boolean selectedInUse,
int[] sel,
int n)
Filter out rows with null values. |
static void |
initOutputNullsToFalse(ColumnVector v,
boolean isRepeating,
boolean selectedInUse,
int[] sel,
int n)
|
static void |
propagateNullsColCol(ColumnVector inputColVector1,
ColumnVector inputColVector2,
ColumnVector outputColVector,
int[] sel,
int n,
boolean selectedInUse)
|
static void |
setNullAndDivBy0DataEntriesDouble(DoubleColumnVector v,
boolean selectedInUse,
int[] sel,
int n,
DoubleColumnVector denoms)
Set all the entries for which denoms array contains zeroes to NULL; sets all the data values for NULL entries for DoubleColumnVector.NULL_VALUE. |
static void |
setNullAndDivBy0DataEntriesDouble(DoubleColumnVector v,
boolean selectedInUse,
int[] sel,
int n,
LongColumnVector denoms)
Set all the entries for which denoms array contains zeroes to NULL; sets all the data values for NULL entries for DoubleColumnVector.NULL_VALUE. |
static void |
setNullAndDivBy0DataEntriesLong(LongColumnVector v,
boolean selectedInUse,
int[] sel,
int n,
DoubleColumnVector denoms)
Set all the entries for which denoms array contains zeroes to NULL; sets all the data values for NULL entries for LongColumnVector.NULL_VALUE. |
static void |
setNullAndDivBy0DataEntriesLong(LongColumnVector v,
boolean selectedInUse,
int[] sel,
int n,
LongColumnVector denoms)
Set all the entries for which denoms array contains zeroes to NULL; sets all the data values for NULL entries for LongColumnVector.NULL_VALUE. |
static void |
setNullDataEntriesDecimal(DecimalColumnVector v,
boolean selectedInUse,
int[] sel,
int n)
Follow the convention that null decimal values are internally set to the smallest positive value available. |
static void |
setNullDataEntriesDouble(DoubleColumnVector v,
boolean selectedInUse,
int[] sel,
int n)
Set the data value for all NULL entries to NaN |
static void |
setNullDataEntriesLong(LongColumnVector v,
boolean selectedInUse,
int[] sel,
int n)
Set the data value for all NULL entries to the designated NULL_VALUE. |
static void |
setNullOutputEntriesColScalar(ColumnVector v,
boolean selectedInUse,
int[] sel,
int n)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullUtil()
| Method Detail |
|---|
public static void setNullDataEntriesLong(LongColumnVector v,
boolean selectedInUse,
int[] sel,
int n)
public static void setNullOutputEntriesColScalar(ColumnVector v,
boolean selectedInUse,
int[] sel,
int n)
public static void setNullDataEntriesDouble(DoubleColumnVector v,
boolean selectedInUse,
int[] sel,
int n)
public static void setNullAndDivBy0DataEntriesDouble(DoubleColumnVector v,
boolean selectedInUse,
int[] sel,
int n,
LongColumnVector denoms)
public static void setNullAndDivBy0DataEntriesDouble(DoubleColumnVector v,
boolean selectedInUse,
int[] sel,
int n,
DoubleColumnVector denoms)
public static void setNullAndDivBy0DataEntriesLong(LongColumnVector v,
boolean selectedInUse,
int[] sel,
int n,
LongColumnVector denoms)
public static void setNullAndDivBy0DataEntriesLong(LongColumnVector v,
boolean selectedInUse,
int[] sel,
int n,
DoubleColumnVector denoms)
public static void propagateNullsColCol(ColumnVector inputColVector1,
ColumnVector inputColVector2,
ColumnVector outputColVector,
int[] sel,
int n,
boolean selectedInUse)
public static void setNullDataEntriesDecimal(DecimalColumnVector v,
boolean selectedInUse,
int[] sel,
int n)
public static void initOutputNullsToFalse(ColumnVector v,
boolean isRepeating,
boolean selectedInUse,
int[] sel,
int n)
public static int filterNulls(ColumnVector v,
boolean selectedInUse,
int[] sel,
int n)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||