Class: Google::Cloud::Bigtable::SampleRowKey

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/bigtable/sample_row_key.rb

Overview

  • offset_bytes : Approximate total storage space used by all rows in the table which precede row_key. Buffering the contents of all rows between two subsequent samples would require space roughly equal to the difference in their offset_bytes fields.

Examples:

require "google/cloud"

bigtable = Google::Cloud::Bigtable.new

table = bigtable.table("my-instance", "my-table")

table.sample_row_keys.each do |r|
  p r
end

Instance Attribute Summary collapse

Instance Attribute Details

#keyString (readonly)

Returns Sample row key.

Returns:

  • (String)

    Sample row key.



52
53
54
# File 'lib/google/cloud/bigtable/sample_row_key.rb', line 52

def key
  @key
end

#offsetInteger (readonly)

Returns Row offset in bytes.

Returns:

  • (Integer)

    Row offset in bytes.



55
56
57
# File 'lib/google/cloud/bigtable/sample_row_key.rb', line 55

def offset
  @offset
end