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
ANutchIndexAction
is the new unit of indexing holding the document and action information.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NutchIndexAction()
NutchIndexAction(NutchDocument doc, byte action)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
readFields(DataInput in)
void
write(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:
readFields
in interfaceWritable
- Throws:
IOException
-
write
public void write(DataOutput out) throws IOException
- Specified by:
write
in interfaceWritable
- Throws:
IOException
-
-