public class SkewJoinHandler extends Object
For each skew key, we first write all values to a local tmp file. At the time of ending the current group, the local tmp file will be uploaded to hdfs. Right now, we use one file per skew key.
For more info, please see https://issues.apache.org/jira/browse/HIVE-964.
Modifier and Type | Field and Description |
---|---|
int |
currBigKeyTag |
protected static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
SkewJoinHandler(CommonJoinOperator<? extends OperatorDesc> joinOp) |
Modifier and Type | Method and Description |
---|---|
void |
close(boolean abort) |
void |
handleSkew(int tag) |
void |
initiliaze(org.apache.hadoop.conf.Configuration hconf) |
void |
setSkewJoinJobCounter(org.apache.hadoop.io.LongWritable skewjoinFollowupJobs) |
void |
updateSkewJoinJobCounter(int tag) |
protected static final org.apache.commons.logging.Log LOG
public int currBigKeyTag
public SkewJoinHandler(CommonJoinOperator<? extends OperatorDesc> joinOp)
public void initiliaze(org.apache.hadoop.conf.Configuration hconf)
public void handleSkew(int tag) throws HiveException
HiveException
public void close(boolean abort) throws HiveException
HiveException
public void setSkewJoinJobCounter(org.apache.hadoop.io.LongWritable skewjoinFollowupJobs)
public void updateSkewJoinJobCounter(int tag)
Copyright © 2017 The Apache Software Foundation. All rights reserved.