Class: Impala::Protocol::TAggregateFunction

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

Constant Summary collapse

INTERMEDIATE_TYPE =
1
UPDATE_FN_SYMBOL =
2
INIT_FN_SYMBOL =
3
SERIALIZE_FN_SYMBOL =
4
MERGE_FN_SYMBOL =
5
FINALIZE_FN_SYMBOL =
6
GET_VALUE_FN_SYMBOL =
8
REMOVE_FN_SYMBOL =
9
IGNORES_DISTINCT =
7
FIELDS =
{
  INTERMEDIATE_TYPE => {:type => ::Thrift::Types::STRUCT, :name => 'intermediate_type', :class => ::Impala::Protocol::TColumnType},
  UPDATE_FN_SYMBOL => {:type => ::Thrift::Types::STRING, :name => 'update_fn_symbol'},
  INIT_FN_SYMBOL => {:type => ::Thrift::Types::STRING, :name => 'init_fn_symbol'},
  SERIALIZE_FN_SYMBOL => {:type => ::Thrift::Types::STRING, :name => 'serialize_fn_symbol', :optional => true},
  MERGE_FN_SYMBOL => {:type => ::Thrift::Types::STRING, :name => 'merge_fn_symbol', :optional => true},
  FINALIZE_FN_SYMBOL => {:type => ::Thrift::Types::STRING, :name => 'finalize_fn_symbol', :optional => true},
  GET_VALUE_FN_SYMBOL => {:type => ::Thrift::Types::STRING, :name => 'get_value_fn_symbol', :optional => true},
  REMOVE_FN_SYMBOL => {:type => ::Thrift::Types::STRING, :name => 'remove_fn_symbol', :optional => true},
  IGNORES_DISTINCT => {:type => ::Thrift::Types::BOOL, :name => 'ignores_distinct', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



276
# File 'lib/impala/protocol/types_types.rb', line 276

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


278
279
280
281
282
# File 'lib/impala/protocol/types_types.rb', line 278

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field intermediate_type is unset!') unless @intermediate_type
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field update_fn_symbol is unset!') unless @update_fn_symbol
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field init_fn_symbol is unset!') unless @init_fn_symbol
end