Class: Hive2::Thrift::TGetOperationStatusResp
- Inherits:
-
Object
- Object
- Hive2::Thrift::TGetOperationStatusResp
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/thrift/t_c_l_i_service_types.rb
Constant Summary collapse
- STATUS =
1
- OPERATIONSTATE =
2
- SQLSTATE =
3
- ERRORCODE =
4
- ERRORMESSAGE =
5
- FIELDS =
{ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hive2::Thrift::TStatus}, OPERATIONSTATE => {:type => ::Thrift::Types::I32, :name => 'operationState', :optional => true, :enum_class => ::Hive2::Thrift::TOperationState}, SQLSTATE => {:type => ::Thrift::Types::STRING, :name => 'sqlState', :optional => true}, ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :optional => true}, ERRORMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'errorMessage', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
1482 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1482 def struct_fields; FIELDS; end |
#validate ⇒ Object
1484 1485 1486 1487 1488 1489 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1484 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status unless @operationState.nil? || ::Hive2::Thrift::TOperationState::VALID_VALUES.include?(@operationState) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field operationState!') end end |