Sha256: b30ce721e278ac204fed1879c5c985c942a150c6ddbeadd048ba0084cc2b5513

Contents?: true

Size: 479 Bytes

Versions: 6

Compression:

Stored size: 479 Bytes

Contents

module Groonga
  module ExpressionTree
    class UnaryOperation
      attr_reader :operator
      attr_reader :value
      def initialize(operator, value)
        @operator = operator
        @value = value
      end

      def build(expression)
        @value.build(expression)
        expression.append_operator(@operator, 1)
      end

      def estimatable?
        true
      end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rroonga-9.0.7-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/expression_tree/unary_operation.rb
rroonga-9.0.7-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/expression_tree/unary_operation.rb
rroonga-9.0.3-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/expression_tree/unary_operation.rb
rroonga-9.0.3-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/expression_tree/unary_operation.rb
rroonga-9.0.2-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/expression_tree/unary_operation.rb
rroonga-9.0.2-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/expression_tree/unary_operation.rb