Module: HBase::Scoped::Aggregation

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

Overview

Author:

Defined Under Namespace

Modules: Admin

Instance Method Summary collapse

Instance Method Details

#aggregate(op, type = :fixnum) ⇒ Object

Performs aggregation with coprocessor

Parameters:

  • op (Symbol)

    Aggregation type: :sum, :min, :max, :avg, :std, :row_count

  • type (Symbol, org.apache.hadoop.hbase.coprocessor.ColumnInterpreter) (defaults to: :fixnum)

    Column type (only :fixnum is supported as of now) or ColumnInterpreter object used to decode the value



26
27
28
# File 'lib/hbase-jruby/scoped/aggregation.rb', line 26

def aggregate op, type = :fixnum
  aggregation_impl op, type
end