Class: Impala::Protocol::TPlanFragmentExecParams
- Inherits:
-
Object
- Object
- Impala::Protocol::TPlanFragmentExecParams
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/impala_internal_service_types.rb
Constant Summary collapse
- QUERY_ID =
1
- FRAGMENT_INSTANCE_ID =
2
- PER_NODE_SCAN_RANGES =
3
- PER_EXCH_NUM_SENDERS =
4
- DESTINATIONS =
5
- FIELDS =
{ QUERY_ID => { :type => ::Thrift::Types::STRUCT, :name => 'query_id', :class => Impala::Protocol::TUniqueId }, FRAGMENT_INSTANCE_ID => { :type => ::Thrift::Types::STRUCT, :name => 'fragment_instance_id', :class => Impala::Protocol::TUniqueId }, PER_NODE_SCAN_RANGES => { :type => ::Thrift::Types::MAP, :name => 'per_node_scan_ranges', :key => { :type => ::Thrift::Types::I32 }, :value => { :type => ::Thrift::Types::LIST, :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TScanRangeParams } } }, PER_EXCH_NUM_SENDERS => { :type => ::Thrift::Types::MAP, :name => 'per_exch_num_senders', :key => { :type => ::Thrift::Types::I32 }, :value => { :type => ::Thrift::Types::I32 } }, DESTINATIONS => { :type => ::Thrift::Types::LIST, :name => 'destinations', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TPlanFragmentDestination } } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
129 |
# File 'lib/impala/protocol/impala_internal_service_types.rb', line 129 def struct_fields; FIELDS; end |
#validate ⇒ Object
131 132 133 134 135 136 |
# File 'lib/impala/protocol/impala_internal_service_types.rb', line 131 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field query_id is unset!') unless @query_id raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fragment_instance_id is unset!') unless @fragment_instance_id raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field per_node_scan_ranges is unset!') unless @per_node_scan_ranges raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field per_exch_num_senders is unset!') unless @per_exch_num_senders end |