Search in sources :

Example 1 with IgfsIgniteMock

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;
}
Also used : IgniteHadoopWeightedMapReducePlanner(org.apache.ignite.hadoop.mapreduce.IgniteHadoopWeightedMapReducePlanner) IgfsIgniteMock(org.apache.ignite.internal.processors.igfs.IgfsIgniteMock)

Aggregations

IgniteHadoopWeightedMapReducePlanner (org.apache.ignite.hadoop.mapreduce.IgniteHadoopWeightedMapReducePlanner)1 IgfsIgniteMock (org.apache.ignite.internal.processors.igfs.IgfsIgniteMock)1