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
A `NutchIndexAction` is the new unit of indexing holding the document and action information.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `byte`
  `action`
  `static final byte`
  `ADD`
  `static final byte`
  `DELETE`
  `NutchDocument`
  `doc`
  `static final byte`
  `UPDATE`

- ## Constructor Summary

  Constructors
  Modifier
  Constructor
  Description
  `protected`
  `NutchIndexAction()`
  ``
  `NutchIndexAction(NutchDocument doc, byte action)`

- ## Method Summary

  Modifier and Type
  Method
  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 Details

  - ### 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 Details

  - ### NutchIndexAction

    protected NutchIndexAction()

  - ### NutchIndexAction

    public NutchIndexAction(NutchDocument doc, byte action)

- ## Method Details

  - ### readFields

    public void readFields(DataInput in) throws IOException
    Specified by:
      `readFields` in interface `Writable`
    Throws:
      `IOException`

  - ### write

    public void write(DataOutput out) throws IOException
    Specified by:
      `write` in interface `Writable`
    Throws:
      `IOException`