columnar

package
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0, NCSA Imports: 9 Imported by: 0

Documentation

Overview

Package columnar implements the columnar table format for a Kythe xrefs service.

Index

Constants

This section is empty.

Variables

View Source
var (
	// DecorationsKeyPrefix is the common key prefix for all Kythe columnar
	// FileDecoration key-value entries.
	DecorationsKeyPrefix, _ = keys.Append(nil, "fd")

	// CrossReferencesKeyPrefix is the common key prefix for all Kythe columnar
	// CrossReferences key-value entries.
	CrossReferencesKeyPrefix, _ = keys.Append(nil, "xr")
)

Functions

func DecodeCrossReferencesEntry

func DecodeCrossReferencesEntry(src *spb.VName, key string, val []byte) (*xspb.CrossReferences, error)

DecodeCrossReferencesEntry decodes a columnar CrossReferences entry.

func DecodeDecorationsEntry

func DecodeDecorationsEntry(file *spb.VName, key string, val []byte) (*xspb.FileDecorations, error)

DecodeDecorationsEntry decodes a columnar FileDecorations entry.

Types

type KV

type KV struct{ Key, Value []byte }

KV is a single columnar key-value entry.

func EncodeCrossReferencesEntry

func EncodeCrossReferencesEntry(keyPrefix []byte, xr *xspb.CrossReferences) (*KV, error)

EncodeCrossReferencesEntry encodes a columnar CrossReferences entry.

func EncodeDecorationsEntry

func EncodeDecorationsEntry(keyPrefix []byte, fd *xspb.FileDecorations) (*KV, error)

EncodeDecorationsEntry encodes a columnar FileDecorations entry.

Jump to

Keyboard shortcuts

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