public class VLongStorage extends Object
Constructor and Description |
---|
VLongStorage() |
VLongStorage(byte[] bytes) |
VLongStorage(int cap) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes() |
long |
getLength() |
long |
getPosition() |
long |
readVLong()
Reads a long stored in variable-length format.
|
void |
seek(long pos) |
void |
trimToSize() |
void |
writeVLong(long i)
Writes an long in a variable-length format.
|
public VLongStorage()
public VLongStorage(int cap)
public VLongStorage(byte[] bytes)
public void seek(long pos)
public long getPosition()
public long getLength()
public final void writeVLong(long i)
The format is described further in Lucene its DataOutput#writeVInt(int)
See DataInput readVLong of Lucene
public long readVLong()
The format is described further in DataOutput writeVInt(int) from Lucene.
public void trimToSize()
public byte[] getBytes()
Copyright © 2012–2019. All rights reserved.