Class: Impala::Protocol::TCaseExpr
- Inherits:
-
Object
- Object
- Impala::Protocol::TCaseExpr
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/exprs_types.rb
Constant Summary collapse
- HAS_CASE_EXPR =
1
- HAS_ELSE_EXPR =
2
- FIELDS =
{ HAS_CASE_EXPR => { :type => ::Thrift::Types::BOOL, :name => 'has_case_expr' }, HAS_ELSE_EXPR => { :type => ::Thrift::Types::BOOL, :name => 'has_else_expr' } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
103 |
# File 'lib/impala/protocol/exprs_types.rb', line 103 def struct_fields; FIELDS; end |
#validate ⇒ Object
105 106 107 108 |
# File 'lib/impala/protocol/exprs_types.rb', line 105 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field has_case_expr is unset!') if @has_case_expr.nil? raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field has_else_expr is unset!') if @has_else_expr.nil? end |