Class: Impala::Protocol::TPlanFragment
- Inherits:
-
Object
- Object
- Impala::Protocol::TPlanFragment
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/planner_types.rb
Constant Summary collapse
- PLAN =
2
- OUTPUT_EXPRS =
4
- OUTPUT_SINK =
5
- PARTITION =
6
- FIELDS =
{ PLAN => { :type => ::Thrift::Types::STRUCT, :name => 'plan', :class => Impala::Protocol::TPlan, :optional => true }, OUTPUT_EXPRS => { :type => ::Thrift::Types::LIST, :name => 'output_exprs', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TExpr }, :optional => true }, OUTPUT_SINK => { :type => ::Thrift::Types::STRUCT, :name => 'output_sink', :class => Impala::Protocol::TDataSink, :optional => true }, PARTITION => { :type => ::Thrift::Types::STRUCT, :name => 'partition', :class => Impala::Protocol::TDataPartition } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
30 |
# File 'lib/impala/protocol/planner_types.rb', line 30 def struct_fields; FIELDS; end |
#validate ⇒ Object
32 33 34 |
# File 'lib/impala/protocol/planner_types.rb', line 32 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partition is unset!') unless @partition end |