Class: Hive2::Thrift::TFetchResultsResp

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/thrift/t_c_l_i_service_types.rb

Constant Summary collapse

STATUS =
1
HASMOREROWS =
2
RESULTS =
3
FIELDS =
{
  STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hive2::Thrift::TStatus},
  HASMOREROWS => {:type => ::Thrift::Types::BOOL, :name => 'hasMoreRows', :optional => true},
  RESULTS => {:type => ::Thrift::Types::STRUCT, :name => 'results', :class => ::Hive2::Thrift::TRowSet, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject


1636
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1636

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)

1638
1639
1640
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1638

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