Class: Apache::Hadoop::Hbase::Thrift2::THBaseService::CheckAndPut_args
- Inherits:
-
Object
- Object
- Apache::Hadoop::Hbase::Thrift2::THBaseService::CheckAndPut_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/hbase/t_h_base_service.rb
Constant Summary collapse
- TABLE =
1- ROW =
2- FAMILY =
3- QUALIFIER =
4- VALUE =
5- TPUT =
6- FIELDS =
{ # to check in and put to TABLE => {:type => ::Thrift::Types::STRING, :name => 'table', :binary => true}, # row to check ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true}, # column family to check FAMILY => {:type => ::Thrift::Types::STRING, :name => 'family', :binary => true}, # column qualifier to check QUALIFIER => {:type => ::Thrift::Types::STRING, :name => 'qualifier', :binary => true}, # the expected value, if not provided the # check is for the non-existence of the # column in question VALUE => {:type => ::Thrift::Types::STRING, :name => 'value', :binary => true}, # the TPut to put if the check succeeds TPUT => {:type => ::Thrift::Types::STRUCT, :name => 'tput', :class => ::Apache::Hadoop::Hbase::Thrift2::TPut} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
699 |
# File 'lib/hbase/t_h_base_service.rb', line 699 def struct_fields; FIELDS; end |
#validate ⇒ Object
701 702 703 704 705 706 707 |
# File 'lib/hbase/t_h_base_service.rb', line 701 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 row is unset!') unless @row raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field family is unset!') unless @family raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field qualifier is unset!') unless @qualifier raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tput is unset!') unless @tput end |