Class: Pal::Operation::DefaultProjectionImpl

Inherits:
Projection
  • Object
show all
Defined in:
lib/pal/operation/projection.rb

Instance Attribute Summary

Attributes inherited from Projection

#property, #type

Instance Method Summary collapse

Methods inherited from Projection

#process, #processable?

Methods included from Log

#log_debug, #log_error, #log_info, #log_warn

Constructor Details

#initialize(property) ⇒ DefaultProjectionImpl

Returns a new instance of DefaultProjectionImpl.

Parameters:

  • property (String)


198
199
200
# File 'lib/pal/operation/projection.rb', line 198

def initialize(property)
  super("default", property)
end

Instance Method Details

#_process_impl(_group_by_rules, groups, column_headers) ⇒ Array

Returns rows, column_headers.

Parameters:

  • _group_by_rules (Array<String>)
  • groups (Hash)
  • column_headers (Hash)

Returns:

  • (Array)

    rows, column_headers



206
207
208
# File 'lib/pal/operation/projection.rb', line 206

def _process_impl(_group_by_rules, groups, column_headers)
  [groups.values, column_headers]
end