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
Opens a Bigtable.ChunkReader
Processes a Google.Bigtable.V2.ReadRowsResponse.CellChunk
given a Bigtable.ChunkReader
pid
Link to this section Types
chunk_reader_result()
View Source
chunk_reader_result() :: %{
optional(binary()) => [Bigtable.ChunkReader.ReadCell.t()]
}
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
child_spec(arg) View Source
Returns a specification to start this module under a supervisor.
See Supervisor
.
close(pid)
View Source
close(pid()) :: {:ok, chunk_reader_result()} | {:error, binary()}
close(pid()) :: {:ok, chunk_reader_result()} | {:error, binary()}
Closes a Bigtable.ChunkReader
when provided its pid and returns the chunk_reader_result.
open() View Source
Opens a Bigtable.ChunkReader
.
process(pid, cc)
View Source
process(pid(), Google.Bigtable.V2.ReadRowsResponse.CellChunk.t()) ::
{:ok, chunk_reader_result()} | {:error, binary()}
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.