Package org.eclipse.rdf4j.sail.lucene

## Class LuceneDocumentResult

- java.lang.Object
- - org.eclipse.rdf4j.sail.lucene.LuceneDocumentResult

- All Implemented Interfaces:
    `DocumentResult`
  Direct Known Subclasses:
    `LuceneDocumentDistance`, `LuceneDocumentScore`

      public class LuceneDocumentResult
      extends Object
      implements DocumentResult

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected LuceneIndex` | `index` |
    `protected org.apache.lucene.search.ScoreDoc` | `scoreDoc` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `LuceneDocumentResult​(org.apache.lucene.search.ScoreDoc doc, LuceneIndex index, Set<String> fields)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `SearchDocument` | `getDocument()` | Returns null if the document no longer exists.

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

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

- - ### Field Detail

    - #### scoreDoc

          protected final org.apache.lucene.search.ScoreDoc scoreDoc

    - #### index

          protected final LuceneIndex index

  - ### Constructor Detail

    - #### LuceneDocumentResult

          public LuceneDocumentResult​(org.apache.lucene.search.ScoreDoc doc,
                                      LuceneIndex index,
                                      Set<String> fields)

  - ### Method Detail

    - #### getDocument

          public SearchDocument getDocument()

      Description copied from interface: `DocumentResult`
      Returns null if the document no longer exists.
      Specified by:
        `getDocument` in interface `DocumentResult`