Class: Groonga::IndexColumn

Inherits:
Column show all
Defined in:
ext/groonga/rb-grn-index-column.c,
lib/groonga/index-column.rb

Overview

転置索引エントリを格納するカラム。このカラムを利用するこ とにより高速な全文検索を実現できる。

テーブルにGroonga::IndexColumnを定義する方法は Table#define_index_column を参照。

Instance Method Summary collapse

Methods inherited from Column

#indexes

Instance Method Details

#disk_usageObject



28
29
30
31
32
33
34
35
36
# File 'lib/groonga/index-column.rb', line 28

def disk_usage
  return 0 if path.nil?

  usage = super
  chunk_path = "#{path}.c"
  measurer = StatisticMeasurer.new
  usage += measurer.measure_disk_usage(chunk_path)
  usage
end

#dump(output_directory) ⇒ Object



23
24
25
26
# File 'lib/groonga/index-column.rb', line 23

def dump(output_directory)
  dumper = IndexColumnDumper.new(self, output_directory)
  dumper.dump
end