summaryrefslogtreecommitdiffstats
path: root/storage/mroonga/vendor/groonga/lib/mrb/scripts/expression_tree/variable.rb
blob: e99ad9a83b94e271d4a4243dc8ae6a55e8ae0d32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module Groonga
  module ExpressionTree
    class Variable
      attr_reader :column
      def initialize(column)
        @column = column
      end

      def build(expression)
        expression.append_object(@column, Operator::GET_VALUE, 1)
      end

      def estimate_size(table)
        table.size
      end
    end
  end
end