Class: Impala::Protocol::THashJoinNode
- Inherits:
-
Object
- Object
- Impala::Protocol::THashJoinNode
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/plan_nodes_types.rb
Constant Summary collapse
- JOIN_OP =
1
- EQ_JOIN_CONJUNCTS =
2
- OTHER_JOIN_CONJUNCTS =
3
- FIELDS =
{ JOIN_OP => { :type => ::Thrift::Types::I32, :name => 'join_op', :enum_class => Impala::Protocol::TJoinOp }, EQ_JOIN_CONJUNCTS => { :type => ::Thrift::Types::LIST, :name => 'eq_join_conjuncts', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TEqJoinCondition } }, OTHER_JOIN_CONJUNCTS => { :type => ::Thrift::Types::LIST, :name => 'other_join_conjuncts', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TExpr }, :optional => true } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
194 |
# File 'lib/impala/protocol/plan_nodes_types.rb', line 194 def struct_fields; FIELDS; end |
#validate ⇒ Object
196 197 198 199 200 201 202 |
# File 'lib/impala/protocol/plan_nodes_types.rb', line 196 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field join_op is unset!') unless @join_op raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field eq_join_conjuncts is unset!') unless @eq_join_conjuncts unless @join_op.nil? || Impala::Protocol::TJoinOp::VALID_VALUES.include?(@join_op) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field join_op!') end end |