public class NullUtil extends Object
Constructor and Description |
---|
NullUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
filterNulls(org.apache.hadoop.hive.ql.exec.vector.ColumnVector v,
boolean selectedInUse,
int[] sel,
int n)
Filter out rows with null values.
|
static void |
initOutputNullsToFalse(org.apache.hadoop.hive.ql.exec.vector.ColumnVector v,
boolean isRepeating,
boolean selectedInUse,
int[] sel,
int n) |
static void |
propagateNullsColCol(org.apache.hadoop.hive.ql.exec.vector.ColumnVector inputColVector1,
org.apache.hadoop.hive.ql.exec.vector.ColumnVector inputColVector2,
org.apache.hadoop.hive.ql.exec.vector.ColumnVector outputColVector,
int[] sel,
int n,
boolean selectedInUse) |
static void |
setNullAndDivBy0DataEntriesDouble(org.apache.hadoop.hive.ql.exec.vector.DoubleColumnVector v,
boolean selectedInUse,
int[] sel,
int n,
org.apache.hadoop.hive.ql.exec.vector.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(org.apache.hadoop.hive.ql.exec.vector.DoubleColumnVector v,
boolean selectedInUse,
int[] sel,
int n,
org.apache.hadoop.hive.ql.exec.vector.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(org.apache.hadoop.hive.ql.exec.vector.LongColumnVector v,
boolean selectedInUse,
int[] sel,
int n,
org.apache.hadoop.hive.ql.exec.vector.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(org.apache.hadoop.hive.ql.exec.vector.LongColumnVector v,
boolean selectedInUse,
int[] sel,
int n,
org.apache.hadoop.hive.ql.exec.vector.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 |
setNullDataEntriesBytes(org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector v,
boolean selectedInUse,
int[] sel,
int n)
Set the data value for all NULL entries to the designated NULL_VALUE.
|
static void |
setNullDataEntriesDecimal(org.apache.hadoop.hive.ql.exec.vector.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(org.apache.hadoop.hive.ql.exec.vector.DoubleColumnVector v,
boolean selectedInUse,
int[] sel,
int n)
Set the data value for all NULL entries to NaN
|
static void |
setNullDataEntriesIntervalDayTime(org.apache.hadoop.hive.ql.exec.vector.IntervalDayTimeColumnVector v,
boolean selectedInUse,
int[] sel,
int n)
Set the data value for all NULL entries to the designated NULL_VALUE.
|
static void |
setNullDataEntriesLong(org.apache.hadoop.hive.ql.exec.vector.LongColumnVector v,
boolean selectedInUse,
int[] sel,
int n)
Set the data value for all NULL entries to the designated NULL_VALUE.
|
static void |
setNullDataEntriesTimestamp(org.apache.hadoop.hive.ql.exec.vector.TimestampColumnVector v,
boolean selectedInUse,
int[] sel,
int n)
Set the data value for all NULL entries to the designated NULL_VALUE.
|
static void |
setNullOutputEntriesColScalar(org.apache.hadoop.hive.ql.exec.vector.ColumnVector v,
boolean selectedInUse,
int[] sel,
int n) |
public static void setNullDataEntriesLong(org.apache.hadoop.hive.ql.exec.vector.LongColumnVector v, boolean selectedInUse, int[] sel, int n)
public static void setNullDataEntriesBytes(org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector v, boolean selectedInUse, int[] sel, int n)
public static void setNullDataEntriesTimestamp(org.apache.hadoop.hive.ql.exec.vector.TimestampColumnVector v, boolean selectedInUse, int[] sel, int n)
public static void setNullDataEntriesIntervalDayTime(org.apache.hadoop.hive.ql.exec.vector.IntervalDayTimeColumnVector v, boolean selectedInUse, int[] sel, int n)
public static void setNullOutputEntriesColScalar(org.apache.hadoop.hive.ql.exec.vector.ColumnVector v, boolean selectedInUse, int[] sel, int n)
public static void setNullDataEntriesDouble(org.apache.hadoop.hive.ql.exec.vector.DoubleColumnVector v, boolean selectedInUse, int[] sel, int n)
public static void setNullAndDivBy0DataEntriesDouble(org.apache.hadoop.hive.ql.exec.vector.DoubleColumnVector v, boolean selectedInUse, int[] sel, int n, org.apache.hadoop.hive.ql.exec.vector.LongColumnVector denoms)
public static void setNullAndDivBy0DataEntriesDouble(org.apache.hadoop.hive.ql.exec.vector.DoubleColumnVector v, boolean selectedInUse, int[] sel, int n, org.apache.hadoop.hive.ql.exec.vector.DoubleColumnVector denoms)
public static void setNullAndDivBy0DataEntriesLong(org.apache.hadoop.hive.ql.exec.vector.LongColumnVector v, boolean selectedInUse, int[] sel, int n, org.apache.hadoop.hive.ql.exec.vector.LongColumnVector denoms)
public static void setNullAndDivBy0DataEntriesLong(org.apache.hadoop.hive.ql.exec.vector.LongColumnVector v, boolean selectedInUse, int[] sel, int n, org.apache.hadoop.hive.ql.exec.vector.DoubleColumnVector denoms)
public static void propagateNullsColCol(org.apache.hadoop.hive.ql.exec.vector.ColumnVector inputColVector1, org.apache.hadoop.hive.ql.exec.vector.ColumnVector inputColVector2, org.apache.hadoop.hive.ql.exec.vector.ColumnVector outputColVector, int[] sel, int n, boolean selectedInUse)
public static void setNullDataEntriesDecimal(org.apache.hadoop.hive.ql.exec.vector.DecimalColumnVector v, boolean selectedInUse, int[] sel, int n)
public static void initOutputNullsToFalse(org.apache.hadoop.hive.ql.exec.vector.ColumnVector v, boolean isRepeating, boolean selectedInUse, int[] sel, int n)
public static int filterNulls(org.apache.hadoop.hive.ql.exec.vector.ColumnVector v, boolean selectedInUse, int[] sel, int n)
Copyright © 2022 The Apache Software Foundation. All rights reserved.