org.apache.hadoop.hive.ql.plan
Class SkewedColumnPositionPair
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SkewedColumnPositionPair
public SkewedColumnPositionPair()
SkewedColumnPositionPair
public SkewedColumnPositionPair(int tblColPosition,
int skewColPosition)
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.