public class NutchIndexAction extends Object implements org.apache.hadoop.io.Writable
NutchIndexAction
is the new unit of indexing holding the
document and action information.Modifier and Type | Field and Description |
---|---|
byte |
action |
static byte |
ADD |
static byte |
DELETE |
NutchDocument |
doc |
static byte |
UPDATE |
Constructor and Description |
---|
NutchIndexAction(NutchDocument doc,
byte action) |
public static final byte ADD
public static final byte DELETE
public static final byte UPDATE
public NutchDocument doc
public byte action
public NutchIndexAction(NutchDocument doc, byte action)
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2014 The Apache Software Foundation