Versions in this module Expand all Collapse all v0 v0.40.4 May 19, 2022 Changes in this version + func ChunkStoreFromVRW(vrw types.ValueReadWriter) chunks.ChunkStore + func ConflictDebugFormat(ctx context.Context, m ConflictMap) (string, error) + func DebugFormat(ctx context.Context, m Map) (string, error) + func DiffMaps(ctx context.Context, from, to Map, cb DiffFn) error + func KeyDescriptorFromSchema(sch schema.Schema) val.TupleDesc + func MapDescriptorsFromScheam(sch schema.Schema) (kd, vd val.TupleDesc) + func NodeFromValue(v types.Value) tree.Node + func ValueDescriptorFromSchema(sch schema.Schema) val.TupleDesc + func ValueFromConflictMap(m ConflictMap) types.Value + func ValueFromMap(m Map) types.Value + type AddressMap struct + func NewEmptyAddressMap(ns tree.NodeStore) AddressMap + func (c AddressMap) Count() int + func (c AddressMap) Editor() AddressMapEditor + func (c AddressMap) Format() *types.NomsBinFormat + func (c AddressMap) Get(ctx context.Context, name string) (addr hash.Hash, err error) + func (c AddressMap) Has(ctx context.Context, name string) (ok bool, err error) + func (c AddressMap) HashOf() hash.Hash + func (c AddressMap) Height() int + func (c AddressMap) IterAll(ctx context.Context, cb func(name string, address hash.Hash) error) error + func (c AddressMap) WalkAddresses(ctx context.Context, cb tree.AddressCb) error + func (c AddressMap) WalkNodes(ctx context.Context, cb tree.NodeCb) error + type AddressMapEditor struct + func (wr AddressMapEditor) Add(ctx context.Context, name string, addr hash.Hash) error + func (wr AddressMapEditor) Delete(ctx context.Context, name string) error + func (wr AddressMapEditor) Flush(ctx context.Context) (AddressMap, error) + func (wr AddressMapEditor) Update(ctx context.Context, name string, addr hash.Hash) error + type Conflict val.Triple[val.Tuple] + func (c Conflict) BaseValue() val.Tuple + func (c Conflict) OurValue() val.Tuple + func (c Conflict) TheirValue() val.Tuple + type ConflictEditor struct + func (wr ConflictEditor) Add(ctx context.Context, key, ourVal, theirVal, baseVal val.Tuple) error + func (wr ConflictEditor) Delete(ctx context.Context, key val.Tuple) error + func (wr ConflictEditor) Flush(ctx context.Context) (ConflictMap, error) + type ConflictIter kvIter[val.Tuple, Conflict] + type ConflictMap struct + func ConflictMapFromValue(v types.Value, ourSchema, theirSchema, baseSchema schema.Schema, ...) ConflictMap + func NewConflictMap(root tree.Node, ns tree.NodeStore, key, ours, theirs, base val.TupleDesc) ConflictMap + func NewEmptyConflictMap(ns tree.NodeStore, key, ours, theirs, base val.TupleDesc) ConflictMap + func (c ConflictMap) Count() int + func (c ConflictMap) Descriptors() (key, ours, theirs, base val.TupleDesc) + func (c ConflictMap) Editor() ConflictEditor + func (c ConflictMap) Format() *types.NomsBinFormat + func (c ConflictMap) Get(ctx context.Context, key val.Tuple, cb KeyValueFn[val.Tuple, Conflict]) (err error) + func (c ConflictMap) Has(ctx context.Context, key val.Tuple) (ok bool, err error) + func (c ConflictMap) HashOf() hash.Hash + func (c ConflictMap) Height() int + func (c ConflictMap) IterAll(ctx context.Context) (ConflictIter, error) + func (c ConflictMap) IterOrdinalRange(ctx context.Context, start, stop uint64) (ConflictIter, error) + func (c ConflictMap) WalkAddresses(ctx context.Context, cb tree.AddressCb) error + func (c ConflictMap) WalkNodes(ctx context.Context, cb tree.NodeCb) error + type DiffFn func(context.Context, tree.Diff) error + type KeyValueFn func(key K, value V) error + type Map struct + func MapFromValue(v types.Value, sch schema.Schema, vrw types.ValueReadWriter) Map + func MergeMaps(ctx context.Context, left, right, base Map, cb tree.CollisionFn) (Map, error) + func NewMap(node tree.Node, ns tree.NodeStore, keyDesc, valDesc val.TupleDesc) Map + func NewMapFromTuples(ctx context.Context, ns tree.NodeStore, keyDesc, valDesc val.TupleDesc, ...) (Map, error) + func (m Map) Count() int + func (m Map) Descriptors() (val.TupleDesc, val.TupleDesc) + func (m Map) Format() *types.NomsBinFormat + func (m Map) Get(ctx context.Context, key val.Tuple, cb KeyValueFn[val.Tuple, val.Tuple]) (err error) + func (m Map) Has(ctx context.Context, key val.Tuple) (ok bool, err error) + func (m Map) HashOf() hash.Hash + func (m Map) Height() int + func (m Map) IterAll(ctx context.Context) (MapIter, error) + func (m Map) IterOrdinalRange(ctx context.Context, start, stop uint64) (MapIter, error) + func (m Map) IterRange(ctx context.Context, rng Range) (MapIter, error) + func (m Map) Last(ctx context.Context) (key, value val.Tuple, err error) + func (m Map) Mutate() MutableMap + func (m Map) Pool() pool.BuffPool + func (m Map) WalkAddresses(ctx context.Context, cb tree.AddressCb) error + func (m Map) WalkNodes(ctx context.Context, cb tree.NodeCb) error + type MapIter kvIter[val.Tuple, val.Tuple] + type MutableMap struct + func (mut *MutableMap) ApplyPending(ctx context.Context) error + func (mut *MutableMap) DiscardPending(context.Context) + func (mut MutableMap) Delete(ctx context.Context, key val.Tuple) error + func (mut MutableMap) Get(ctx context.Context, key val.Tuple, cb KeyValueFn[val.Tuple, val.Tuple]) (err error) + func (mut MutableMap) Has(ctx context.Context, key val.Tuple) (ok bool, err error) + func (mut MutableMap) HasEdits() bool + func (mut MutableMap) IterAll(ctx context.Context) (MapIter, error) + func (mut MutableMap) IterRange(ctx context.Context, rng Range) (MapIter, error) + func (mut MutableMap) Map(ctx context.Context) (Map, error) + func (mut MutableMap) Put(ctx context.Context, key, value val.Tuple) error + type Range struct + Desc val.TupleDesc + Start []RangeCut + Stop []RangeCut + func ClosedRange(start, stop val.Tuple, desc val.TupleDesc) Range + func GreaterOrEqualRange(start val.Tuple, desc val.TupleDesc) Range + func GreaterRange(start val.Tuple, desc val.TupleDesc) Range + func LesserOrEqualRange(stop val.Tuple, desc val.TupleDesc) Range + func LesserRange(stop val.Tuple, desc val.TupleDesc) Range + func MergeOverlappingRanges(ranges ...Range) (merged []Range) + func OpenRange(start, stop val.Tuple, desc val.TupleDesc) Range + func OpenStartRange(start, stop val.Tuple, desc val.TupleDesc) Range + func OpenStopRange(start, stop val.Tuple, desc val.TupleDesc) Range + func SortRanges(ranges ...Range) []Range + func (r Range) AboveStart(t val.Tuple) bool + func (r Range) BelowStop(t val.Tuple) bool + type RangeCut struct + Inclusive bool + Null bool + Value []byte