Class: Hive2::Thrift::TSessionHandle

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

SESSIONID =
1
FIELDS =
{
  SESSIONID => {:type => ::Thrift::Types::STRUCT, :name => 'sessionId', :class => ::Hive2::Thrift::THandleIdentifier}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject


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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)

909
910
911
# File 'lib/thrift/t_c_l_i_service_types.rb', line 909

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