Class: Impala::Protocol::TPlan

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/impala/protocol/plan_nodes_types.rb

Constant Summary collapse

NODES =
1
FIELDS =
{
NODES => { :type => ::Thrift::Types::LIST, :name => 'nodes', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TPlanNode } }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



335
# File 'lib/impala/protocol/plan_nodes_types.rb', line 335

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


337
338
339
# File 'lib/impala/protocol/plan_nodes_types.rb', line 337

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nodes is unset!') unless @nodes
end