Class DocValuesUpdate

java.lang.Object
org.apache.lucene.index.DocValuesUpdate
Direct Known Subclasses:
DocValuesUpdate.BinaryDocValuesUpdate, DocValuesUpdate.NumericDocValuesUpdate

abstract class DocValuesUpdate extends Object
An in-place update to a DocValues field.
  • Field Details

    • RAW_SIZE_IN_BYTES

      private static final int RAW_SIZE_IN_BYTES
    • type

      final DocValuesType type
    • term

      final Term term
    • field

      final String field
    • docIDUpTo

      final int docIDUpTo
    • hasValue

      final boolean hasValue
  • Constructor Details

    • DocValuesUpdate

      protected DocValuesUpdate(DocValuesType type, Term term, String field, int docIDUpTo, boolean hasValue)
      Constructor.
      Parameters:
      term - the Term which determines the documents that will be updated
      field - the NumericDocValuesField to update
  • Method Details

    • valueSizeInBytes

      abstract long valueSizeInBytes()
    • sizeInBytes

      final long sizeInBytes()
    • valueToString

      protected abstract String valueToString()
    • writeTo

      abstract void writeTo(DataOutput output) throws IOException
      Throws:
      IOException
    • hasValue

      boolean hasValue()
    • toString

      public String toString()
      Overrides:
      toString in class Object