org.apache.nutch.indexer

## Interface IndexWriter

- All Superinterfaces:
    Configurable, Pluggable
  All Known Implementing Classes:
    CloudSearchIndexWriter, CSVIndexWriter, DummyIndexWriter, ElasticIndexWriter, ElasticRestIndexWriter, KafkaIndexWriter, RabbitIndexWriter, SolrIndexWriter

      public interface IndexWriter
      extends Pluggable, Configurable

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static java.lang.String` | `X_POINT_ID` The name of the extension point.

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `void` | `commit()`
    `void` | `delete(java.lang.String key)`
    `java.util.Map<java.lang.String,java.util.Map.Entry<java.lang.String,java.lang.Object>>` | `describe()` Returns `Map` with the specific parameters the IndexWriter instance can take.
    `void` | `open(Configuration conf, java.lang.String name)` Deprecated. use `open(IndexWriterParams)`} instead.
    `void` | `open(IndexWriterParams parameters)` Initializes the internal variables from a given index writer configuration.
    `void` | `update(NutchDocument doc)`
    `void` | `write(NutchDocument doc)`

    - ### Methods inherited from interface org.apache.hadoop.conf.Configurable

      `getConf, setConf`

- - ### Field Detail

    - #### X_POINT_ID

          static final java.lang.String X_POINT_ID

      The name of the extension point.

  - ### Method Detail

    - #### open

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

      Deprecated. use `open(IndexWriterParams)`} instead.
      Throws:
        `java.io.IOException`

    - #### open

          void open(IndexWriterParams parameters)
             throws java.io.IOException

      Initializes the internal variables from a given index writer configuration.
      Parameters:
        `parameters` - Params from the index writer configuration.
      Throws:
        `java.io.IOException` - Some exception thrown by writer.

    - #### write

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

      Throws:
        `java.io.IOException`

    - #### delete

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

      Throws:
        `java.io.IOException`

    - #### update

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

      Throws:
        `java.io.IOException`

    - #### commit

          void commit()
               throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### close

          void close()
              throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### describe

          java.util.Map<java.lang.String,java.util.Map.Entry<java.lang.String,java.lang.Object>> describe()

      Returns `Map` with the specific parameters the IndexWriter instance can take.
      Returns:
        The values of each row. It must have the form >.

Copyright © 2019 The Apache Software Foundation