use of org.apache.ignite.internal.processors.igfs.IgfsIgniteMock in project ignite by apache.
the class HadoopWeightedMapReducePlannerTest method createPlanner.
/**
* Create planner for IGFS.
*
* @param igfs IGFS.
* @return Planner.
*/
private static IgniteHadoopWeightedMapReducePlanner createPlanner(IgfsMock igfs) {
IgniteHadoopWeightedMapReducePlanner planner = new IgniteHadoopWeightedMapReducePlanner();
IgfsIgniteMock ignite = new IgfsIgniteMock(null, igfs);
GridTestUtils.setFieldValue(planner, HadoopAbstractMapReducePlanner.class, "ignite", ignite);
return planner;
}
Aggregations