Sha256: 763f9df3bf636f9be55890295a441ed972e413d8ce1619a4faa35ddfc6dba833

Contents?: true

Size: 561 Bytes

Versions: 2

Compression:

Stored size: 561 Bytes

Contents

module Alf
  module Operator::Relational
    class Extend < Alf::Operator()
      include Operator::Relational, Operator::Transform
  
      signature do |s|
        s.argument :ext, TupleComputation, {}
      end
      
      protected 
    
      # (see Operator#_prepare)
      def _prepare
        @handle = TupleHandle.new
      end
  
      # (see Operator::Transform#_tuple2tuple)
      def _tuple2tuple(tuple)
        tuple.merge @ext.evaluate(@handle.set(tuple))
      end
  
    end # class Extend
  end # module Operator::Relational
end # module Alf

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
alf-0.10.1 lib/alf/operator/relational/extend.rb
alf-0.10.0 lib/alf/operator/relational/extend.rb