@@ -55,7 +55,7 @@ using Disjunction =
55
55
irs::disjunction_iterator<irs::doc_iterator::ptr, irs::NoopAggregator>;
56
56
57
57
// Return a filter matching all documents with a given geo field
58
- irs::filter::prepared::ptr match_all (irs::index_reader const & index,
58
+ irs::filter::prepared::ptr match_all (irs::IndexReader const & index,
59
59
irs::Order const & order,
60
60
std::string_view field,
61
61
irs::score_t boost) {
@@ -80,7 +80,7 @@ class GeoIterator final : public irs::doc_iterator {
80
80
81
81
public:
82
82
GeoIterator (doc_iterator::ptr&& approx, doc_iterator::ptr&& columnIt,
83
- Parser& parser, Acceptor& acceptor, irs::sub_reader const & reader,
83
+ Parser& parser, Acceptor& acceptor, irs::SubReader const & reader,
84
84
irs::term_reader const & field, irs::byte_type const * query_stats,
85
85
irs::Order const & order, irs::score_t boost)
86
86
: _approx{std::move (approx)},
@@ -172,7 +172,7 @@ class GeoIterator final : public irs::doc_iterator {
172
172
template <typename Parser, typename Acceptor>
173
173
irs::doc_iterator::ptr makeIterator (
174
174
typename Disjunction::doc_iterators_t && itrs,
175
- irs::doc_iterator::ptr&& columnIt, irs::sub_reader const & reader,
175
+ irs::doc_iterator::ptr&& columnIt, irs::SubReader const & reader,
176
176
irs::term_reader const & field, irs::byte_type const * query_stats,
177
177
irs::Order const & order, irs::score_t boost, Parser& parser,
178
178
Acceptor& acceptor) {
@@ -198,7 +198,7 @@ struct GeoState {
198
198
std::vector<irs::seek_cookie::ptr> states;
199
199
};
200
200
201
- using GeoStates = irs::states_cache <GeoState>;
201
+ using GeoStates = irs::StatesCache <GeoState>;
202
202
203
203
// Compiled GeoFilter
204
204
template <typename Parser, typename Acceptor>
@@ -247,7 +247,7 @@ class GeoQuery final : public irs::filter::prepared {
247
247
_parser, _acceptor);
248
248
}
249
249
250
- void visit (irs::sub_reader const &, irs::PreparedStateVisitor&,
250
+ void visit (irs::SubReader const &, irs::PreparedStateVisitor&,
251
251
irs::score_t ) const final {
252
252
// NOOP
253
253
}
@@ -350,7 +350,7 @@ irs::filter::prepared::ptr makeQuery(GeoStates&& states, irs::bstring&& stats,
350
350
}
351
351
352
352
std::pair<GeoStates, irs::bstring> prepareStates (
353
- irs::index_reader const & index, irs::Order const & order,
353
+ irs::IndexReader const & index, irs::Order const & order,
354
354
std::span<const std::string> geoTerms, std::string_view field) {
355
355
TRI_ASSERT (!geoTerms.empty ());
356
356
@@ -360,7 +360,7 @@ std::pair<GeoStates, irs::bstring> prepareStates(
360
360
sortedTerms.end ());
361
361
362
362
std::pair<GeoStates, irs::bstring> res{
363
- std::piecewise_construct, std::forward_as_tuple (index ),
363
+ std::piecewise_construct, std::forward_as_tuple (index . size () ),
364
364
std::forward_as_tuple (order.stats_size (), 0 )};
365
365
366
366
auto const size = sortedTerms.size ();
@@ -422,7 +422,7 @@ std::pair<S2Cap, bool> getBound(irs::BoundType type, S2Point origin,
422
422
}
423
423
424
424
irs::filter::prepared::ptr prepareOpenInterval (
425
- irs::index_reader const & index, irs::Order const & order, irs::score_t boost,
425
+ irs::IndexReader const & index, irs::Order const & order, irs::score_t boost,
426
426
std::string_view field, GeoDistanceFilterOptions const & options,
427
427
bool greater) {
428
428
auto const & range = options.range ;
@@ -527,7 +527,7 @@ irs::filter::prepared::ptr prepareOpenInterval(
527
527
}
528
528
529
529
irs::filter::prepared::ptr prepareInterval (
530
- irs::index_reader const & index, irs::Order const & order, irs::score_t boost,
530
+ irs::IndexReader const & index, irs::Order const & order, irs::score_t boost,
531
531
std::string_view field, GeoDistanceFilterOptions const & options) {
532
532
auto const & range = options.range ;
533
533
TRI_ASSERT (irs::BoundType::UNBOUNDED != range.min_type );
@@ -626,7 +626,7 @@ irs::filter::prepared::ptr prepareInterval(
626
626
} // namespace
627
627
628
628
irs::filter::prepared::ptr GeoFilter::prepare (
629
- irs::index_reader const & index, irs::Order const & order, irs::score_t boost,
629
+ irs::IndexReader const & index, irs::Order const & order, irs::score_t boost,
630
630
irs::attribute_provider const * /* ctx*/ ) const {
631
631
auto & shape = const_cast <geo::ShapeContainer&>(options ().shape );
632
632
if (shape.empty ()) {
@@ -690,7 +690,7 @@ irs::filter::prepared::ptr GeoFilter::prepare(
690
690
}
691
691
692
692
irs::filter::prepared::ptr GeoDistanceFilter::prepare (
693
- irs::index_reader const & index, irs::Order const & order, irs::score_t boost,
693
+ irs::IndexReader const & index, irs::Order const & order, irs::score_t boost,
694
694
irs::attribute_provider const * /* ctx*/ ) const {
695
695
auto const & options = this ->options ();
696
696
auto const & range = options.range ;
0 commit comments