Sha256: 75a399427529ddf2ae579b92838dbb988e120b18eb2ab9a9d5e5b3eaababfd1a

Contents?: true

Size: 759 Bytes

Versions: 5

Compression:

Stored size: 759 Bytes

Contents

module Alf
  module Algebra
    class Quota
      include Operator
      include Relational
      include Unary
      include Experimental

      signature do |s|
        s.argument :by,            AttrList, []
        s.argument :order,         Ordering, []
        s.argument :summarization, Summarization, {}
      end

      def heading
        @heading ||= operand.heading.merge(summarization.to_heading)
      end

      def keys
        @keys ||= operand.keys
      end

    private

      def _type_check(options)
        no_unknown!(by - operand.attr_list)
        valid_ordering!(order, operand.attr_list)
        no_name_clash!(operand.attr_list, summarization.to_attr_list)
      end

    end # class Quota
  end # module Algebra
end # module Alf

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-core-0.16.3 lib/alf/algebra/operator/quota.rb
alf-core-0.16.2 lib/alf/algebra/operator/quota.rb
alf-core-0.16.1 lib/alf/algebra/operator/quota.rb
alf-core-0.16.0 lib/alf/algebra/operator/quota.rb
alf-core-0.15.0 lib/alf/algebra/operator/quota.rb