Class: Hadupils::Extensions::Flat

Inherits:
Base
  • Object
show all
Defined in:
lib/hadupils/extensions.rb

Direct Known Subclasses

FlatArchivePath

Instance Attribute Summary

Attributes inherited from Base

#assets, #path

Instance Method Summary collapse

Methods inherited from Base

gather_assets, #hadoop_confs, #initialize, #merge_assets

Constructor Details

This class inherits a constructor from Hadupils::Extensions::Base

Instance Method Details

#assemble_hivercObject



276
277
278
279
280
281
282
283
284
# File 'lib/hadupils/extensions.rb', line 276

def assemble_hiverc
  assets = default_hiverc_items
  if @hiverc_block
    assets = @hiverc_block.call(assets.dup)
  end
  hiverc = Hadupils::Extensions::HiveRC::Dynamic.new
  hiverc.write(assets)
  hiverc
end

#default_hiverc_itemsObject



272
273
274
# File 'lib/hadupils/extensions.rb', line 272

def default_hiverc_items
  @assets.dup
end

#hivercsObject



267
268
269
270
# File 'lib/hadupils/extensions.rb', line 267

def hivercs
  @hiverc ||= assemble_hiverc
  [@hiverc]
end