Bigtable v0.3.0 Bigtable.ChunkReader View Source

Reads chunks from Google.Bigtable.V2.ReadRowsResponse and parses them into complete cells grouped by rowkey.

Link to this section Summary

Types

A map containging lists of Bigtable.ChunkReader.ReadCell keyed by row key

Functions

Returns a specification to start this module under a supervisor

Closes a Bigtable.ChunkReader when provided its pid and returns the chunk_reader_result

Processes a Google.Bigtable.V2.ReadRowsResponse.CellChunk given a Bigtable.ChunkReader pid

Link to this section Types

Link to this type

chunk_reader_result() View Source
chunk_reader_result() :: %{
  optional(binary()) => [Bigtable.ChunkReader.ReadCell.t()]
}

A map containging lists of Bigtable.ChunkReader.ReadCell keyed by row key.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

close(pid) View Source
close(pid()) :: {:ok, chunk_reader_result()} | {:error, binary()}

Closes a Bigtable.ChunkReader when provided its pid and returns the chunk_reader_result.

Link to this function

open() View Source
open() :: :ignore | {:error, any()} | {:ok, pid()} | {:ok, pid(), any()}

Opens a Bigtable.ChunkReader.

Link to this function

process(pid, cc) View Source
process(pid(), Google.Bigtable.V2.ReadRowsResponse.CellChunk.t()) ::
  {:ok, chunk_reader_result()} | {:error, binary()}

Processes a Google.Bigtable.V2.ReadRowsResponse.CellChunk given a Bigtable.ChunkReader pid.