partition

package
v0.0.0-...-79c606f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package partition comprises code related to the manipulation of Partitioned data, exposed as Rows

Index

Constants

This section is empty.

Variables

View Source
var File_partition_proto protoreflect.FileDescriptor

Functions

func CreateBuildablePartition

func CreateBuildablePartition(maxRows int, schema sif.Schema) sif.BuildablePartition

CreateBuildablePartition creates a new Partition containing an empty byte array and a schema

func CreateKeyedReduceablePartition

func CreateKeyedReduceablePartition(maxRows int, schema sif.Schema) sif.ReduceablePartition

CreateKeyedReduceablePartition creates a new Partition containing an empty byte array and a schema

func CreatePartition

func CreatePartition(maxRows int, initialCapacity int, schema sif.Schema) sif.Partition

CreatePartition creates a new Partition containing an empty byte array and a schema

func CreateReduceablePartition

func CreateReduceablePartition(maxRows int, schema sif.Schema) sif.ReduceablePartition

CreateReduceablePartition creates a new Partition containing an empty byte array and a schema

func CreateTempRow

func CreateTempRow() sif.Row

CreateTempRow builds an empty row struct which cannot be used until passed to a function which populates it with data

func FromBytes

func FromBytes(data []byte, schema sif.Schema, compressor sif.Compressor) (sif.ReduceablePartition, error)

FromBytes converts serialized bytes into a Partition

func FromStreamedData

func FromStreamedData(stream pb.PartitionsService_TransferPartitionDataClient, partitionMeta *pb.MPartitionMeta, schema sif.Schema, compressor sif.Compressor) (sif.Partition, error)

FromStreamedData loads data from a protobuf stream into this Partition

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL