Class: Impala::Protocol::TAggregationNode

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/impala/protocol/plan_nodes_types.rb

Constant Summary collapse

GROUPING_EXPRS =
1
AGGREGATE_EXPRS =
2
AGG_TUPLE_ID =
3
NEED_FINALIZE =
4
FIELDS =
{
GROUPING_EXPRS => { :type => ::Thrift::Types::LIST, :name => 'grouping_exprs', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TExpr }, :optional => true },
AGGREGATE_EXPRS => { :type => ::Thrift::Types::LIST, :name => 'aggregate_exprs', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TExpr } },
AGG_TUPLE_ID => { :type => ::Thrift::Types::I32, :name => 'agg_tuple_id' },
NEED_FINALIZE => { :type => ::Thrift::Types::BOOL, :name => 'need_finalize' }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



221
# File 'lib/impala/protocol/plan_nodes_types.rb', line 221

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


223
224
225
226
227
# File 'lib/impala/protocol/plan_nodes_types.rb', line 223

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field aggregate_exprs is unset!') unless @aggregate_exprs
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field agg_tuple_id is unset!') unless @agg_tuple_id
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field need_finalize is unset!') if @need_finalize.nil?
end