Sha256: 3fc0266f899076bc1afadf05f4621fe228d4d48aad3ee9b2811f00ba87b595db
Contents?: true
Size: 1.55 KB
Versions: 2
Compression:
Stored size: 1.55 KB
Contents
module Wukong # Provides methods for supporting the running of Wukong processors # and dataflows entirely locally, without any frameworks like Hadoop # or Storm. # # This module is actually a plugin for Wukong. module Local include Plugin # Configures the given +settings+ object with all settings # specific to Wukong::Local for the given program +name+. # # @param [Configliere::Param] settings the settings to configure # @param [String] program the name of the currently executing program def self.configure settings, program case program when 'wu-local' settings.define :run, description: "Name of the processor or dataflow to use. Defaults to basename of the given path.", flag: 'r' settings.define :tcp_port, description: "Consume TCP requests on the given port instead of lines over STDIN", type: Integer, flag: 't' settings.define :from, description: "Parse input from given data format (json, tsv, &c.) before processing" settings.define :to, description: "Convert input to given data format (json, tsv, &c.) before emitting" settings.define :consumes, description: "Parse input as instances of given model class before processing", type: Class end end # Boots Wukong::Local using the given +settings+ at the given # +root. # # @param [Configliere::Param] settings the settings to use to boot # @param [String] root the root directory to boot in def self.boot(settings, root) end end end require_relative('local/runner')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wukong-3.0.1 | lib/wukong/local.rb |
wukong-3.0.0 | lib/wukong/local.rb |