class Impala::Protocol::Hive::TPrimitiveTypeEntry

Constants

FIELDS
TYPE

Public Instance Methods

struct_fields() click to toggle source
# File lib/impala/protocol/cli_service_types.rb, line 146
def struct_fields; FIELDS; end
validate() click to toggle source
# File lib/impala/protocol/cli_service_types.rb, line 148
def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field type is unset!') unless @type
  unless @type.nil? || ::Impala::Protocol::Hive::TTypeId::VALID_VALUES.include?(@type)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
  end
end