class Hive2::Thrift::TOpenSessionReq

Constants

CLIENT_PROTOCOL
CONFIGURATION
FIELDS
MECHANISM
PASSWORD
REMOTE_HOST
REMOTE_PRINCIPAL
USERNAME

Public Instance Methods

struct_fields() click to toggle source
    # File lib/thrift/t_c_l_i_service_types.rb
964 def struct_fields; FIELDS; end
validate() click to toggle source
    # File lib/thrift/t_c_l_i_service_types.rb
966 def validate
967   raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field client_protocol is unset!') unless @client_protocol
968   unless @client_protocol.nil? || ::Hive2::Thrift::TProtocolVersion::VALID_VALUES.include?(@client_protocol)
969     raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field client_protocol!')
970   end
971 end