Class: Impala::Protocol::THBaseFilter
- Inherits:
-
Object
- Object
- Impala::Protocol::THBaseFilter
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/plan_nodes_types.rb
Constant Summary collapse
- FAMILY =
1
- QUALIFIER =
2
- OP_ORDINAL =
3
- FILTER_CONSTANT =
4
- FIELDS =
{ FAMILY => { :type => ::Thrift::Types::STRING, :name => 'family' }, QUALIFIER => { :type => ::Thrift::Types::STRING, :name => 'qualifier' }, OP_ORDINAL => { :type => ::Thrift::Types::I32, :name => 'op_ordinal' }, FILTER_CONSTANT => { :type => ::Thrift::Types::STRING, :name => 'filter_constant' } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
128 |
# File 'lib/impala/protocol/plan_nodes_types.rb', line 128 def struct_fields; FIELDS; end |
#validate ⇒ Object
130 131 132 133 134 135 |
# File 'lib/impala/protocol/plan_nodes_types.rb', line 130 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field family is unset!') unless @family raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field qualifier is unset!') unless @qualifier raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field op_ordinal is unset!') unless @op_ordinal raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field filter_constant is unset!') unless @filter_constant end |