Class: Impala::Protocol::TLiteralPredicate
- Inherits:
-
Object
- Object
- Impala::Protocol::TLiteralPredicate
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/exprs_types.rb
Constant Summary collapse
- VALUE =
1
- IS_NULL =
2
- FIELDS =
{ VALUE => { :type => ::Thrift::Types::BOOL, :name => 'value' }, IS_NULL => { :type => ::Thrift::Types::BOOL, :name => 'is_null' } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
225 |
# File 'lib/impala/protocol/exprs_types.rb', line 225 def struct_fields; FIELDS; end |
#validate ⇒ Object
227 228 229 230 |
# File 'lib/impala/protocol/exprs_types.rb', line 227 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field value is unset!') if @value.nil? raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field is_null is unset!') if @is_null.nil? end |