org.apache.hadoop.hive.ql.plan
Class SkewedColumnPositionPair

java.lang.Object
  extended by org.apache.hadoop.hive.ql.plan.SkewedColumnPositionPair

public class SkewedColumnPositionPair
extends Object

This class record 2 types of positions for a skewed column: 1. position in table column list 2. position in skewed column list Position starts from 0. For example, create a table with create table list_bucketing_static_part (key String, value String) partitioned by (ds String, hr String) skewed by (value) on ('val_466','val_287','val_82') stored as DIRECTORIES STORED AS RCFILE; Skewed column is "value". 1. It's position in table column is 1. 2. It's position in skewed column list is 0. This information will be used in generateListBucketingDirName


Constructor Summary
SkewedColumnPositionPair()
           
SkewedColumnPositionPair(int tblColPosition, int skewColPosition)
           
 
Method Summary
 int getSkewColPosition()
           
 int getTblColPosition()
           
 void setSkewColPosition(int skewColPosition)
           
 void setTblColPosition(int tblColPosition)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkewedColumnPositionPair

public SkewedColumnPositionPair()

SkewedColumnPositionPair

public SkewedColumnPositionPair(int tblColPosition,
                                int skewColPosition)
Method Detail

getTblColPosition

public int getTblColPosition()
Returns:
the tblColPosition

setTblColPosition

public void setTblColPosition(int tblColPosition)
Parameters:
tblColPosition - the tblColPosition to set

getSkewColPosition

public int getSkewColPosition()
Returns:
the skewColPosition

setSkewColPosition

public void setSkewColPosition(int skewColPosition)
Parameters:
skewColPosition - the skewColPosition to set


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