Class: Apache::Hadoop::Hbase::Thrift2::THBaseService::Exists_args

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

Overview

HELPER FUNCTIONS AND STRUCTURES

Constant Summary collapse

TABLE =
1
TGET =
2
FIELDS =
{
  # the table to check on
  TABLE => {:type => ::Thrift::Types::STRING, :name => 'table', :binary => true},
  # the TGet to check for
  TGET => {:type => ::Thrift::Types::STRUCT, :name => 'tget', :class => ::Apache::Hadoop::Hbase::Thrift2::TGet}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



525
# File 'lib/hbase/t_h_base_service.rb', line 525

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


527
528
529
530
# File 'lib/hbase/t_h_base_service.rb', line 527

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