Sha256: d36339369a03fc920756778313f4687208d9dab027cecb0ce57032d022e12f02

Contents?: true

Size: 615 Bytes

Versions: 5

Compression:

Stored size: 615 Bytes

Contents

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

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

        # (see Operator#compile)
        def compile
          op = Engine::Sort.new(operand, @by.to_ordering + @order)
          op = Engine::Quota::Cesure.new(op, @by, summarization)
          op
        end

      end # class Quota
    end # module Relational
  end # module Operator
end # module Alf

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-0.12.2 lib/alf/operator/relational/quota.rb
alf-0.12.1 lib/alf/operator/relational/quota.rb
alf-0.12.0 lib/alf/operator/relational/quota.rb
alf-0.11.1 lib/alf/operator/relational/quota.rb
alf-0.11.0 lib/alf/operator/relational/quota.rb