Class: Ferret::Search::Spans::SpanOrQuery::SpanQueue
- Inherits:
-
Utils::PriorityQueue
- Object
- Utils::PriorityQueue
- Ferret::Search::Spans::SpanOrQuery::SpanQueue
- Defined in:
- lib/ferret/search/spans/span_or_query.rb
Instance Attribute Summary
Attributes inherited from Utils::PriorityQueue
Instance Method Summary collapse
Methods inherited from Utils::PriorityQueue
#adjust_top, #clear, #initialize, #insert, #pop, #push, #put_heap, #top
Constructor Details
This class inherits a constructor from Ferret::Utils::PriorityQueue
Instance Method Details
#less_than(o1, o2) ⇒ Object
77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/ferret/search/spans/span_or_query.rb', line 77 def less_than(o1, o2) if (o1.doc == o2.doc) if (o1.start == o2.start) return o1.finish < o2.finish else return o1.start < o2.start end else return o1.doc < o2.doc end end |