Home
last modified time | relevance | path

Searched refs:KeyMapper (Results 1 – 9 of 9) sorted by relevance

/external/icing/icing/store/
Dkey-mapper_test.cc48 KeyMapper<DocumentId>::Create(filesystem_, "/dev/null", kMaxKeyMapperSize) in TEST_F()
55 ASSERT_THAT(KeyMapper<DocumentId>::Create(filesystem_, base_dir_, -1), in TEST_F()
60 ASSERT_THAT(KeyMapper<DocumentId>::Create(filesystem_, base_dir_, in TEST_F()
67 std::unique_ptr<KeyMapper<DocumentId>> key_mapper, in TEST_F()
68 KeyMapper<DocumentId>::Create(filesystem_, base_dir_, kMaxKeyMapperSize)); in TEST_F()
74 std::unique_ptr<KeyMapper<DocumentId>> key_mapper, in TEST_F()
75 KeyMapper<DocumentId>::Create(filesystem_, base_dir_, kMaxKeyMapperSize)); in TEST_F()
93 std::unique_ptr<KeyMapper<DocumentId>> key_mapper, in TEST_F()
94 KeyMapper<DocumentId>::Create(filesystem_, base_dir_, kMaxKeyMapperSize)); in TEST_F()
104 std::unique_ptr<KeyMapper<DocumentId>> key_mapper, in TEST_F()
[all …]
Dkey-mapper.h43 class KeyMapper {
54 static libtextclassifier3::StatusOr<std::unique_ptr<KeyMapper<T>>> Create(
66 ~KeyMapper() = default;
133 explicit KeyMapper(std::string_view key_mapper_dir);
157 libtextclassifier3::StatusOr<std::unique_ptr<KeyMapper<T>>>
158 KeyMapper<T>::Create(const Filesystem& filesystem, std::string_view base_dir, in Create()
169 auto mapper = std::unique_ptr<KeyMapper<T>>(new KeyMapper<T>(key_mapper_dir)); in Create()
175 libtextclassifier3::Status KeyMapper<T>::Delete(const Filesystem& filesystem, in Delete()
186 KeyMapper<T>::KeyMapper(std::string_view key_mapper_dir) in KeyMapper() function
194 libtextclassifier3::Status KeyMapper<T>::Initialize(int maximum_size_bytes) { in Initialize()
[all …]
Ddocument-store.h446 std::unique_ptr<KeyMapper<DocumentId>> document_key_mapper_;
476 std::unique_ptr<KeyMapper<NamespaceId>> namespace_mapper_;
482 std::unique_ptr<KeyMapper<CorpusId>> corpus_mapper_;
Ddocument-store.cc336 KeyMapper<DocumentId>::Create(*filesystem_, base_dir_, kUriMapperMaxSize); in InitializeExistingDerivedFiles()
368 KeyMapper<NamespaceId>::Create(*filesystem_, in InitializeExistingDerivedFiles()
377 KeyMapper<CorpusId>::Create( in InitializeExistingDerivedFiles()
536 KeyMapper<DocumentId>::Delete(*filesystem_, base_dir_); in ResetDocumentKeyMapper()
546 KeyMapper<DocumentId>::Create(*filesystem_, base_dir_, kUriMapperMaxSize); in ResetDocumentKeyMapper()
623 libtextclassifier3::Status status = KeyMapper<NamespaceId>::Delete( in ResetNamespaceMapper()
632 KeyMapper<NamespaceId>::Create(*filesystem_, in ResetNamespaceMapper()
643 libtextclassifier3::Status status = KeyMapper<CorpusId>::Delete( in ResetCorpusMapper()
651 KeyMapper<CorpusId>::Create( in ResetCorpusMapper()
/external/icing/icing/schema/
Dsection-manager.h56 const KeyMapper<SchemaTypeId>* schema_type_mapper);
108 const KeyMapper<SchemaTypeId>* schema_type_mapper,
112 const KeyMapper<SchemaTypeId>& schema_type_mapper_;
Dsection-manager_test.cc85 KeyMapper<SchemaTypeId>::Create( in SetUp()
153 std::unique_ptr<KeyMapper<SchemaTypeId>> schema_type_mapper_;
405 std::unique_ptr<KeyMapper<SchemaTypeId>> schema_type_mapper, in TEST_F()
406 KeyMapper<SchemaTypeId>::Create(filesystem_, dir, key_mapper_size)); in TEST_F()
494 std::unique_ptr<KeyMapper<SchemaTypeId>> schema_type_mapper, in TEST_F()
495 KeyMapper<SchemaTypeId>::Create(filesystem_, dir, key_mapper_size)); in TEST_F()
568 std::unique_ptr<KeyMapper<SchemaTypeId>> schema_type_mapper, in TEST_F()
569 KeyMapper<SchemaTypeId>::Create(filesystem_, dir, key_mapper_size)); in TEST_F()
Dsection-manager.cc134 const KeyMapper<SchemaTypeId>& schema_type_mapper) { in BuildSectionMetadataCache()
171 const KeyMapper<SchemaTypeId>* schema_type_mapper, in SectionManager()
178 const KeyMapper<SchemaTypeId>* schema_type_mapper) { in Create()
Dschema-store.cc188 KeyMapper<SchemaTypeId>::Create(filesystem_, in InitializeDerivedFiles()
273 libtextclassifier3::Status status = KeyMapper<SchemaTypeId>::Delete( in ResetSchemaTypeMapper()
282 KeyMapper<SchemaTypeId>::Create(filesystem_, in ResetSchemaTypeMapper()
Dschema-store.h313 std::unique_ptr<KeyMapper<SchemaTypeId>> schema_type_mapper_;