public class TestCompactingByteArrayBuffer
extends junit.framework.TestCase
The basic data model is a managed byte[] on which we can write. Random updates in the array are allowed and variable length data are simply appended onto the end of the array. The array will grow if necessary, in which case the data are copied onto a new byte[]. The copy is a compacting operation, similar to GC, in which only the "live" bytes are copied forward. Compacting restores the sort order of the keys. During mutations, the sort order is maintained by an indirection vector having the offset and length of the current location for each key. The order of the indirection vector is maintained by an insertion sort.
Constructor and Description |
---|
TestCompactingByteArrayBuffer() |
TestCompactingByteArrayBuffer(String arg0) |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
public TestCompactingByteArrayBuffer()
public TestCompactingByteArrayBuffer(String arg0)
arg0
- Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.