Class: Apache::Hadoop::Hbase::Thrift2::THBaseService::CheckAndDelete_args
- Inherits:
-
Object
- Object
- Apache::Hadoop::Hbase::Thrift2::THBaseService::CheckAndDelete_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- TDELETE =
6- FIELDS =
{ # to check in and delete from 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 TDelete to execute if the check succeeds TDELETE => {:type => ::Thrift::Types::STRUCT, :name => 'tdelete', :class => ::Apache::Hadoop::Hbase::Thrift2::TDelete} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
872 |
# File 'lib/hbase/t_h_base_service.rb', line 872 def struct_fields; FIELDS; end |
#validate ⇒ Object
874 875 876 877 878 879 880 |
# File 'lib/hbase/t_h_base_service.rb', line 874 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 tdelete is unset!') unless @tdelete end |