Search in sources :

Example 1 with BucketMatcher

use of org.apache.hadoop.hive.ql.exec.BucketMatcher in project hive by apache.

the class MapredLocalTask method setUpFetchOpContext.

private void setUpFetchOpContext(FetchOperator fetchOp, String alias, String currentInputFile) throws Exception {
    BucketMapJoinContext bucketMatcherCxt = this.work.getBucketMapjoinContext();
    Class<? extends BucketMatcher> bucketMatcherCls = bucketMatcherCxt.getBucketMatcherClass();
    BucketMatcher bucketMatcher = ReflectionUtils.newInstance(bucketMatcherCls, null);
    bucketMatcher.setAliasBucketFileNameMapping(bucketMatcherCxt.getAliasBucketFileNameMapping());
    List<Path> aliasFiles = bucketMatcher.getAliasBucketFiles(currentInputFile, bucketMatcherCxt.getMapJoinBigTableAlias(), alias);
    fetchOp.setupContext(aliasFiles);
}
Also used : Path(org.apache.hadoop.fs.Path) BucketMatcher(org.apache.hadoop.hive.ql.exec.BucketMatcher) BucketMapJoinContext(org.apache.hadoop.hive.ql.plan.BucketMapJoinContext)

Aggregations

Path (org.apache.hadoop.fs.Path)1 BucketMatcher (org.apache.hadoop.hive.ql.exec.BucketMatcher)1 BucketMapJoinContext (org.apache.hadoop.hive.ql.plan.BucketMapJoinContext)1