org.apache.lucene.search.spans

## Class MultiSpansWrapper

- java.lang.Object
- - org.apache.lucene.search.spans.MultiSpansWrapper

-     public class MultiSpansWrapper
      extends Object

  A wrapper to perform span operations on a non-leaf reader context

  NOTE: This should be used for testing purposes only

  NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MultiSpansWrapper()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Spans` | `wrap(IndexReader reader, SpanQuery spanQuery)`
    `static Spans` | `wrap(IndexReader reader, SpanQuery spanQuery, SpanWeight.Postings requiredPostings)`

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

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

- - ### Constructor Detail

    - #### MultiSpansWrapper

          public MultiSpansWrapper()

  - ### Method Detail

    - #### wrap

          public static Spans wrap(IndexReader reader,
                   SpanQuery spanQuery)
                            throws IOException

      Throws:
        `IOException`

    - #### wrap

          public static Spans wrap(IndexReader reader,
                   SpanQuery spanQuery,
                   SpanWeight.Postings requiredPostings)
                            throws IOException

      Throws:
        `IOException`

Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.