Class: Apache::Hadoop::Hbase::Thrift2::THBaseService::GetScannerResults_args
- Inherits:
-
Object
- Object
- Apache::Hadoop::Hbase::Thrift2::THBaseService::GetScannerResults_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/hbase/t_h_base_service.rb
Constant Summary collapse
- TABLE =
1
- TSCAN =
2
- NUMROWS =
3
- 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}, # number of rows to return NUMROWS => {:type => ::Thrift::Types::I32, :name => 'numRows', :default => 1} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
1155 |
# File 'lib/hbase/t_h_base_service.rb', line 1155 def struct_fields; FIELDS; end |
#validate ⇒ Object
1157 1158 1159 1160 |
# File 'lib/hbase/t_h_base_service.rb', line 1157 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 |