Class: Hexspace::TColumnDesc

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/hexspace/tcli_service_types.rb,
lib/hexspace/tcli_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 => ::Hexspace::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



558
# File 'lib/hexspace/tcli_service_types.rb', line 558

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


560
561
562
563
564
# File 'lib/hexspace/tcli_service_types.rb', line 560

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