}
}
DenseVectorWritable result = new DenseVectorWritable();
result.setSize(indeces.size());
for (int i = 0; i < indeces.size(); i++)
result.addCell(indeces.get(i), values.get(i));
writeToFile(resultOutputPath.toString(), result, conf);
return resultOutputPath.toString();
}
public static void readFromFile(String pathString, Writable result,