Class: Hive2::Thrift::TColumnDesc

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

COLUMNNAME =
1
TYPEDESC =
2
POSITION =
3
COMMENT =
4
FIELDS =
{
  COLUMNNAME => {:type => ::Thrift::Types::STRING, :name => 'columnName'},
  TYPEDESC => {:type => ::Thrift::Types::STRUCT, :name => 'typeDesc', :class => ::Hive2::Thrift::TTypeDesc},
  POSITION => {:type => ::Thrift::Types::I32, :name => 'position'},
  COMMENT => {:type => ::Thrift::Types::STRING, :name => 'comment', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject


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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)

390
391
392
393
394
# File 'lib/thrift/t_c_l_i_service_types.rb', line 390

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