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);
}
Aggregations