List of usage examples for org.apache.mahout.utils.io ChunkedWriter write
public void write(String key, String value) throws IOException
From source file:edu.indiana.d2i.htrc.io.SequentialDataCopyJob.java
License:Apache License
private void text2Seq(Iterable<Entry<String, String>> content, ChunkedWriter chunkWriter) throws IOException { if (content != null) { Iterator<Entry<String, String>> iterator = content.iterator(); while (iterator.hasNext()) { Entry<String, String> entry = iterator.next(); chunkWriter.write(entry.getKey(), entry.getValue()); }//from w w w. j a v a 2s . co m } }