Module: HBase::Scoped::Aggregation::Admin
- Included in:
- Table
- Defined in:
- lib/hbase-jruby/scoped/aggregation.rb
Instance Method Summary collapse
-
#disable_aggregation ⇒ nil
Disables aggregation support for the table (asynchronous).
-
#disable_aggregation!(&block) ⇒ nil
Disables aggregation support for the table (synchronous).
-
#enable_aggregation ⇒ nil
Enables aggregation support for the table (asynchronous).
-
#enable_aggregation!(&block) ⇒ nil
Enables aggregation support for the table (synchronous).
Instance Method Details
#disable_aggregation ⇒ nil
Disables aggregation support for the table (asynchronous)
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)
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_aggregation ⇒ nil
Enables aggregation support for the table (asynchronous)
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)
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 |