Class: Impala::Protocol::TFloatLiteral

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/impala/protocol/exprs_types.rb

Constant Summary collapse

VALUE =
1
FIELDS =
{
VALUE => { :type => ::Thrift::Types::DOUBLE, :name => 'value' }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



138
# File 'lib/impala/protocol/exprs_types.rb', line 138

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


140
141
142
# File 'lib/impala/protocol/exprs_types.rb', line 140

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field value is unset!') unless @value
end