Class: Apache::Hadoop::Hbase::Thrift2::TResult

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

Overview

if no Result is found, row and columnValues will not be set.

Constant Summary collapse

ROW =
1
COLUMNVALUES =
2
FIELDS =
{
  ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true, :optional => true},
  COLUMNVALUES => {:type => ::Thrift::Types::LIST, :name => 'columnValues', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift2::TColumnValue}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



135
# File 'lib/hbase/hbase_types.rb', line 135

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


137
138
139
# File 'lib/hbase/hbase_types.rb', line 137

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