Sha256: d789923c4f035951e0ba8f3d1f767902307ea56a4cc9078ded09cd5705bd43af
Contents?: true
Size: 494 Bytes
Versions: 46
Compression:
Stored size: 494 Bytes
Contents
module Picky module Backends # Naive implementation of a file-based index. # In-Memory Hash with length, offset: # { :bla => [20, 312] } # That map to positions the File, encoded in JSON: # ...[1,2,3,21,7,4,13,15]... # class File < Backend def create_weights bundle Memory::JSON.new bundle.index_path(:weights) end def create_similarity bundle json bundle.index_path(:similarity) end end end end
Version data entries
46 entries across 46 versions & 1 rubygems