aboutsummaryrefslogtreecommitdiff
path: root/icing/index/hit/hit.h
diff options
context:
space:
mode:
Diffstat (limited to 'icing/index/hit/hit.h')
-rw-r--r--icing/index/hit/hit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/icing/index/hit/hit.h b/icing/index/hit/hit.h
index f8cbd78..35c9238 100644
--- a/icing/index/hit/hit.h
+++ b/icing/index/hit/hit.h
@@ -15,6 +15,7 @@
#ifndef ICING_INDEX_HIT_HIT_H_
#define ICING_INDEX_HIT_HIT_H_
+#include <array>
#include <cstdint>
#include <limits>
@@ -54,6 +55,7 @@ class Hit {
// The Term Frequency of a Hit.
using TermFrequency = uint8_t;
+ using TermFrequencyArray = std::array<Hit::TermFrequency, kTotalNumSections>;
// Max TermFrequency is 255.
static constexpr TermFrequency kMaxTermFrequency =
std::numeric_limits<TermFrequency>::max();