Sha256: 19dff7ef626185970e66726dbd95b107a7c0435bf47580384fdbfd27db4b9eab

Contents?: true

Size: 883 Bytes

Versions: 3

Compression:

Stored size: 883 Bytes

Contents

# == DiagnosticOperators
# describe
# dump
# explain
# illustrate
# == UDFStatements
# define
# register

module Wukong
  module AndPig
    class PigVar
      # DESCRIBE pig imperative
      def describe
        self.class.describe self
      end
      def self.describe rel
        emit %Q{ -- PREDICTED: #{rel.klass.typify} }
        simple_declaration :describe, rel.relationize
        rel
      end

      # DUMP pig imperative
      def dump()       simple_operation :dump        end

      # EXPLAIN pig imperative
      def explain()    simple_operation :explain     end

      # ILLUSTRATE pig imperative
      def illustrate() simple_operation :illustrate  end


      def self.define pig_alias, *args
        emit_imperative :DEFINE, pig_alias, args
      end

      def self.register path_to_jar
        emit_imperative :REGISTER, path_to_jar
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
mrflip-wukong-0.1.0 lib/wukong/and_pig/operators/meta.rb
wukong-0.1.4 lib/wukong/and_pig/operators/meta.rb
wukong-0.1.1 lib/wukong/and_pig/operators/meta.rb