diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-04-17 09:33:53 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-06-22 12:47:00 +0000 |
commit | b56785323aaf66f1db473db130c2126ffdd76b9b (patch) | |
tree | 5b10903d9d500e2fe37cdfd8a5e078b4928c2753 /streamingvisitors/src/vespa/searchvisitor/indexenvironment.h | |
parent | f323d7eadd378266f2523cf0771aa00abbcd8b0a (diff) |
Add a rank feature that will use the distribution key to provide a globally unique number.
unique = (docId << 16 | distributionKey)
Diffstat (limited to 'streamingvisitors/src/vespa/searchvisitor/indexenvironment.h')
-rw-r--r-- | streamingvisitors/src/vespa/searchvisitor/indexenvironment.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/streamingvisitors/src/vespa/searchvisitor/indexenvironment.h b/streamingvisitors/src/vespa/searchvisitor/indexenvironment.h index 5d684c4fea4..ac6836b08c5 100644 --- a/streamingvisitors/src/vespa/searchvisitor/indexenvironment.h +++ b/streamingvisitors/src/vespa/searchvisitor/indexenvironment.h @@ -81,6 +81,9 @@ public: const std::set<vespalib::string> & getHintedDumpAttributes() const { return _dumpAttributes; } + //TODO Wire in proper distribution key + uint32_t getDistributionKey() const override { return 0; } + }; } // namespace streaming |