protovalue

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package protovalue reads a key expression's Value proto as Java's LiteralKeyExpression.fromProtoValue does (LiteralKeyExpression.java:134-173), the one reader of both the meta-data loader (a literal key, a record type's explicit key, an index predicate's operand) and the planner's translation of an index predicate, which cannot import the record layer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromProto

func FromProto(p *gen.Value) (any, error)

FromProto is the one field p sets, nil when it sets none (or p is nil), and a MultipleValuesError when it sets several.

Types

type MultipleValuesError

type MultipleValuesError struct{}

MultipleValuesError is Java's refusal of a Value with more than one field set. The record layer reports it as the RecordCoreError Java throws.

func (*MultipleValuesError) Error

func (*MultipleValuesError) Error() string

Jump to

Keyboard shortcuts

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