Class: Impala::Protocol::TScanRangeLocation

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

Constant Summary collapse

SERVER =
1
VOLUME_ID =
2
FIELDS =
{
SERVER => { :type => ::Thrift::Types::STRUCT, :name => 'server', :class => Impala::Protocol::THostPort },
VOLUME_ID => { :type => ::Thrift::Types::I32, :name => 'volume_id', :default => -1, :optional => true }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


51
52
53
# File 'lib/impala/protocol/planner_types.rb', line 51

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