| Class | RecordSearch::Search |
| In: |
lib/recordsearch/search.rb
|
| Parent: | Object |
| INDEX_SIZE | = | 4 | TODO is there a sizeof(long) ? |
Returns a new Search object. db is the file having the data used for your searches. db_idx is the index created with RecordSearch#index if it‘s nil, it will construct a filename appending ‘.idx’ to the value db has.
Checks if two records are the same. This method raises an exception; you must implement it in your subclass to compare records according to your needs.
Compares two records read from the file and checks whether a is greater than b. This method raises an exception; you must implement it in your subclass to compare records according to your needs.