Class DocValuesFieldUpdates

    • Field Detail

      • field

        final java.lang.String field
      • delGen

        final long delGen
      • bitsPerValue

        private final int bitsPerValue
      • finished

        private boolean finished
      • maxDoc

        protected final int maxDoc
      • size

        protected int size
    • Constructor Detail

      • DocValuesFieldUpdates

        protected DocValuesFieldUpdates​(int maxDoc,
                                        long delGen,
                                        java.lang.String field,
                                        DocValuesType type)
    • Method Detail

      • getFinished

        final boolean getFinished()
      • add

        abstract void add​(int doc,
                          long value)
      • add

        abstract void add​(int doc,
                          BytesRef value)
      • finish

        final void finish()
        Freezes internal data structures and sorts updates by docID for efficient iteration.
      • any

        boolean any()
        Returns true if this instance contains any updates.
      • size

        final int size()
      • reset

        void reset​(int doc)
        Adds an update that resets the documents value.
        Parameters:
        doc - the doc to update
      • add

        final int add​(int doc)
      • addInternal

        private int addInternal​(int doc,
                                long hasValueMask)
      • swap

        protected void swap​(int i,
                            int j)
      • grow

        protected void grow​(int size)
      • resize

        protected void resize​(int size)
      • ensureFinished

        protected final void ensureFinished()
      • ramBytesUsed

        public long ramBytesUsed()
        Description copied from interface: Accountable
        Return the memory usage of this object in bytes. Negative values are illegal.
        Specified by:
        ramBytesUsed in interface Accountable