Class: Xapian::Match
- Inherits:
-
Object
- Object
- Xapian::Match
- Defined in:
- lib/xapian.rb
Overview
Ruby wrapper for a Match, i.e. a Xapian::MSetIterator (Match Set) in C++. it’s no longer an iterator in the Ruby version, but we want to preserve its non-iterative data. (MSetIterator is not dangerous, but it is inconvenient to use from a Ruby idiom, so we wrap it..)
Instance Attribute Summary collapse
-
#collapse_count ⇒ Object
Returns the value of attribute collapse_count.
-
#docid ⇒ Object
Returns the value of attribute docid.
-
#document ⇒ Object
Returns the value of attribute document.
-
#percent ⇒ Object
Returns the value of attribute percent.
-
#rank ⇒ Object
Returns the value of attribute rank.
-
#weight ⇒ Object
Returns the value of attribute weight.
Instance Method Summary collapse
-
#==(other) ⇒ Object
initialize.
-
#initialize(docid, document, rank, weight, collapse_count, percent) ⇒ Match
constructor
A new instance of Match.
Constructor Details
#initialize(docid, document, rank, weight, collapse_count, percent) ⇒ Match
Returns a new instance of Match.
93 94 95 96 97 98 99 100 |
# File 'lib/xapian.rb', line 93 def initialize(docid, document, rank, weight, collapse_count, percent) @docid = docid @document = document @rank = rank @weight = weight @collapse_count = collapse_count @percent = percent end |
Instance Attribute Details
#collapse_count ⇒ Object
Returns the value of attribute collapse_count.
91 92 93 |
# File 'lib/xapian.rb', line 91 def collapse_count @collapse_count end |
#docid ⇒ Object
Returns the value of attribute docid.
91 92 93 |
# File 'lib/xapian.rb', line 91 def docid @docid end |
#document ⇒ Object
Returns the value of attribute document.
91 92 93 |
# File 'lib/xapian.rb', line 91 def document @document end |
#percent ⇒ Object
Returns the value of attribute percent.
91 92 93 |
# File 'lib/xapian.rb', line 91 def percent @percent end |
#rank ⇒ Object
Returns the value of attribute rank.
91 92 93 |
# File 'lib/xapian.rb', line 91 def rank @rank end |
#weight ⇒ Object
Returns the value of attribute weight.
91 92 93 |
# File 'lib/xapian.rb', line 91 def weight @weight end |