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 and Description
    --- | ---
    `protected LuceneIndex` | `index`
    `protected org.apache.lucene.search.ScoreDoc` | `scoreDoc`

  - ### Constructor Summary

    Constructors
    Constructor and 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 and 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`

Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.