Class: Impala::Protocol::Hive::THandleIdentifier

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/impala/protocol/cli_service_types.rb

Constant Summary collapse

GUID =
1
SECRET =
2
FIELDS =
{
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :binary => true},
  SECRET => {:type => ::Thrift::Types::STRING, :name => 'secret', :binary => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



665
# File 'lib/impala/protocol/cli_service_types.rb', line 665

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


667
668
669
670
# File 'lib/impala/protocol/cli_service_types.rb', line 667

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