public final class ListBucketingPrunerUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HIVE_LIST_BUCKETING_DEFAULT_DIR_NAME |
static String |
HIVE_LIST_BUCKETING_DEFAULT_KEY |
Constructor and Description |
---|
ListBucketingPrunerUtils() |
Modifier and Type | Method and Description |
---|---|
static Boolean |
andBoolOperand(Boolean o,
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 Boolean |
notBoolOperand(Boolean input)
Not a Boolean operand in the context of pruning match
Operand | Not
T | F
F | T
unknown | unknown
|
static Boolean |
orBoolOperand(Boolean o,
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(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 String HIVE_LIST_BUCKETING_DEFAULT_DIR_NAME
public static String HIVE_LIST_BUCKETING_DEFAULT_KEY
public static boolean skipSkewedDirectory(Boolean bool)
bool
- if the skewed value matches the expression treepublic static Boolean orBoolOperand(Boolean o, Boolean a)
public static Boolean andBoolOperand(Boolean o, Boolean a)
o
- one operanda
- another operandpublic static Boolean notBoolOperand(Boolean input)
input
- match resultpublic static boolean isListBucketingPart(Partition part)
part
- Copyright © 2017 The Apache Software Foundation. All rights reserved.