Documentation ¶
Index ¶
- Constants
- type BinaryFile
- func CreateBinaryFileByPRNG(path string, size int64) *BinaryFile
- func CreateBinaryFileByRandomSampling(path string, size int64, sourceFile *BinaryFile, keySize int) *BinaryFile
- func CreateBinaryFileFromReader(path, suffix string, size int64, reader io.Reader) *BinaryFile
- func OpenBinaryFile(path string) *BinaryFile
- type Felt
- type KeyBinaryFactory
- type KeyFactory
- type KeyValues
- type Keys
- type Node23
- type Node23Graph
- type RandomBinaryReader
- type Stats
- type Tree23
- func (t *Tree23) Delete(keyToDelete []Felt) *Tree23
- func (t *Tree23) DeleteWithStats(keysToDelete []Felt, stats *Stats) *Tree23
- func (t *Tree23) Graph(filename string, debug bool)
- func (t *Tree23) GraphAndPicture(filename string) error
- func (t *Tree23) GraphAndPictureDebug(filename string) error
- func (t *Tree23) Height() int
- func (t *Tree23) IsValid() (bool, error)
- func (t *Tree23) KeysInLevelOrder() []Felt
- func (t *Tree23) RootHash() []byte
- func (t *Tree23) Size() int
- func (t *Tree23) String() string
- func (t *Tree23) Upsert(kvItems KeyValues) *Tree23
- func (t *Tree23) UpsertWithStats(kvItems KeyValues, stats *Stats) *Tree23
- func (t *Tree23) WalkKeysPostOrder() []Felt
- func (t *Tree23) WalkPostOrder(w Walker) []interface{}
- type Walker
Constants ¶
View Source
const BLOCKSIZE int64 = 4096
Size in bytes of data blocks read/written from/to the file system.
View Source
const BufferSize uint = 4096
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryFile ¶
type BinaryFile struct {
// contains filtered or unexported fields
}
BinaryFile type represents an open binary file.
func CreateBinaryFileByPRNG ¶
func CreateBinaryFileByPRNG(path string, size int64) *BinaryFile
func CreateBinaryFileByRandomSampling ¶
func CreateBinaryFileByRandomSampling(path string, size int64, sourceFile *BinaryFile, keySize int) *BinaryFile
func CreateBinaryFileFromReader ¶
func CreateBinaryFileFromReader(path, suffix string, size int64, reader io.Reader) *BinaryFile
func OpenBinaryFile ¶
func OpenBinaryFile(path string) *BinaryFile
func (*BinaryFile) Close ¶
func (f *BinaryFile) Close()
func (*BinaryFile) Name ¶
func (f *BinaryFile) Name() string
func (*BinaryFile) NewReader ¶
func (f *BinaryFile) NewReader() *bufio.Reader
func (*BinaryFile) Size ¶
func (f *BinaryFile) Size() int64
type KeyBinaryFactory ¶
type KeyBinaryFactory struct {
// contains filtered or unexported fields
}
func (*KeyBinaryFactory) NewUniqueKeyValues ¶
func (factory *KeyBinaryFactory) NewUniqueKeyValues(reader *bufio.Reader) KeyValues
func (*KeyBinaryFactory) NewUniqueKeys ¶
func (factory *KeyBinaryFactory) NewUniqueKeys(reader *bufio.Reader) Keys
type KeyFactory ¶
type KeyFactory interface { NewUniqueKeyValues(reader *bufio.Reader) KeyValues NewUniqueKeys(reader *bufio.Reader) Keys }
func NewKeyBinaryFactory ¶
func NewKeyBinaryFactory(keySize int) KeyFactory
type Node23Graph ¶
type Node23Graph struct {
// contains filtered or unexported fields
}
func NewGraph ¶
func NewGraph(node *Node23) *Node23Graph
type RandomBinaryReader ¶
type RandomBinaryReader struct {
// contains filtered or unexported fields
}
RandomBinaryReader reads data chuncks randomly from a binary file.
type Tree23 ¶
type Tree23 struct {
// contains filtered or unexported fields
}
func NewEmptyTree23 ¶
func NewEmptyTree23() *Tree23
func (*Tree23) DeleteWithStats ¶
func (*Tree23) GraphAndPicture ¶
func (*Tree23) GraphAndPictureDebug ¶
func (*Tree23) KeysInLevelOrder ¶
func (*Tree23) UpsertWithStats ¶
func (*Tree23) WalkKeysPostOrder ¶
func (*Tree23) WalkPostOrder ¶
Click to show internal directories.
Click to hide internal directories.