org.apache.hadoop.hive.ql.optimizer.listbucketingpruner
Class ListBucketingPrunerUtils

java.lang.Object
  extended by org.apache.hadoop.hive.ql.optimizer.listbucketingpruner.ListBucketingPrunerUtils

public final class ListBucketingPrunerUtils
extends Object

Utility for list bucketing prune.


Field Summary
static String HIVE_LIST_BUCKETING_DEFAULT_DIR_NAME
           
static String HIVE_LIST_BUCKETING_DEFAULT_KEY
           
 
Constructor Summary
ListBucketingPrunerUtils()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIVE_LIST_BUCKETING_DEFAULT_DIR_NAME

public static String HIVE_LIST_BUCKETING_DEFAULT_DIR_NAME

HIVE_LIST_BUCKETING_DEFAULT_KEY

public static String HIVE_LIST_BUCKETING_DEFAULT_KEY
Constructor Detail

ListBucketingPrunerUtils

public ListBucketingPrunerUtils()
Method Detail

skipSkewedDirectory

public 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.

Parameters:
bool - if the skewed value matches the expression tree
Returns:

orBoolOperand

public 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


andBoolOperand

public 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

Parameters:
o - one operand
a - another operand
Returns:
result

notBoolOperand

public static Boolean notBoolOperand(Boolean input)
Not a Boolean operand in the context of pruning match Operand | Not T | F F | T unknown | unknown

Parameters:
input - match result
Returns:

isListBucketingPart

public static boolean isListBucketingPart(Partition part)
check if the partition is list bucketing

Parameters:
part -
Returns:


Copyright © 2014 The Apache Software Foundation. All rights reserved.