Package org.apache.nutch.indexer
Class NutchIndexAction
- java.lang.Object
-
- org.apache.nutch.indexer.NutchIndexAction
-
- All Implemented Interfaces:
Writable
public class NutchIndexAction extends Object implements Writable
ANutchIndexActionis the new unit of indexing holding the document and action information.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNutchIndexAction()NutchIndexAction(NutchDocument doc, byte action)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadFields(DataInput in)voidwrite(DataOutput out)
-
-
-
Field Detail
-
ADD
public static final byte ADD
- See Also:
- Constant Field Values
-
DELETE
public static final byte DELETE
- See Also:
- Constant Field Values
-
UPDATE
public static final byte UPDATE
- See Also:
- Constant Field Values
-
doc
public NutchDocument doc
-
action
public byte action
-
-
Constructor Detail
-
NutchIndexAction
protected NutchIndexAction()
-
NutchIndexAction
public NutchIndexAction(NutchDocument doc, byte action)
-
-
Method Detail
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFieldsin interfaceWritable- Throws:
IOException
-
write
public void write(DataOutput out) throws IOException
- Specified by:
writein interfaceWritable- Throws:
IOException
-
-