Class: Impala::Protocol::TTupleDescriptor

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

Constant Summary collapse

ID =
1
BYTESIZE =
2
NUMNULLBYTES =
3
TABLEID =
4
FIELDS =
{
ID => { :type => ::Thrift::Types::I32, :name => 'id' },
BYTESIZE => { :type => ::Thrift::Types::I32, :name => 'byteSize' },
NUMNULLBYTES => { :type => ::Thrift::Types::I32, :name => 'numNullBytes' },
TABLEID => { :type => ::Thrift::Types::I32, :name => 'tableId', :optional => true }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



233
# File 'lib/impala/protocol/descriptors_types.rb', line 233

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


235
236
237
238
239
# File 'lib/impala/protocol/descriptors_types.rb', line 235

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