Class: Impala::Protocol::TSortNode
- Inherits:
-
Object
- Object
- Impala::Protocol::TSortNode
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/plan_nodes_types.rb
Constant Summary collapse
- ORDERING_EXPRS =
1
- IS_ASC_ORDER =
2
- USE_TOP_N =
3
- FIELDS =
{ ORDERING_EXPRS => { :type => ::Thrift::Types::LIST, :name => 'ordering_exprs', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TExpr } }, IS_ASC_ORDER => { :type => ::Thrift::Types::LIST, :name => 'is_asc_order', :element => { :type => ::Thrift::Types::BOOL } }, USE_TOP_N => { :type => ::Thrift::Types::BOOL, :name => 'use_top_n' } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
244 |
# File 'lib/impala/protocol/plan_nodes_types.rb', line 244 def struct_fields; FIELDS; end |
#validate ⇒ Object
246 247 248 249 250 |
# File 'lib/impala/protocol/plan_nodes_types.rb', line 246 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field ordering_exprs is unset!') unless @ordering_exprs raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field is_asc_order is unset!') unless @is_asc_order raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field use_top_n is unset!') if @use_top_n.nil? end |