Class: Apache::Hadoop::Hbase::Thrift2::TColumnIncrement

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

Overview

Represents a single cell and the amount to increment it by

Constant Summary collapse

FAMILY =
1
QUALIFIER =
2
AMOUNT =
3
FIELDS =
{
  FAMILY => {:type => ::Thrift::Types::STRING, :name => 'family', :binary => true},
  QUALIFIER => {:type => ::Thrift::Types::STRING, :name => 'qualifier', :binary => true},
  AMOUNT => {:type => ::Thrift::Types::I64, :name => 'amount', :default => 1, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



114
# File 'lib/hbase/hbase_types.rb', line 114

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


116
117
118
119
# File 'lib/hbase/hbase_types.rb', line 116

def validate
  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
end