org.apache.nutch.tools

## Class CommonCrawlFormatFactory

- java.lang.Object
- - org.apache.nutch.tools.CommonCrawlFormatFactory

-     public class CommonCrawlFormatFactory
      extends java.lang.Object

  Factory class that creates new `CommonCrawlFormat` objects (a.k.a. formatter) that map crawled files to CommonCrawl format.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CommonCrawlFormatFactory()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `static CommonCrawlFormat` | `getCommonCrawlFormat(java.lang.String formatType, Configuration nutchConf, CommonCrawlConfig config)`
    `static CommonCrawlFormat` | `getCommonCrawlFormat(java.lang.String formatType, java.lang.String url, Content content, Metadata metadata, Configuration nutchConf, CommonCrawlConfig config)` Deprecated.

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

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

- - ### Constructor Detail

    - #### CommonCrawlFormatFactory

          public CommonCrawlFormatFactory()

  - ### Method Detail

    - #### getCommonCrawlFormat

          public static CommonCrawlFormat getCommonCrawlFormat(java.lang.String formatType,
                                                               java.lang.String url,
                                                               Content content,
                                                               Metadata metadata,
                                                               Configuration nutchConf,
                                                               CommonCrawlConfig config)
                                                        throws java.io.IOException

      Deprecated.
      Returns a new instance of a `CommonCrawlFormat` object specifying the type of formatter.
      Parameters:
        `formatType` - the type of formatter to be created.
        `url` - the url.
        `content` - the content.
        `metadata` - the metadata.
        `nutchConf` - the configuration.
        `config` - the CommonCrawl output configuration.
      Returns:
        the new `CommonCrawlFormat` object.
      Throws:
        `java.io.IOException` - If any I/O error occurs.

    - #### getCommonCrawlFormat

          public static CommonCrawlFormat getCommonCrawlFormat(java.lang.String formatType,
                                                               Configuration nutchConf,
                                                               CommonCrawlConfig config)
                                                        throws java.io.IOException

      Throws:
        `java.io.IOException`

Copyright © 2019 The Apache Software Foundation