Class DocValuesProducer

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    Lucene45DocValuesProducer

    public abstract class DocValuesProducer
    extends java.lang.Object
    implements java.io.Closeable
    Abstract API that produces numeric, binary and sorted docvalues.
    • Method Detail

      • getNumeric

        public abstract NumericDocValues getNumeric​(FieldInfo field)
                                             throws java.io.IOException
        Returns NumericDocValues for this field. The returned instance need not be thread-safe: it will only be used by a single thread.
        Throws:
        java.io.IOException
      • getBinary

        public abstract BinaryDocValues getBinary​(FieldInfo field)
                                           throws java.io.IOException
        Returns BinaryDocValues for this field. The returned instance need not be thread-safe: it will only be used by a single thread.
        Throws:
        java.io.IOException
      • getSorted

        public abstract SortedDocValues getSorted​(FieldInfo field)
                                           throws java.io.IOException
        Returns SortedDocValues for this field. The returned instance need not be thread-safe: it will only be used by a single thread.
        Throws:
        java.io.IOException
      • getSortedSet

        public abstract SortedSetDocValues getSortedSet​(FieldInfo field)
                                                 throws java.io.IOException
        Returns SortedSetDocValues for this field. The returned instance need not be thread-safe: it will only be used by a single thread.
        Throws:
        java.io.IOException
      • getDocsWithField

        public abstract Bits getDocsWithField​(FieldInfo field)
                                       throws java.io.IOException
        Returns a Bits at the size of reader.maxDoc(), with turned on bits for each docid that does have a value for this field. The returned instance need not be thread-safe: it will only be used by a single thread.
        Throws:
        java.io.IOException
      • ramBytesUsed

        public abstract long ramBytesUsed()
        Returns approximate RAM bytes used