Class: Impala::Protocol::TRuntimeProfileNode
- Inherits:
-
Object
- Object
- Impala::Protocol::TRuntimeProfileNode
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/runtime_profile_types.rb
Constant Summary collapse
- NAME =
1
- NUM_CHILDREN =
2
- COUNTERS =
3
- METADATA =
4
- INDENT =
5
- INFO_STRINGS =
6
- FIELDS =
{ NAME => { :type => ::Thrift::Types::STRING, :name => 'name' }, NUM_CHILDREN => { :type => ::Thrift::Types::I32, :name => 'num_children' }, COUNTERS => { :type => ::Thrift::Types::LIST, :name => 'counters', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TCounter } }, METADATA => { :type => ::Thrift::Types::I64, :name => 'metadata' }, INDENT => { :type => ::Thrift::Types::BOOL, :name => 'indent' }, INFO_STRINGS => { :type => ::Thrift::Types::MAP, :name => 'info_strings', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::STRING } } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
65 |
# File 'lib/impala/protocol/runtime_profile_types.rb', line 65 def struct_fields; FIELDS; end |
#validate ⇒ Object
67 68 69 70 71 72 73 74 |
# File 'lib/impala/protocol/runtime_profile_types.rb', line 67 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field num_children is unset!') unless @num_children raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field counters is unset!') unless @counters raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field metadata is unset!') unless @metadata raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field indent is unset!') if @indent.nil? raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field info_strings is unset!') unless @info_strings end |