containers

package
v0.0.0-...-6ce3ea9 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const BPlusTree_Node_TypeID = 0x892485c6916ad641

BPlusTree_Node_TypeID is the unique identifier for the type BPlusTree_Node.

View Source
const BPlusTree_TypeID = 0x96262c98f85cc890

BPlusTree_TypeID is the unique identifier for the type BPlusTree.

View Source
const KV_TypeID = 0xcfcc3326923195bc

KV_TypeID is the unique identifier for the type KV.

Variables

This section is empty.

Functions

This section is empty.

Types

type BPlusTree

type BPlusTree capnp.Struct

func NewBPlusTree

func NewBPlusTree(s *capnp.Segment) (BPlusTree, error)

func NewRootBPlusTree

func NewRootBPlusTree(s *capnp.Segment) (BPlusTree, error)

func ReadRootBPlusTree

func ReadRootBPlusTree(msg *capnp.Message) (BPlusTree, error)

func (BPlusTree) DecodeFromPtr

func (BPlusTree) DecodeFromPtr(p capnp.Ptr) BPlusTree

func (BPlusTree) EncodeAsPtr

func (s BPlusTree) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (BPlusTree) HasRoot

func (s BPlusTree) HasRoot() bool

func (BPlusTree) IsValid

func (s BPlusTree) IsValid() bool

func (BPlusTree) MaxBranches

func (s BPlusTree) MaxBranches() uint32

func (BPlusTree) Message

func (s BPlusTree) Message() *capnp.Message

func (BPlusTree) MinBranches

func (s BPlusTree) MinBranches() uint32

func (BPlusTree) NewRoot

func (s BPlusTree) NewRoot() (BPlusTree_Node, error)

NewRoot sets the root field to a newly allocated BPlusTree_Node struct, preferring placement in s's segment.

func (BPlusTree) Root

func (s BPlusTree) Root() (BPlusTree_Node, error)

func (BPlusTree) Segment

func (s BPlusTree) Segment() *capnp.Segment

func (BPlusTree) SetMaxBranches

func (s BPlusTree) SetMaxBranches(v uint32)

func (BPlusTree) SetMinBranches

func (s BPlusTree) SetMinBranches(v uint32)

func (BPlusTree) SetRoot

func (s BPlusTree) SetRoot(v BPlusTree_Node) error

func (BPlusTree) String

func (s BPlusTree) String() string

func (BPlusTree) ToPtr

func (s BPlusTree) ToPtr() capnp.Ptr

type BPlusTree_Future

type BPlusTree_Future struct{ *capnp.Future }

BPlusTree_Future is a wrapper for a BPlusTree promised by a client call.

func (BPlusTree_Future) Root

func (BPlusTree_Future) Struct

func (f BPlusTree_Future) Struct() (BPlusTree, error)

type BPlusTree_List

type BPlusTree_List = capnp.StructList[BPlusTree]

BPlusTree_List is a list of BPlusTree.

func NewBPlusTree_List

func NewBPlusTree_List(s *capnp.Segment, sz int32) (BPlusTree_List, error)

NewBPlusTree creates a new list of BPlusTree.

type BPlusTree_Node

type BPlusTree_Node capnp.Struct

func NewBPlusTree_Node

func NewBPlusTree_Node(s *capnp.Segment) (BPlusTree_Node, error)

func NewRootBPlusTree_Node

func NewRootBPlusTree_Node(s *capnp.Segment) (BPlusTree_Node, error)

func ReadRootBPlusTree_Node

func ReadRootBPlusTree_Node(msg *capnp.Message) (BPlusTree_Node, error)

func (BPlusTree_Node) DecodeFromPtr

func (BPlusTree_Node) DecodeFromPtr(p capnp.Ptr) BPlusTree_Node

func (BPlusTree_Node) EncodeAsPtr

func (s BPlusTree_Node) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (BPlusTree_Node) HasLeaf

func (s BPlusTree_Node) HasLeaf() bool

func (BPlusTree_Node) Interior

func (BPlusTree_Node) IsValid

func (s BPlusTree_Node) IsValid() bool

func (BPlusTree_Node) Leaf

func (s BPlusTree_Node) Leaf() (KV_List, error)

func (BPlusTree_Node) Message

func (s BPlusTree_Node) Message() *capnp.Message

func (BPlusTree_Node) NewLeaf

func (s BPlusTree_Node) NewLeaf(n int32) (KV_List, error)

NewLeaf sets the leaf field to a newly allocated KV_List, preferring placement in s's segment.

func (BPlusTree_Node) Segment

func (s BPlusTree_Node) Segment() *capnp.Segment

func (BPlusTree_Node) SetInterior

func (s BPlusTree_Node) SetInterior()

func (BPlusTree_Node) SetLeaf

func (s BPlusTree_Node) SetLeaf(v KV_List) error

func (BPlusTree_Node) String

func (s BPlusTree_Node) String() string

func (BPlusTree_Node) ToPtr

func (s BPlusTree_Node) ToPtr() capnp.Ptr

func (BPlusTree_Node) Which

type BPlusTree_Node_Future

type BPlusTree_Node_Future struct{ *capnp.Future }

BPlusTree_Node_Future is a wrapper for a BPlusTree_Node promised by a client call.

func (BPlusTree_Node_Future) Interior

func (BPlusTree_Node_Future) Struct

type BPlusTree_Node_List

type BPlusTree_Node_List = capnp.StructList[BPlusTree_Node]

BPlusTree_Node_List is a list of BPlusTree_Node.

func NewBPlusTree_Node_List

func NewBPlusTree_Node_List(s *capnp.Segment, sz int32) (BPlusTree_Node_List, error)

NewBPlusTree_Node creates a new list of BPlusTree_Node.

type BPlusTree_Node_Which

type BPlusTree_Node_Which uint16
const (
	BPlusTree_Node_Which_leaf     BPlusTree_Node_Which = 0
	BPlusTree_Node_Which_interior BPlusTree_Node_Which = 1
)

func (BPlusTree_Node_Which) String

func (w BPlusTree_Node_Which) String() string

type BPlusTree_Node_interior

type BPlusTree_Node_interior BPlusTree_Node

func (BPlusTree_Node_interior) Branches

func (s BPlusTree_Node_interior) Branches() (KV_List, error)

func (BPlusTree_Node_interior) HasBranches

func (s BPlusTree_Node_interior) HasBranches() bool

func (BPlusTree_Node_interior) HasLeft

func (s BPlusTree_Node_interior) HasLeft() bool

func (BPlusTree_Node_interior) IsValid

func (s BPlusTree_Node_interior) IsValid() bool

func (BPlusTree_Node_interior) Left

func (BPlusTree_Node_interior) Message

func (s BPlusTree_Node_interior) Message() *capnp.Message

func (BPlusTree_Node_interior) NewBranches

func (s BPlusTree_Node_interior) NewBranches(n int32) (KV_List, error)

NewBranches sets the branches field to a newly allocated KV_List, preferring placement in s's segment.

func (BPlusTree_Node_interior) Segment

func (s BPlusTree_Node_interior) Segment() *capnp.Segment

func (BPlusTree_Node_interior) SetBranches

func (s BPlusTree_Node_interior) SetBranches(v KV_List) error

func (BPlusTree_Node_interior) SetLeft

type BPlusTree_Node_interior_Future

type BPlusTree_Node_interior_Future struct{ *capnp.Future }

BPlusTree_Node_interior_Future is a wrapper for a BPlusTree_Node_interior promised by a client call.

func (BPlusTree_Node_interior_Future) Left

func (BPlusTree_Node_interior_Future) Struct

type KV

type KV capnp.Struct

func NewKV

func NewKV(s *capnp.Segment) (KV, error)

func NewRootKV

func NewRootKV(s *capnp.Segment) (KV, error)

func ReadRootKV

func ReadRootKV(msg *capnp.Message) (KV, error)

func (KV) DecodeFromPtr

func (KV) DecodeFromPtr(p capnp.Ptr) KV

func (KV) EncodeAsPtr

func (s KV) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (KV) HasKey

func (s KV) HasKey() bool

func (KV) HasVal

func (s KV) HasVal() bool

func (KV) IsValid

func (s KV) IsValid() bool

func (KV) Key

func (s KV) Key() (capnp.Ptr, error)

func (KV) Message

func (s KV) Message() *capnp.Message

func (KV) Segment

func (s KV) Segment() *capnp.Segment

func (KV) SetKey

func (s KV) SetKey(v capnp.Ptr) error

func (KV) SetVal

func (s KV) SetVal(v capnp.Ptr) error

func (KV) String

func (s KV) String() string

func (KV) ToPtr

func (s KV) ToPtr() capnp.Ptr

func (KV) Val

func (s KV) Val() (capnp.Ptr, error)

type KV_Future

type KV_Future struct{ *capnp.Future }

KV_Future is a wrapper for a KV promised by a client call.

func (KV_Future) Key

func (p KV_Future) Key() *capnp.Future

func (KV_Future) Struct

func (f KV_Future) Struct() (KV, error)

func (KV_Future) Val

func (p KV_Future) Val() *capnp.Future

type KV_List

type KV_List = capnp.StructList[KV]

KV_List is a list of KV.

func NewKV_List

func NewKV_List(s *capnp.Segment, sz int32) (KV_List, error)

NewKV creates a new list of KV.

Jump to

Keyboard shortcuts

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