Class: Impala::Protocol::THBaseScanNode
- Inherits:
-
Object
- Object
- Impala::Protocol::THBaseScanNode
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/plan_nodes_types.rb
Constant Summary collapse
- TUPLE_ID =
1
- TABLE_NAME =
2
- FILTERS =
3
- FIELDS =
{ TUPLE_ID => { :type => ::Thrift::Types::I32, :name => 'tuple_id' }, TABLE_NAME => { :type => ::Thrift::Types::STRING, :name => 'table_name' }, FILTERS => { :type => ::Thrift::Types::LIST, :name => 'filters', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::THBaseFilter }, :optional => true } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
152 |
# File 'lib/impala/protocol/plan_nodes_types.rb', line 152 def struct_fields; FIELDS; end |
#validate ⇒ Object
154 155 156 157 |
# File 'lib/impala/protocol/plan_nodes_types.rb', line 154 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tuple_id is unset!') unless @tuple_id raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field table_name is unset!') unless @table_name end |