Class: Impala::Protocol::TExecPlanFragmentParams
- Inherits:
-
Object
- Object
- Impala::Protocol::TExecPlanFragmentParams
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/impala_internal_service_types.rb
Constant Summary collapse
- PROTOCOL_VERSION =
1
- FRAGMENT =
2
- DESC_TBL =
3
- PARAMS =
4
- COORD =
5
- BACKEND_NUM =
6
- QUERY_GLOBALS =
7
- QUERY_OPTIONS =
8
- FIELDS =
{ PROTOCOL_VERSION => { :type => ::Thrift::Types::I32, :name => 'protocol_version', :enum_class => Impala::Protocol::ImpalaInternalServiceVersion }, FRAGMENT => { :type => ::Thrift::Types::STRUCT, :name => 'fragment', :class => Impala::Protocol::TPlanFragment, :optional => true }, DESC_TBL => { :type => ::Thrift::Types::STRUCT, :name => 'desc_tbl', :class => Impala::Protocol::TDescriptorTable, :optional => true }, PARAMS => { :type => ::Thrift::Types::STRUCT, :name => 'params', :class => Impala::Protocol::TPlanFragmentExecParams, :optional => true }, COORD => { :type => ::Thrift::Types::STRUCT, :name => 'coord', :class => Impala::Protocol::THostPort, :optional => true }, BACKEND_NUM => { :type => ::Thrift::Types::I32, :name => 'backend_num', :optional => true }, QUERY_GLOBALS => { :type => ::Thrift::Types::STRUCT, :name => 'query_globals', :class => Impala::Protocol::TQueryGlobals, :optional => true }, QUERY_OPTIONS => { :type => ::Thrift::Types::STRUCT, :name => 'query_options', :class => Impala::Protocol::TQueryOptions, :optional => true } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
180 |
# File 'lib/impala/protocol/impala_internal_service_types.rb', line 180 def struct_fields; FIELDS; end |
#validate ⇒ Object
182 183 184 185 186 187 |
# File 'lib/impala/protocol/impala_internal_service_types.rb', line 182 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field protocol_version is unset!') unless @protocol_version unless @protocol_version.nil? || Impala::Protocol::ImpalaInternalServiceVersion::VALID_VALUES.include?(@protocol_version) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field protocol_version!') end end |