class AppendOnlyValuesContainer implements ValuesContainer {

    @Override
    public void close()
    {
        assertNotClosed();
        closed = true;
        allocated.forEach( Memory::free );
        allocated.clear();
        chunks.clear();
        writer.close();
        currentChunk = null;
    }

    public  AppendOnlyValuesContainer( MemoryAllocator allocator );
    @VisibleForTesting  AppendOnlyValuesContainer( int chunkSize, MemoryAllocator allocator );

}