DataOutput
Abstract base class for performing write operations of Lucene's low-level data types.
DataOutput may only be used from one thread, because it is not thread safe (it keeps internal state like file position).
Inheritors
Functions
Writes an array of bytes.
Encode integers using group-varint. It uses VInt to encode tail values that are not enough for a group.
Encode integers using group-varint. It uses VInt to encode tail values that are not enough for a group. we need a long[] because this is what postings are using, all longs are actually required to be integers.
Writes a String map.
Writes a String set.
Writes a short as two bytes (LE byte order).
Writes a string.
Writes an long in a variable-length format. Writes between one and nine bytes. Smaller values take fewer bytes. Negative numbers are not supported.
Write a zig-zag-encoded .writeVLong long. Writes between one and ten bytes. This is typically useful to write small signed ints.