2021-06-17 13:47:42 -04:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2021, Jan de Visser <jan@de-visser.net>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <LibSQL/Heap.h>
|
|
|
|
|
#include <LibSQL/Index.h>
|
2022-09-23 09:23:50 -04:00
|
|
|
#include <LibSQL/TupleDescriptor.h>
|
2021-06-17 13:47:42 -04:00
|
|
|
|
|
|
|
|
namespace SQL {
|
|
|
|
|
|
2023-04-23 13:59:56 +02:00
|
|
|
Index::Index(Serializer& serializer, NonnullRefPtr<TupleDescriptor> const& descriptor, bool unique, Block::Index block_index)
|
2021-08-18 20:50:13 -04:00
|
|
|
: m_serializer(serializer)
|
2021-06-17 13:47:42 -04:00
|
|
|
, m_descriptor(descriptor)
|
|
|
|
|
, m_unique(unique)
|
2023-04-23 13:59:56 +02:00
|
|
|
, m_block_index(block_index)
|
2021-06-17 13:47:42 -04:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-23 13:59:56 +02:00
|
|
|
Index::Index(Serializer& serializer, NonnullRefPtr<TupleDescriptor> const& descriptor, Block::Index block_index)
|
2021-08-18 20:50:13 -04:00
|
|
|
: m_serializer(serializer)
|
2021-06-17 13:47:42 -04:00
|
|
|
, m_descriptor(descriptor)
|
2023-04-23 13:59:56 +02:00
|
|
|
, m_block_index(block_index)
|
2021-06-17 13:47:42 -04:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|