class Hive2::Thrift::TOperationHandle

Constants

FIELDS
HASRESULTSET
MODIFIEDROWCOUNT
OPERATIONID
OPERATIONTYPE

Public Instance Methods

struct_fields() click to toggle source
# File lib/thrift/t_c_l_i_service_types.rb, line 930
def struct_fields; FIELDS; end
validate() click to toggle source
# File lib/thrift/t_c_l_i_service_types.rb, line 932
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? || ::Hive2::Thrift::TOperationType::VALID_VALUES.include?(@operationType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field operationType!')
  end
end