org.eclipse.rdf4j.sail.elasticsearch

## Class ElasticsearchDocumentResult

- java.lang.Object
- - org.eclipse.rdf4j.sail.elasticsearch.ElasticsearchDocumentResult

- All Implemented Interfaces:
    DocumentResult
  Direct Known Subclasses:
    ElasticsearchDocumentDistance, ElasticsearchDocumentScore

      public class ElasticsearchDocumentResult
      extends Object
      implements DocumentResult

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected org.elasticsearch.search.SearchHit` | `hit`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ElasticsearchDocumentResult(org.elasticsearch.search.SearchHit hit, com.google.common.base.Function<? super String,? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper)`

  - ### 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

    - #### hit

          protected final org.elasticsearch.search.SearchHit hit

  - ### Constructor Detail

    - #### ElasticsearchDocumentResult

          public ElasticsearchDocumentResult(org.elasticsearch.search.SearchHit hit,
                                             com.google.common.base.Function<? super String,? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper)

  - ### 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-2020 Eclipse Foundation. All Rights Reserved.