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