proto

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSerializer = Serializer{}
View Source
var RoaringSerializer = Serializer{RoaringRows: true}

Functions

This section is empty.

Types

type Serializer

type Serializer struct {
	RoaringRows bool
}

Serializer implements pilosa.Serializer for protobufs.

func (Serializer) Marshal

func (s Serializer) Marshal(m pilosa.Message) ([]byte, error)

Marshal turns pilosa messages into protobuf serialized bytes.

func (Serializer) Unmarshal

func (s Serializer) Unmarshal(buf []byte, m pilosa.Message) error

Unmarshal takes byte slices and protobuf deserializes them into a pilosa Message.

Jump to

Keyboard shortcuts

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