Class: Impala::Protocol::TReportExecStatusParams
- Inherits:
-
Object
- Object
- Impala::Protocol::TReportExecStatusParams
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/impala_internal_service_types.rb
Constant Summary collapse
- PROTOCOL_VERSION =
1
- QUERY_ID =
2
- BACKEND_NUM =
3
- FRAGMENT_INSTANCE_ID =
4
- STATUS =
5
- DONE =
6
- PROFILE =
7
- INSERT_EXEC_STATUS =
8
- ERROR_LOG =
9
- FIELDS =
{ PROTOCOL_VERSION => { :type => ::Thrift::Types::I32, :name => 'protocol_version', :enum_class => Impala::Protocol::ImpalaInternalServiceVersion }, QUERY_ID => { :type => ::Thrift::Types::STRUCT, :name => 'query_id', :class => Impala::Protocol::TUniqueId, :optional => true }, BACKEND_NUM => { :type => ::Thrift::Types::I32, :name => 'backend_num', :optional => true }, FRAGMENT_INSTANCE_ID => { :type => ::Thrift::Types::STRUCT, :name => 'fragment_instance_id', :class => Impala::Protocol::TUniqueId, :optional => true }, STATUS => { :type => ::Thrift::Types::STRUCT, :name => 'status', :class => Impala::Protocol::TStatus, :optional => true }, DONE => { :type => ::Thrift::Types::BOOL, :name => 'done', :optional => true }, PROFILE => { :type => ::Thrift::Types::STRUCT, :name => 'profile', :class => Impala::Protocol::TRuntimeProfileTree, :optional => true }, INSERT_EXEC_STATUS => { :type => ::Thrift::Types::STRUCT, :name => 'insert_exec_status', :class => Impala::Protocol::TInsertExecStatus, :optional => true }, ERROR_LOG => { :type => ::Thrift::Types::LIST, :name => 'error_log', :element => { :type => ::Thrift::Types::STRING }, :optional => true } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
251 |
# File 'lib/impala/protocol/impala_internal_service_types.rb', line 251 def struct_fields; FIELDS; end |
#validate ⇒ Object
253 254 255 256 257 258 |
# File 'lib/impala/protocol/impala_internal_service_types.rb', line 253 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field protocol_version is unset!') unless @protocol_version unless @protocol_version.nil? || Impala::Protocol::ImpalaInternalServiceVersion::VALID_VALUES.include?(@protocol_version) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field protocol_version!') end end |