add

abstract fun add(doc: Int, value: Long)
abstract fun add(doc: Int, value: BytesRef)
fun add(doc: Int): Int


abstract fun add(docId: Int, iterator: DocValuesFieldUpdates.Iterator)

Adds the value for the given docID. This method prevents conditional calls to or Iterator.binaryValue since the implementation knows if it's a long value iterator or binary value