ExtractWikipedia (Lucene 10.5.1 benchmark API)
Description: declaration: package: org.apache.lucene.benchmark.utils, class: ExtractWikipedia

Package org.apache.lucene.benchmark.utils

# Class ExtractWikipedia

java.lang.Object
org.apache.lucene.benchmark.utils.ExtractWikipedia

public class ExtractWikipedia extends Object
Extract the downloaded Wikipedia dump into separate files for indexing.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected DocMaker`
  `docMaker`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ExtractWikipedia(DocMaker docMaker, Path outputDir)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `create(String id, String title, String time, String body)`
  `Path`
  `directory(int count, Path directory)`
  `void`
  `extract()`
  `static void`
  `main(String[] args)`

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

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

- ## Field Details

  - ### docMaker

    protected DocMaker docMaker

- ## Constructor Details

  - ### ExtractWikipedia

    public ExtractWikipedia(DocMaker docMaker, Path outputDir) throws IOException
    Throws:
      `IOException`

- ## Method Details

  - ### directory

    public Path directory(int count, Path directory)

  - ### create

    public void create(String id, String title, String time, String body) throws IOException
    Throws:
      `IOException`

  - ### extract

    public void extract() throws Exception
    Throws:
      `Exception`

  - ### main

    public static void main(String[] args) throws Exception
    Throws:
      `Exception`