google-cloud-bigtable - Class Google::Cloud::Bigtable::Row::Cell (v2.6.5)

Reference documentation and code samples for the google-cloud-bigtable class Google::Cloud::Bigtable::Row::Cell.

Cell

Row cell built from data chunks.

Inherits

  • Object

Methods

#family

def family()

Returns the value of attribute family.

#initialize

def initialize(family, qualifier, timestamp, value, labels = []) -> Cell

Creates a row cell instance.

Parameters
  • family (String) — Column family name.
  • qualifier (String) — Column cell qualifier name.
  • timestamp (Integer) — Timestamp in microseconds.
  • value (String) — Cell value.
  • labels (Array<String>) — List of label array.
Returns
  • (Cell) — a new instance of Cell

#labels

def labels()

Returns the value of attribute labels.

#qualifier

def qualifier()

Returns the value of attribute qualifier.

#timestamp

def timestamp()

Returns the value of attribute timestamp.

#to_i

def to_i() -> Integer

Converts a value to an integer.

Returns
  • (Integer)

#to_time

def to_time(granularity = nil) -> Time | nil

Converts timestamp to Time instance.

Parameter
  • granularity (Symbol) — Optional. Valid granularity types are :micros, :millis. Default is :millis.
Returns
  • (Time | nil)

#value

def value()

Returns the value of attribute value.