Documentation ¶
Index ¶
- func Read(buffer []byte, desiredSchema typeof.Schema) (column.Columns, error)
- type Block
- func FromBatchBy(batch *talaria.Batch, partitionBy string, filter *typeof.Schema, ...) ([]Block, error)
- func FromBuffer(b []byte) (block Block, err error)
- func FromColumns(key string, columns column.Columns) (blk Block, err error)
- func FromOrcBy(payload []byte, partitionBy string, filter *typeof.Schema, ...) ([]Block, error)
- func FromRequestBy(request *talaria.IngestRequest, partitionBy string, filter *typeof.Schema, ...) ([]Block, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
type Block struct { Size int64 // The unencoded size of the block Key nocopy.String // The key of the block Columns nocopy.ByteMap // The encoded column metadata Data nocopy.Bytes // The set of columnar data Expires int64 // The expiration time for the block, in unix seconds // contains filtered or unexported fields }
Block represents a serialized block
func FromBatchBy ¶
func FromBatchBy(batch *talaria.Batch, partitionBy string, filter *typeof.Schema, computed ...*column.Computed) ([]Block, error)
FromBatchBy creates a block from a talaria protobuf-encoded batch. It repartitions the batch by a given partition key at the same time.
func FromBuffer ¶
FromBuffer unmarshals a block from a in-memory buffer.
func FromColumns ¶
FromColumns creates a block from a set of presto named columns
func FromOrcBy ¶
func FromOrcBy(payload []byte, partitionBy string, filter *typeof.Schema, computed ...*column.Computed) ([]Block, error)
FromOrcBy decodes a set of blocks from an orc file and repartitions it by the specified partition key.
func FromRequestBy ¶
func FromRequestBy(request *talaria.IngestRequest, partitionBy string, filter *typeof.Schema, computed ...*column.Computed) ([]Block, error)
FromRequestBy creates a block from a talaria protobuf-encoded request. It repartitions the batch by a given partition key at the same time.
Click to show internal directories.
Click to hide internal directories.