OutputStreamIndexOutput
Implementation class for buffered IndexOutput that writes to an OutputStream.
Properties
Functions
Aligns the current file pointer to multiples of alignmentBytes bytes to improve reads with mmap. This will write between 0 and (alignmentBytes-1) zero bytes using .writeByte.
Returns the current checksum of bytes written so far
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.