Example usage for org.apache.lucene.search.spans Spans subclass-usage

List of usage examples for org.apache.lucene.search.spans Spans subclass-usage

Introduction

In this page you can find the example usage for org.apache.lucene.search.spans Spans subclass-usage.

Usage

From source file com.shaie.spans.FilterSpans.java

/**
 * A {@link Spans} implementation which allows wrapping another spans instance
 * and override some selected methods.
 */
// TODO: use the one from Lucene in 4.11
public class FilterSpans extends Spans {

From source file nl.inl.blacklab.MyTermSpans.java

/**
 * Expert:
 * Public for extension only.
 * This does not work correctly for terms that indexed at position Integer.MAX_VALUE.
 *
 * Adapted from Lucene version: removed assert that interfered with testing using MockSpans.

From source file nl.inl.blacklab.search.lucene.SpansAbstract.java

/**
 * SpansAbstract is our abstract base class for implementing our own Spans classes. It implements a
 * naive default implementation for skipTo. Derived classes may choose to provide their own, more
 * efficient version.
 *
 * It also provides default implementations for getPayload() and isPayloadAvailable().

From source file org.allenai.blacklab.search.lucene.SpansAbstract.java

/**
 * SpansAbstract is our abstract base class for implementing our own Spans classes. It implements a
 * naive default implementation for skipTo. Derived classes may choose to provide their own, more
 * efficient version.
 *
 * It also provides default implementations for getPayload() and isPayloadAvailable().

From source file org.apache.pylucene.search.spans.PythonSpans.java

public class PythonSpans extends Spans {

    private long pythonObject;

    public PythonSpans() {
    }

From source file uk.co.flax.luwak.util.XConjunctionSpans.java

/**
 * Common super class for multiple sub spans required in a document.
 */
abstract class XConjunctionSpans extends Spans {
    final Spans[] subSpans; // in query order
    final DocIdSetIterator conjunction; // use to move to next doc with all clauses