public final class ListBucketingPrunerUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HIVE_LIST_BUCKETING_DEFAULT_DIR_NAME |
static java.lang.String |
HIVE_LIST_BUCKETING_DEFAULT_KEY |
Constructor and Description |
---|
ListBucketingPrunerUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Boolean |
andBoolOperand(java.lang.Boolean o,
java.lang.Boolean a)
And 2 Boolean operands in the context of pruning match
Operand one|Operand another | And result
unknown | T | unknown
unknown | F | F
unknown | unknown | unknown
T | T | T
T | F | F
T | unknown | unknown
F | T | F
F | F | F
F | unknown | F
|
static boolean |
isListBucketingPart(Partition part)
check if the partition is list bucketing
|
static java.lang.Boolean |
notBoolOperand(java.lang.Boolean input)
Not a Boolean operand in the context of pruning match
Operand | Not
T | F
F | T
unknown | unknown
|
static java.lang.Boolean |
orBoolOperand(java.lang.Boolean o,
java.lang.Boolean a)
or 2 Boolean operands in the context of pruning match
Operand one|Operand another | or result
unknown | T | T
unknown | F | unknown
unknown | unknown | unknown
T | T | T
T | F | T
T | unknown | unknown
F | T | T
F | F | F
F | unknown | unknown
|
static boolean |
skipSkewedDirectory(java.lang.Boolean bool)
Decide if pruner skips the skewed directory
Input: if the skewed value matches the expression tree
Ouput: if pruner should skip the directory represented by the skewed value
If match result is unknown(null) or true, pruner doesn't skip the directory
If match result is false, pruner skips the dir.
|
public static java.lang.String HIVE_LIST_BUCKETING_DEFAULT_DIR_NAME
public static java.lang.String HIVE_LIST_BUCKETING_DEFAULT_KEY
public static boolean skipSkewedDirectory(java.lang.Boolean bool)
bool
- if the skewed value matches the expression treepublic static java.lang.Boolean orBoolOperand(java.lang.Boolean o, java.lang.Boolean a)
public static java.lang.Boolean andBoolOperand(java.lang.Boolean o, java.lang.Boolean a)
o
- one operanda
- another operandpublic static java.lang.Boolean notBoolOperand(java.lang.Boolean input)
input
- match resultpublic static boolean isListBucketingPart(Partition part)
part
- Copyright © 2012 The Apache Software Foundation