org.apache.nutch.indexer

## Class IndexWriters

- java.lang.Object
- - org.apache.nutch.indexer.IndexWriters

-     public class IndexWriters
      extends java.lang.Object

  Creates and caches `IndexWriter` implementing plugins.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `class` | `IndexWriters.IndexWriterWrapper`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `void` | `commit()`
    `void` | `delete(java.lang.String key)`
    `java.lang.String` | `describe()` Lists the active IndexWriters and their configuration.
    `static IndexWriters` | `get(Configuration conf)`
    `void` | `open(Configuration conf, java.lang.String name)` Initializes the internal variables of index writers.
    `void` | `update(NutchDocument doc)`
    `void` | `write(NutchDocument doc)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### get

          public static IndexWriters get(Configuration conf)

    - #### open

          public void open(Configuration conf,
                           java.lang.String name)
                    throws java.io.IOException

      Initializes the internal variables of index writers.
      Parameters:
        `conf` - Nutch configuration.
        `name` -
      Throws:
        `java.io.IOException` - Some exception thrown by some writer.

    - #### write

          public void write(NutchDocument doc)
                     throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### update

          public void update(NutchDocument doc)
                      throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### delete

          public void delete(java.lang.String key)
                      throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### close

          public void close()
                     throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### commit

          public void commit()
                      throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### describe

          public java.lang.String describe()

      Lists the active IndexWriters and their configuration.
      Returns:
        The full description.

Copyright © 2019 The Apache Software Foundation