struct
Memo::Search::Result
- Memo::Search::Result
- Struct
- Value
- Object
Overview
Search result struct
Defined in:
memo/search.crConstructors
Instance Method Summary
- #chunk_id : Int64
-
#hash : Bytes
Generates an
UInt64hash value for this object. - #match_count : Int32
- #offset : Int32 | Nil
- #pair_id : Int64 | Nil
- #parent_id : Int64 | Nil
- #read_count : Int32
- #score : Float64
- #size : Int32
- #source_id : Int64
- #source_type : String
- #text : String | Nil
Constructor Detail
def self.new(chunk_id : Int64, hash : Slice(UInt8), source_type : String, source_id : Int64, pair_id : Int64 | Nil, parent_id : Int64 | Nil, offset : Int32 | Nil, size : Int32, match_count : Int32, read_count : Int32, score : Float64, text : Nil | String = nil)
#
Instance Method Detail
def hash : Bytes
#
Description copied from class Object
Generates an UInt64 hash value for this object.
This method must have the property that a == b implies a.hash == b.hash.
The hash value is used along with == by the Hash class to determine if two objects
reference the same hash key.
Subclasses must not override this method. Instead, they must define hash(hasher),
though usually the macro def_hash can be used to generate this method.