Module: HBase::Scoped::Aggregation::Admin

Included in:
Table
Defined in:
lib/hbase-jruby/scoped/aggregation.rb

Instance Method Summary collapse

Instance Method Details

#disable_aggregationnil

Disables aggregation support for the table (asynchronous)

Returns:

  • (nil)


23
24
25
26
# File 'lib/hbase-jruby/scoped/aggregation.rb', line 23

def disable_aggregation
  cpc = 'org.apache.hadoop.hbase.coprocessor.AggregateImplementation'
  remove_coprocessor cpc if has_coprocessor?(cpc)
end

#disable_aggregation!(&block) ⇒ nil

Disables aggregation support for the table (synchronous)

Returns:

  • (nil)


30
31
32
33
# File 'lib/hbase-jruby/scoped/aggregation.rb', line 30

def disable_aggregation! &block
  cpc = 'org.apache.hadoop.hbase.coprocessor.AggregateImplementation'
  remove_coprocessor! cpc, &block if has_coprocessor?(cpc)
end

#enable_aggregationnil

Enables aggregation support for the table (asynchronous)

Returns:

  • (nil)


9
10
11
12
# File 'lib/hbase-jruby/scoped/aggregation.rb', line 9

def enable_aggregation
  cpc = 'org.apache.hadoop.hbase.coprocessor.AggregateImplementation'
  add_coprocessor cpc unless has_coprocessor?(cpc)
end

#enable_aggregation!(&block) ⇒ nil

Enables aggregation support for the table (synchronous)

Returns:

  • (nil)


16
17
18
19
# File 'lib/hbase-jruby/scoped/aggregation.rb', line 16

def enable_aggregation! &block
  cpc = 'org.apache.hadoop.hbase.coprocessor.AggregateImplementation'
  add_coprocessor! cpc, &block unless has_coprocessor?(cpc)
end