aboutsummaryrefslogtreecommitdiff
path: root/icing/index/numeric/numeric-index.h
diff options
context:
space:
mode:
authorTim Barron <tjbarron@google.com>2023-03-14 09:57:47 -0700
committerTim Barron <tjbarron@google.com>2023-03-14 09:57:47 -0700
commitc1e7edff54723138756063ee4b7948c1ee91277e (patch)
treeb2a55e543a6c9396631feaab459bfd671a8bc400 /icing/index/numeric/numeric-index.h
parent140aaee3e7b269f02599310e42d6172090ce02d2 (diff)
parentd5c81ae0c41ae9c1aefb3601f3836570b9f686c7 (diff)
downloadicing-c1e7edff54723138756063ee4b7948c1ee91277e.tar.gz
Merge remote-tracking branch 'goog/upstream-master' into androidx-platform-dev
* goog/upstream-master: Update Icing from upstream. Update Icing from upstream. Descriptions: ======================================================================== Cache an instance of UBreakIterator to reduce unnecessary creations. ======================================================================== Cap number of individual IntegerIndexStorages that IntegerIndex creates. ======================================================================== Change error in trimRightMostNode from Unimplemented to InvalidArgument. ======================================================================== Add detection for new language features of List Filters Query Language. ======================================================================== Add option to control threshold to rebuild index during optimize by flag ======================================================================== Add option to control use of namespace id to build urimapper by flag. ======================================================================== Enforce schema validation for joinable config. ======================================================================== Adopt bucket splitting for IntegerIndexStorage. ======================================================================== Implement bucket splitting function. ======================================================================== Add Icing initialization unit tests for QualifiedIdTypeJoinableIndex. ======================================================================== Add Icing schema change unit tests for QualifiedIdTypeJoinableIndex. ======================================================================== Add Icing optimization unit tests for QualifiedIdTypeJoinableIndex. ======================================================================== Integrate QualifiedIdTypeJoinableIndex into IcingSearchEngine. ======================================================================== Implement QualifiedIdJoinablePropertyIndexingHandler. ======================================================================== Change QualifiedIdTypeJoinableIndex to store raw qualified id string. ======================================================================== Pass info about unnormalized query terms through lexer/parser/visitor. ======================================================================== Integrate Advanced Query w/ Suggest, make ADVANCED_QUERY default parser. ====================================================================== Bug: 208654892 Bug: 263890397 Bug: 259743562 Bug: 272145329 Bug: 227356108 Change-Id: I44de5853bb6c55b42800ae34d8071016be6c87cd
Diffstat (limited to 'icing/index/numeric/numeric-index.h')
-rw-r--r--icing/index/numeric/numeric-index.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/icing/index/numeric/numeric-index.h b/icing/index/numeric/numeric-index.h
index 347260a..28640ca 100644
--- a/icing/index/numeric/numeric-index.h
+++ b/icing/index/numeric/numeric-index.h
@@ -23,8 +23,10 @@
#include "icing/text_classifier/lib3/utils/base/statusor.h"
#include "icing/file/persistent-storage.h"
#include "icing/index/iterator/doc-hit-info-iterator.h"
+#include "icing/schema/schema-store.h"
#include "icing/schema/section.h"
#include "icing/store/document-id.h"
+#include "icing/store/document-store.h"
namespace icing {
namespace lib {
@@ -126,8 +128,9 @@ class NumericIndex : public PersistentStorage {
// - INVALID_ARGUMENT_ERROR if key_lower > key_upper
// - Any other errors, depending on the actual implementation
virtual libtextclassifier3::StatusOr<std::unique_ptr<DocHitInfoIterator>>
- GetIterator(std::string_view property_path, T key_lower,
- T key_upper) const = 0;
+ GetIterator(std::string_view property_path, T key_lower, T key_upper,
+ const DocumentStore& document_store,
+ const SchemaStore& schema_store) const = 0;
// Reduces internal file sizes by reclaiming space and ids of deleted
// documents. Numeric index will convert all data (hits) to the new document
@@ -162,6 +165,10 @@ class NumericIndex : public PersistentStorage {
// last_added_document_id() or last_added_document_id() is invalid.
virtual void set_last_added_document_id(DocumentId document_id) = 0;
+ // The number of individual indices that the NumericIndex has created to
+ // search over all indexed properties thus far.
+ virtual int num_property_indices() const = 0;
+
protected:
explicit NumericIndex(const Filesystem& filesystem,
std::string&& working_path,