Sha256: f97d6d149302e8b9d13b60f01b0ec49f37f644fd412b6e9fbd41f47fa979f88f

Contents?: true

Size: 925 Bytes

Versions: 16

Compression:

Stored size: 925 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.search_indexes.each do |search_index|
        put_index(search_index.index_column,
                  search_index.section_id,
                  search_index.weight,
                  search_index.scorer,
                  search_index.scorer_args_expr,
                  search_index.scorer_args_expr_offset || 0)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rroonga-5.1.1-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-5.1.1-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-5.0.9-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-5.0.9-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-5.0.8-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-5.0.8-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-5.0.5-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-5.0.5-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-5.0.4-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-5.0.4-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-5.0.3-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-5.0.3-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-5.0.2-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-5.0.2-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-5.0.1-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb
rroonga-5.0.1-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/scan_info.rb