Documentation ¶
Overview ¶
Package compare implements comparisons between Kythe values as used in the implementation of a graphstore.Service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EntriesEqual ¶
EntriesEqual reports whether e1 and e2 are equivalent, including their fact values (if any).
func VNamesEqual ¶
VNamesEqual reports whether v1 and v2 are equal.
Types ¶
type Order ¶
type Order int
An Order represents an ordering relationship between values.
LT, EQ, and GT are the standard values for an Order.
func Entries ¶
Entries reports whether e1 is LT, GT, or EQ to e2 in entry order, ignoring fact values (if any).
The ordering for entries is defined by lexicographic comparison of [source, edge kind, fact name, target].
func VNames ¶
VNames returns LT if v1 precedes v2, EQ if v1 and v2 are equal, or GT if v1 follows v2, in standard order. The ordering for VNames is defined by lexicographic comparison of [signature, corpus, root, path, language].
func ValueEntries ¶
ValueEntries reports whether e1 is LT, GT, or EQ to e2 in entry order, including fact values (if any).