Class: Apache::Hadoop::Hbase::Thrift2::THBaseService::OpenScanner_args

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

Constant Summary collapse

TABLE =
1
TSCAN =
2
FIELDS =
{
  # the table to get the Scanner for
  TABLE => {:type => ::Thrift::Types::STRING, :name => 'table', :binary => true},
  # the scan object to get a Scanner for
  TSCAN => {:type => ::Thrift::Types::STRUCT, :name => 'tscan', :class => ::Apache::Hadoop::Hbase::Thrift2::TScan}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


997
998
999
1000
# File 'lib/hbase/t_h_base_service.rb', line 997

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 tscan is unset!') unless @tscan
end