class Impala::Protocol::Hive::TOperationHandle

Constants

FIELDS
HASRESULTSET
MODIFIEDROWCOUNT
OPERATIONID
OPERATIONTYPE

Public Instance Methods

struct_fields() click to toggle source
# File lib/impala/protocol/cli_service_types.rb, line 706
def struct_fields; FIELDS; end
validate() click to toggle source
# File lib/impala/protocol/cli_service_types.rb, line 708
def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationId is unset!') unless @operationId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationType is unset!') unless @operationType
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field hasResultSet is unset!') if @hasResultSet.nil?
  unless @operationType.nil? || ::Impala::Protocol::Hive::TOperationType::VALID_VALUES.include?(@operationType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field operationType!')
  end
end