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
- 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} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
1305 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1305 def struct_fields; FIELDS; end |
#validate ⇒ Object
1307 1308 1309 1310 1311 1312 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1307 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 |