Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala::NullIndicatorOffset Struct Reference

#include <descriptors.h>

Collaboration diagram for impala::NullIndicatorOffset:

Public Member Functions

 NullIndicatorOffset (int byte_offset, int bit_offset)
 
std::string DebugString () const
 

Public Attributes

int byte_offset
 
uint8_t bit_mask
 

Detailed Description

Location information for null indicator bit for particular slot. For non-nullable slots, the byte_offset will be 0 and the bit_mask will be 0. This allows us to do the NullIndicatorOffset operations (tuple + byte_offset &/| bit_mask) regardless of whether the slot is nullable or not. This is more efficient than branching to check if the slot is non-nullable.

Definition at line 61 of file descriptors.h.

Constructor & Destructor Documentation

impala::NullIndicatorOffset::NullIndicatorOffset ( int  byte_offset,
int  bit_offset 
)
inline

Definition at line 65 of file descriptors.h.

Member Function Documentation

string impala::NullIndicatorOffset::DebugString ( ) const

Definition at line 38 of file descriptors.cc.

Referenced by impala::SlotDescriptor::DebugString(), and impala::operator<<().

Member Data Documentation


The documentation for this struct was generated from the following files: