use of org.apache.hadoop.hive.ql.exec.util.collectoroperator.CountVectorCollectorTestOperator in project hive by apache.
the class AbstractMapJoin method setupBenchmarkImplementation.
protected static MapJoinOperator setupBenchmarkImplementation(MapJoinTestImplementation mapJoinImplementation, MapJoinTestDescription testDesc, MapJoinTestData testData) throws Exception {
MapJoinDesc mapJoinDesc = MapJoinTestConfig.createMapJoinDesc(testDesc);
final boolean isVectorOutput = isVectorOutput(mapJoinImplementation);
// This collector is just a row counter.
Operator<? extends OperatorDesc> testCollectorOperator = (!isVectorOutput ? new CountCollectorTestOperator() : new CountVectorCollectorTestOperator());
CreateMapJoinResult createMapJoinResult = MapJoinTestConfig.createMapJoinImplementation(mapJoinImplementation, testDesc, testData, mapJoinDesc, /* shareMapJoinTableContainer */
null);
MapJoinOperator operator = createMapJoinResult.mapJoinOperator;
MapJoinTableContainer mapJoinTableContainer = createMapJoinResult.mapJoinTableContainer;
// Invoke initializeOp methods.
operator.initialize(testDesc.hiveConf, testDesc.inputObjectInspectors);
// Fixup the mapJoinTables.
operator.setTestMapJoinTableContainer(1, mapJoinTableContainer, null);
return operator;
}
Aggregations