Class: Hive2::Thrift::TCloseSessionReq

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/thrift/t_c_l_i_service_types.rb

Constant Summary collapse

SESSIONHANDLE =
1
FIELDS =
{
  SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hive2::Thrift::TSessionHandle}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject


1005
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1005

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)

1007
1008
1009
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1007

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