diff options
author | Tor Egge <Tor.Egge@online.no> | 2023-06-14 17:36:51 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2023-06-14 17:36:51 +0200 |
commit | 9431057101a320583fecf5f8d2135060ab137a54 (patch) | |
tree | c1e8c7007e117e9c3d9fdf29a1870ef973eae001 /vespalib/src | |
parent | 8e709226467a9ce8e9920e9cbf90f49c2403b5b2 (diff) |
Adjust class comment for ArrayStoreDynamicTypeMapper.
Diffstat (limited to 'vespalib/src')
-rw-r--r-- | vespalib/src/vespa/vespalib/datastore/array_store_dynamic_type_mapper.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vespalib/src/vespa/vespalib/datastore/array_store_dynamic_type_mapper.h b/vespalib/src/vespa/vespalib/datastore/array_store_dynamic_type_mapper.h index 6968aaba87f..e02f57eaea3 100644 --- a/vespalib/src/vespa/vespalib/datastore/array_store_dynamic_type_mapper.h +++ b/vespalib/src/vespa/vespalib/datastore/array_store_dynamic_type_mapper.h @@ -14,6 +14,17 @@ template <typename EntryT> class LargeArrayBufferType; /* * This class provides mapping between type ids and array sizes needed for * storing values. + * + * Type ids [1;max_static_array_buffer_type_id] use SmallBufferType, + * containing small arrays where buffer type specifies array size. + * + * Type ids [max_static_array_buffer_type_id+1;max_buffer_type_id] use + * DynamicBufferType, containing medium sized arrays where the same + * buffer type handles a range of array sizes and actual array size is + * also stored in the entry. + * + * Type id 0 uses LargeBufferType, which handles any array size but uses + * heap allocation. */ template <typename ElemT> class ArrayStoreDynamicTypeMapper : public vespalib::datastore::ArrayStoreTypeMapper |