Class: Hive2::Thrift::TTableSchema

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

COLUMNS =
1
FIELDS =
{
  COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hive2::Thrift::TColumnDesc}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


409
410
411
# File 'lib/thrift/t_c_l_i_service_types.rb', line 409

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