Class: Impala::Protocol::TDateLiteral

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::I64, :name => 'value' }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


123
124
125
# File 'lib/impala/protocol/exprs_types.rb', line 123

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