// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "raw_buffer_store.h" #include #include using vespalib::alloc::MemoryAllocator; using vespalib::datastore::ArrayStoreConfig; using vespalib::datastore::EntryRef; namespace { constexpr float ALLOC_GROW_FACTOR = 0.2; } namespace search::attribute { RawBufferStore::RawBufferStore(std::shared_ptr allocator, uint32_t max_type_id, double grow_factor) : _array_store(ArrayStoreType::optimizedConfigForHugePage(max_type_id, TypeMapper(max_type_id, grow_factor, max_buffer_size), MemoryAllocator::HUGEPAGE_SIZE, MemoryAllocator::PAGE_SIZE, max_buffer_size, 8_Ki, ALLOC_GROW_FACTOR), std::move(allocator), TypeMapper(max_type_id, grow_factor, max_buffer_size)) { } RawBufferStore::~RawBufferStore() = default; } namespace vespalib::datastore { template class ArrayStore, ArrayStoreDynamicTypeMapper>; }