Class: Impala::Protocol::TScanRangeLocations

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

Constant Summary collapse

SCAN_RANGE =
1
LOCATIONS =
2
FIELDS =
{
SCAN_RANGE => { :type => ::Thrift::Types::STRUCT, :name => 'scan_range', :class => Impala::Protocol::TScanRange },
LOCATIONS => { :type => ::Thrift::Types::LIST, :name => 'locations', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TScanRangeLocation } }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



68
# File 'lib/impala/protocol/planner_types.rb', line 68

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


70
71
72
# File 'lib/impala/protocol/planner_types.rb', line 70

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