class Hive2::Thrift::TPrimitiveTypeEntry

Constants

FIELDS
TYPE
TYPEQUALIFIERS

Public Instance Methods

struct_fields() click to toggle source
# File lib/thrift/t_c_l_i_service_types.rb, line 204
def struct_fields; FIELDS; end
validate() click to toggle source
# File lib/thrift/t_c_l_i_service_types.rb, line 206
def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field type is unset!') unless @type
  unless @type.nil? || ::Hive2::Thrift::TTypeId::VALID_VALUES.include?(@type)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
  end
end