Sha256: dc82c6fb5f703583da362246868b81a314a8dc351e5897791336bc5944d6108d

Contents?: true

Size: 700 Bytes

Versions: 10

Compression:

Stored size: 700 Bytes

Contents

module Groonga
  class ScanInfo
    module Flags
      ACCESSOR  = 0x01
      PUSH      = 0x02
      POP       = 0x04
      PRE_CONST = 0x08
    end

    def apply(data)
      self.op = data.op
      self.logical_op = data.logical_op
      self.end = data.end
      self.query = data.query
      self.flags = data.flags
      if data.max_interval
        self.max_interval = data.max_interval
      end
      if data.similarity_threshold
        self.similarity_threshold = data.similarity_threshold
      end
      data.args.each do |arg|
        push_arg(arg)
      end
      data.indexes.each do |index, section_id, weight|
        put_index(index, section_id, weight)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rroonga-5.0.0-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-5.0.0-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-4.0.8-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-4.0.8-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-4.0.7-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-4.0.7-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-4.0.6-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-4.0.6-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-4.0.5-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-4.0.5-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb