Class ValuesSource.Bytes.WithOrdinals

    • Constructor Detail

      • WithOrdinals

        public WithOrdinals()
    • Method Detail

      • docsWithValue

        public DocValueBits docsWithValue​(org.apache.lucene.index.LeafReaderContext context)
                                   throws java.io.IOException
        Overrides:
        docsWithValue in class ValuesSource.Bytes
        Throws:
        java.io.IOException
      • ordinalsValues

        public abstract org.apache.lucene.index.SortedSetDocValues ordinalsValues​(org.apache.lucene.index.LeafReaderContext context)
                                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • globalOrdinalsValues

        public abstract org.apache.lucene.index.SortedSetDocValues globalOrdinalsValues​(org.apache.lucene.index.LeafReaderContext context)
                                                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • supportsGlobalOrdinalsMapping

        public boolean supportsGlobalOrdinalsMapping()
        Whether this values source is able to provide a mapping between global and segment ordinals, by returning the underlying OrdinalMap. If this method returns false, then calling globalOrdinalsMapping(org.apache.lucene.index.LeafReaderContext) will result in an UnsupportedOperationException.
      • globalOrdinalsMapping

        public abstract java.util.function.LongUnaryOperator globalOrdinalsMapping​(org.apache.lucene.index.LeafReaderContext context)
                                                                            throws java.io.IOException
        Returns a mapping from segment ordinals to global ordinals.
        Throws:
        java.io.IOException
      • globalMaxOrd

        public long globalMaxOrd​(org.apache.lucene.search.IndexSearcher indexSearcher)
                          throws java.io.IOException
        Throws:
        java.io.IOException