Class: Impala::Protocol::Hive::TColumnDesc
- Inherits:
-
Object
- Object
- Impala::Protocol::Hive::TColumnDesc
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/cli_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 => ::Impala::Protocol::Hive::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_fields ⇒ Object
330 |
# File 'lib/impala/protocol/cli_service_types.rb', line 330 def struct_fields; FIELDS; end |
#validate ⇒ Object
332 333 334 335 336 |
# File 'lib/impala/protocol/cli_service_types.rb', line 332 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 |