Class AbstractSortedSetDocValues

java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.SortedSetDocValues
org.elasticsearch.index.fielddata.AbstractSortedSetDocValues

public abstract class AbstractSortedSetDocValues extends org.apache.lucene.index.SortedSetDocValues
Base implementation that throws an IOException for the DocIdSetIterator APIs. This impl is safe to use for sorting and aggregations, which only use advanceExact(int) and SortedSetDocValues.getValueCount() and SortedSetDocValues.nextOrd() and SortedSetDocValues.lookupOrd(long).
  • Field Summary

    Fields inherited from class org.apache.lucene.index.SortedSetDocValues

    NO_MORE_ORDS

    Fields inherited from class org.apache.lucene.search.DocIdSetIterator

    NO_MORE_DOCS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    advance(int target)
     
    abstract boolean
    advanceExact(int arg0)
     
    long
     
    int
     
    int
     

    Methods inherited from class org.apache.lucene.index.SortedSetDocValues

    getValueCount, intersect, lookupOrd, lookupTerm, nextOrd, termsEnum

    Methods inherited from class org.apache.lucene.search.DocIdSetIterator

    all, empty, range, slowAdvance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractSortedSetDocValues

      public AbstractSortedSetDocValues()
  • Method Details

    • docID

      public int docID()
      Specified by:
      docID in class org.apache.lucene.search.DocIdSetIterator
    • nextDoc

      public int nextDoc() throws IOException
      Specified by:
      nextDoc in class org.apache.lucene.search.DocIdSetIterator
      Throws:
      IOException
    • advance

      public int advance(int target) throws IOException
      Specified by:
      advance in class org.apache.lucene.search.DocIdSetIterator
      Throws:
      IOException
    • cost

      public long cost()
      Specified by:
      cost in class org.apache.lucene.search.DocIdSetIterator
    • advanceExact

      public abstract boolean advanceExact(int arg0) throws IOException
      Throws:
      IOException