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 ¶
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.
Click to show internal directories.
Click to hide internal directories.