Package net.royalur.lut.store
Class OrderedUInt32BufferSet
java.lang.Object
net.royalur.lut.store.OrderedUInt32BufferSet
Manages a set of ordered uint32 buffers, and uses merge sort to combine
them as needed. This is more efficient than using one big ordered buffer
and using insertion sort when each value is added.
-
Field Details
-
DEFAULT_ENTRIES_PER_BUFFER
public static final int DEFAULT_ENTRIES_PER_BUFFER- See Also:
-
-
Constructor Details
-
OrderedUInt32BufferSet
public OrderedUInt32BufferSet(int entriesPerBuffer) -
OrderedUInt32BufferSet
public OrderedUInt32BufferSet()
-
-
Method Details
-
isSorted
public boolean isSorted() -
getEntryCount
public int getEntryCount() -
sort
public void sort() -
add
public void add(int value) -
toSingleCompressedBuffer
-