Class: Impala::Protocol::TUniqueId

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

Constant Summary collapse

HI =
1
LO =
2
FIELDS =
{
HI => { :type => ::Thrift::Types::I64, :name => 'hi' },
LO => { :type => ::Thrift::Types::I64, :name => 'lo' }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



75
# File 'lib/impala/protocol/types_types.rb', line 75

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


77
78
79
80
# File 'lib/impala/protocol/types_types.rb', line 77

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