|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.utils.vectors.io.SequenceFileVectorWriter
public class SequenceFileVectorWriter
Closes the writer when done
Constructor Summary | |
---|---|
SequenceFileVectorWriter(org.apache.hadoop.io.SequenceFile.Writer writer)
|
Method Summary | |
---|---|
void |
close()
Close any internally held resources. |
org.apache.hadoop.io.SequenceFile.Writer |
getWriter()
|
long |
write(java.lang.Iterable<Vector> iterable)
Write all values in the Iterable to the output |
long |
write(java.lang.Iterable<Vector> iterable,
long maxDocs)
Write the first maxDocs to the output. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SequenceFileVectorWriter(org.apache.hadoop.io.SequenceFile.Writer writer)
Method Detail |
---|
public long write(java.lang.Iterable<Vector> iterable, long maxDocs) throws java.io.IOException
VectorWriter
maxDocs
to the output.
write
in interface VectorWriter
maxDocs
- the maximum number of docs to write
java.io.IOException
- if there was a problem writingpublic long write(java.lang.Iterable<Vector> iterable) throws java.io.IOException
VectorWriter
write
in interface VectorWriter
java.io.IOException
- if there was a problem writingpublic void close() throws java.io.IOException
VectorWriter
close
in interface VectorWriter
java.io.IOException
- if there was an issue closing the itempublic org.apache.hadoop.io.SequenceFile.Writer getWriter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |