java.lang.Objectorg.supermind.crawl.MapFileLongPersister
public class MapFileLongPersister
Saves Long values to a MapFile
.
Constructor Summary | |
---|---|
MapFileLongPersister(org.apache.nutch.fs.NutchFileSystem nfs,
java.lang.String tmpfile,
java.lang.String mapdir,
boolean overwrite)
|
|
MapFileLongPersister(java.lang.String tmpfile,
java.lang.String mapdir,
boolean overwrite)
|
Method Summary | |
---|---|
void |
add(long value)
|
void |
close()
|
boolean |
contains(long v)
|
protected void |
flushToDisk()
Flush the buffer to disk. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapFileLongPersister(org.apache.nutch.fs.NutchFileSystem nfs, java.lang.String tmpfile, java.lang.String mapdir, boolean overwrite) throws java.io.IOException
java.io.IOException
public MapFileLongPersister(java.lang.String tmpfile, java.lang.String mapdir, boolean overwrite) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void add(long value) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public boolean contains(long v) throws java.io.IOException
java.io.IOException
protected void flushToDisk() throws java.io.IOException
java.io.IOException