Class: Mondrian::OLAP::CacheControl

Inherits:
Object
  • Object
show all
Defined in:
lib/mondrian/olap/cube.rb

Instance Method Summary collapse

Constructor Details

#initialize(connection, cube) ⇒ CacheControl

Returns a new instance of CacheControl.



465
466
467
468
469
470
# File 'lib/mondrian/olap/cube.rb', line 465

def initialize(connection, cube)
  @connection = connection
  @cube = cube
  @mondrian_cube = @cube.raw_cube.unwrap(Java::MondrianOlap::Cube.java_class)
  @cache_control = @connection.raw_cache_control
end

Instance Method Details

#flush_region_cache_with_full_names(*full_names) ⇒ Object



477
478
479
480
# File 'lib/mondrian/olap/cube.rb', line 477

def flush_region_cache_with_full_names(*full_names)
  members = full_names.map { |name| @cube.member(*name).mondrian_member }
  flush(members)
end

#flush_region_cache_with_segments(*segment_names) ⇒ Object



472
473
474
475
# File 'lib/mondrian/olap/cube.rb', line 472

def flush_region_cache_with_segments(*segment_names)
  members = segment_names.map { |name| @cube.member_by_segments(*name).mondrian_member }
  flush(members)
end