ReduceDriver<Text, TextIntIntIntWritable, Text, VectorWritable> reduceDriver;
@Before
public void setUp() {
DocumentVectorizerReducer reducer = new DocumentVectorizerReducer();
reduceDriver = ReduceDriver.newReduceDriver(reducer);
reduceDriver.getConfiguration().setInt(
TfIdfCalculatorJob.NUMBER_OF_DOCUMENTS_KEY, 20);
reduceDriver.getConfiguration().setInt(
TfIdfCalculatorJob.NUMBER_OF_TOKENS_KEY, 3);