org.apache.nutch.io
Class SetFile.Writer
java.lang.Object
org.apache.nutch.io.MapFile.Writer
org.apache.nutch.io.SetFile.Writer
- Enclosing class:
- SetFile
- public static class SetFile.Writer
- extends MapFile.Writer
Write a new set file.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetFile.Writer
public SetFile.Writer(NutchFileSystem nfs,
String dirName,
Class keyClass)
throws IOException
- Create the named set for keys of the named class.
SetFile.Writer
public SetFile.Writer(NutchFileSystem nfs,
String dirName,
WritableComparator comparator)
throws IOException
- Create the named set using the named key comparator.
append
public void append(WritableComparable key)
throws IOException
- Append a key to a set. The key must be strictly greater than the
previous key added to the set.
- Throws:
IOException
Copyright © 2006 The Apache Software Foundation