Class: Hive2::Thrift::TTypeDesc

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/thrift/t_c_l_i_service_types.rb

Constant Summary collapse

TYPES =
1
FIELDS =
{
  TYPES => {:type => ::Thrift::Types::LIST, :name => 'types', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hive2::Thrift::TTypeEntry}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject


365
# File 'lib/thrift/t_c_l_i_service_types.rb', line 365

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)

367
368
369
# File 'lib/thrift/t_c_l_i_service_types.rb', line 367

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