[TOC]
- Prev Class
- Next Class
org.apache.nutch.indexer
Class NutchIndexAction
- java.lang.Object
- org.apache.nutch.indexer.NutchIndexAction
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class NutchIndexAction extends Object implements org.apache.hadoop.io.Writable
A NutchIndexAction
is the new unit of indexing holding the document and action information.
Field Summary
Fields Modifier and Type Field and Description byte
action
static byte
ADD
static byte
DELETE
NutchDocument
doc
static byte
UPDATE
Constructor Summary
Constructors Constructor and Description NutchIndexAction(NutchDocument doc,
byte action)
Method Summary
Methods Modifier and Type Method and Description void
readFields(DataInput in)
void
write(DataOutput out)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
-
ADD
public static final byte ADD
- See Also:
- [Constant Field Values](../../../../constant-values.html#org.apache.nutch.indexer.NutchIndexAction.ADD)
-
DELETE
public static final byte DELETE
- See Also:
- [Constant Field Values](../../../../constant-values.html#org.apache.nutch.indexer.NutchIndexAction.DELETE)
-
UPDATE
public static final byte UPDATE
- See Also:
- [Constant Field Values](../../../../constant-values.html#org.apache.nutch.indexer.NutchIndexAction.UPDATE)
-
doc
public NutchDocument doc
-
action
public byte action
Constructor Detail
-
NutchIndexAction
public NutchIndexAction(NutchDocument doc, byte action)
Method Detail
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
- <code>readFields</code> in interface <code>org.apache.hadoop.io.Writable</code>
- Throws:
- <code>IOException</code>
-
write
public void write(DataOutput out) throws IOException
- Specified by:
- <code>write</code> in interface <code>org.apache.hadoop.io.Writable</code>
- Throws:
- <code>IOException</code>
- Prev Class
- Next Class