SYMBOL INDEX (1493 symbols across 86 files) FILE: backup.go constant flushThreshold (line 27) | flushThreshold = 100 << 20 method Backup (line 39) | func (db *DB) Backup(w io.Writer, since uint64) (uint64, error) { method Backup (line 54) | func (stream *Stream) Backup(w io.Writer, since uint64) (uint64, error) { function writeTo (line 139) | func writeTo(list *pb.KVList, w io.Writer) error { type KVLoader (line 152) | type KVLoader struct method Set (line 170) | func (l *KVLoader) Set(kv *pb.KV) error { method send (line 200) | func (l *KVLoader) send() error { method Finish (line 217) | func (l *KVLoader) Finish() error { method NewKVLoader (line 161) | func (db *DB) NewKVLoader(maxPendingWrites int) *KVLoader { method Load (line 233) | func (db *DB) Load(r io.Reader, maxPendingWrites int) error { FILE: backup_test.go function TestBackupRestore1 (line 24) | func TestBackupRestore1(t *testing.T) { function TestBackupRestore2 (line 108) | func TestBackupRestore2(t *testing.T) { function createEntries (line 237) | func createEntries(n int) []*pb.KV { function populateEntries (line 250) | func populateEntries(db *DB, entries []*pb.KV) error { function TestBackup (line 263) | func TestBackup(t *testing.T) { function TestBackupRestore3 (line 315) | func TestBackupRestore3(t *testing.T) { function TestBackupLoadIncremental (line 377) | func TestBackupLoadIncremental(t *testing.T) { function TestBackupBitClear (line 497) | func TestBackupBitClear(t *testing.T) { FILE: batch.go type WriteBatch (line 22) | type WriteBatch struct method SetMaxPendingTxns (line 58) | func (wb *WriteBatch) SetMaxPendingTxns(max int) { method Cancel (line 69) | func (wb *WriteBatch) Cancel() { method callback (line 79) | func (wb *WriteBatch) callback(err error) { method writeKV (line 91) | func (wb *WriteBatch) writeKV(kv *pb.KV) error { method Write (line 101) | func (wb *WriteBatch) Write(buf *z.Buffer) error { method WriteList (line 115) | func (wb *WriteBatch) WriteList(kvList *pb.KVList) error { method SetEntryAt (line 128) | func (wb *WriteBatch) SetEntryAt(e *Entry, ts uint64) error { method handleEntry (line 137) | func (wb *WriteBatch) handleEntry(e *Entry) error { method SetEntry (line 155) | func (wb *WriteBatch) SetEntry(e *Entry) error { method Set (line 162) | func (wb *WriteBatch) Set(k, v []byte) error { method DeleteAt (line 168) | func (wb *WriteBatch) DeleteAt(k []byte, ts uint64) error { method Delete (line 174) | func (wb *WriteBatch) Delete(k []byte) error { method commit (line 192) | func (wb *WriteBatch) commit() error { method Flush (line 211) | func (wb *WriteBatch) Flush() error { method Error (line 233) | func (wb *WriteBatch) Error() error { method NewWriteBatch (line 39) | func (db *DB) NewWriteBatch() *WriteBatch { method newWriteBatch (line 46) | func (db *DB) newWriteBatch(isManaged bool) *WriteBatch { FILE: batch_test.go function TestWriteBatch (line 19) | func TestWriteBatch(t *testing.T) { function TestEmptyWriteBatch (line 87) | func TestEmptyWriteBatch(t *testing.T) { function TestFlushPanic (line 129) | func TestFlushPanic(t *testing.T) { function TestBatchErrDeadlock (line 146) | func TestBatchErrDeadlock(t *testing.T) { FILE: compaction.go type keyRange (line 19) | type keyRange struct method isEmpty (line 26) | func (r keyRange) isEmpty() bool { method String (line 32) | func (r keyRange) String() string { method equals (line 36) | func (r keyRange) equals(dst keyRange) bool { method extend (line 42) | func (r *keyRange) extend(kr keyRange) { method overlapsWith (line 61) | func (r keyRange) overlapsWith(dst keyRange) bool { function getKeyRange (line 92) | func getKeyRange(tables ...*table.Table) keyRange { type levelCompactStatus (line 115) | type levelCompactStatus struct method debug (line 120) | func (lcs *levelCompactStatus) debug() string { method overlapsWith (line 128) | func (lcs *levelCompactStatus) overlapsWith(dst keyRange) bool { method remove (line 137) | func (lcs *levelCompactStatus) remove(dst keyRange) bool { type compactStatus (line 151) | type compactStatus struct method overlapsWith (line 157) | func (cs *compactStatus) overlapsWith(level int, this keyRange) bool { method delSize (line 165) | func (cs *compactStatus) delSize(l int) int64 { method compareAndAdd (line 175) | func (cs *compactStatus) compareAndAdd(_ thisAndNextLevelRLocked, cd c... method delete (line 204) | func (cs *compactStatus) delete(cd compactDef) { type thisAndNextLevelRLocked (line 171) | type thisAndNextLevelRLocked struct FILE: db.go type closers (line 42) | type closers struct type lockedKeys (line 52) | type lockedKeys struct method add (line 57) | func (lk *lockedKeys) add(key uint64) { method has (line 63) | func (lk *lockedKeys) has(key uint64) bool { method all (line 70) | func (lk *lockedKeys) all() []uint64 { type DB (line 82) | type DB struct method initBannedNamespaces (line 396) | func (db *DB) initBannedNamespaces() error { method MaxVersion (line 415) | func (db *DB) MaxVersion() uint64 { method monitorCache (line 437) | func (db *DB) monitorCache(c *z.Closer) { method cleanup (line 475) | func (db *DB) cleanup() { method BlockCacheMetrics (line 501) | func (db *DB) BlockCacheMetrics() *ristretto.Metrics { method IndexCacheMetrics (line 509) | func (db *DB) IndexCacheMetrics() *ristretto.Metrics { method Close (line 518) | func (db *DB) Close() error { method IsClosed (line 528) | func (db *DB) IsClosed() bool { method close (line 532) | func (db *DB) close() (err error) { method VerifyChecksum (line 663) | func (db *DB) VerifyChecksum() error { method Sync (line 673) | func (db *DB) Sync() error { method getMemTables (line 709) | func (db *DB) getMemTables() ([]*memTable, func()) { method get (line 749) | func (db *DB) get(key []byte) (y.ValueStruct, error) { method writeToLSM (line 784) | func (db *DB) writeToLSM(b *request) error { method writeRequests (line 828) | func (db *DB) writeRequests(reqs []*request) error { method sendToWriteCh (line 883) | func (db *DB) sendToWriteCh(entries []*Entry) (*request, error) { method doWrites (line 910) | func (db *DB) doWrites(lc *z.Closer) { method batchSet (line 978) | func (db *DB) batchSet(entries []*Entry) error { method batchSetAsync (line 994) | func (db *DB) batchSetAsync(entries []*Entry, f func(error)) error { method ensureRoomForWrite (line 1010) | func (db *DB) ensureRoomForWrite() error { method handleMemTableFlush (line 1063) | func (db *DB) handleMemTableFlush(mt *memTable, dropPrefixes [][]byte)... method flushMemtable (line 1097) | func (db *DB) flushMemtable(lc *z.Closer) { method calculateSize (line 1143) | func (db *DB) calculateSize() { method updateSize (line 1183) | func (db *DB) updateSize(lc *z.Closer) { method RunValueLogGC (line 1229) | func (db *DB) RunValueLogGC(discardRatio float64) error { method Size (line 1243) | func (db *DB) Size() (lsm, vlog int64) { method GetSequence (line 1349) | func (db *DB) GetSequence(key []byte, bandwidth uint64) (*Sequence, er... method Tables (line 1373) | func (db *DB) Tables() []TableInfo { method Levels (line 1378) | func (db *DB) Levels() []LevelInfo { method EstimateSize (line 1383) | func (db *DB) EstimateSize(prefix []byte) (uint64, uint64) { method Ranges (line 1398) | func (db *DB) Ranges(prefix []byte, numRanges int) []*keyRange { method MaxBatchCount (line 1512) | func (db *DB) MaxBatchCount() int64 { method MaxBatchSize (line 1517) | func (db *DB) MaxBatchSize() int64 { method stopMemoryFlush (line 1521) | func (db *DB) stopMemoryFlush() { method stopCompactions (line 1529) | func (db *DB) stopCompactions() { method startCompactions (line 1536) | func (db *DB) startCompactions() { method startMemoryFlush (line 1544) | func (db *DB) startMemoryFlush() { method Flatten (line 1560) | func (db *DB) Flatten(workers int) error { method blockWrite (line 1628) | func (db *DB) blockWrite() error { method unblockWrite (line 1640) | func (db *DB) unblockWrite() { method prepareToDrop (line 1648) | func (db *DB) prepareToDrop() (func(), error) { method DropAll (line 1688) | func (db *DB) DropAll() error { method dropAll (line 1696) | func (db *DB) dropAll() (func(), error) { method DropPrefix (line 1754) | func (db *DB) DropPrefix(prefixes ...[]byte) error { method filterPrefixesToDrop (line 1807) | func (db *DB) filterPrefixesToDrop(prefixes [][]byte) ([][]byte, error) { method isBanned (line 1831) | func (db *DB) isBanned(key []byte) error { method BanNamespace (line 1845) | func (db *DB) BanNamespace(ns uint64) error { method BannedNamespaces (line 1868) | func (db *DB) BannedNamespaces() []uint64 { method Subscribe (line 1883) | func (db *DB) Subscribe(ctx context.Context, cb func(kv *KVList) error... method syncDir (line 1950) | func (db *DB) syncDir(dir string) error { method StreamDB (line 1979) | func (db *DB) StreamDB(outOptions Options) error { method Opts (line 2010) | func (db *DB) Opts() Options { method CacheMaxCost (line 2025) | func (db *DB) CacheMaxCost(cache CacheType, maxCost int64) (int64, err... method LevelsToString (line 2053) | func (db *DB) LevelsToString() string { constant kvWriteChCapacity (line 122) | kvWriteChCapacity = 1000 function checkAndSetOptions (line 125) | func checkAndSetOptions(opt *Options) error { function Open (line 177) | func Open(opt Options) (*DB, error) { constant lockFile (line 668) | lockFile = "LOCK" function arenaSize (line 1038) | func arenaSize(opt Options) int64 { function buildL0Table (line 1043) | func buildL0Table(iter y.Iterator, dropPrefixes [][]byte, bopts table.Op... function exists (line 1130) | func exists(path string) (bool, error) { type Sequence (line 1254) | type Sequence struct method Next (line 1265) | func (seq *Sequence) Next() (uint64, error) { method Release (line 1281) | func (seq *Sequence) Release() error { method updateLease (line 1313) | func (seq *Sequence) updateLease() error { function createDirs (line 1957) | func createDirs(opt Options) error { type CacheType (line 2014) | type CacheType constant BlockCache (line 2017) | BlockCache CacheType = iota constant IndexCache (line 2018) | IndexCache FILE: db2_test.go function TestTruncateVlogWithClose (line 34) | func TestTruncateVlogWithClose(t *testing.T) { function TestTruncateVlogNoClose (line 115) | func TestTruncateVlogNoClose(t *testing.T) { function TestTruncateVlogNoClose2 (line 135) | func TestTruncateVlogNoClose2(t *testing.T) { function TestTruncateVlogNoClose3 (line 167) | func TestTruncateVlogNoClose3(t *testing.T) { function TestBigKeyValuePairs (line 194) | func TestBigKeyValuePairs(t *testing.T) { function TestPushValueLogLimit (line 285) | func TestPushValueLogLimit(t *testing.T) { function BenchmarkDBOpen (line 335) | func BenchmarkDBOpen(b *testing.B) { function TestBigValues (line 351) | func TestBigValues(t *testing.T) { function TestCompactionFilePicking (line 415) | func TestCompactionFilePicking(t *testing.T) { function addToManifest (line 482) | func addToManifest(t *testing.T, db *DB, tab *table.Table, level uint32,... function createTableWithRange (line 495) | func createTableWithRange(t *testing.T, db *DB, start, end int) *table.T... function TestReadSameVlog (line 514) | func TestReadSameVlog(t *testing.T) { function TestL0GCBug (line 566) | func TestL0GCBug(t *testing.T) { function TestWindowsDataLoss (line 659) | func TestWindowsDataLoss(t *testing.T) { function TestDropPrefixWithNoData (line 735) | func TestDropPrefixWithNoData(t *testing.T) { function TestDropAllDropPrefix (line 759) | func TestDropAllDropPrefix(t *testing.T) { function TestIsClosed (line 811) | func TestIsClosed(t *testing.T) { function TestMaxVersion (line 842) | func TestMaxVersion(t *testing.T) { function TestTxnReadTs (line 909) | func TestTxnReadTs(t *testing.T) { function TestKeyCount (line 930) | func TestKeyCount(t *testing.T) { function TestAssertValueLogIsNotWrittenToOnStartup (line 1052) | func TestAssertValueLogIsNotWrittenToOnStartup(t *testing.T) { FILE: db_test.go function waitForMessage (line 35) | func waitForMessage(ch chan string, expected string, count int, timeout ... type summary (line 69) | type summary struct method getSummary (line 73) | func (s *levelsController) getSummary() *summary { method getSummary (line 83) | func (s *levelHandler) getSummary(sum *summary) { method validate (line 91) | func (s *DB) validate() error { return s.lc.validate() } function getTestOptions (line 93) | func getTestOptions(dir string) Options { function getItemValue (line 100) | func getItemValue(t *testing.T, item *Item) (val []byte) { function txnSet (line 119) | func txnSet(t *testing.T, kv *DB, key []byte, val []byte, meta byte) { function txnDelete (line 125) | func txnDelete(t *testing.T, kv *DB, key []byte) { function runBadgerTest (line 132) | func runBadgerTest(t *testing.T, opts *Options, test func(t *testing.T, ... function TestReverseIterator (line 156) | func TestReverseIterator(t *testing.T) { function TestWrite (line 194) | func TestWrite(t *testing.T) { function TestUpdateAndView (line 202) | func TestUpdateAndView(t *testing.T) { function TestConcurrentWrite (line 238) | func TestConcurrentWrite(t *testing.T) { function TestGet (line 289) | func TestGet(t *testing.T) { function TestGetAfterDelete (line 353) | func TestGetAfterDelete(t *testing.T) { function TestTxnTooBig (line 369) | func TestTxnTooBig(t *testing.T) { function TestForceCompactL0 (line 400) | func TestForceCompactL0(t *testing.T) { function TestStreamDB (line 436) | func TestStreamDB(t *testing.T) { function dirSize (line 485) | func dirSize(path string) (int64, error) { function BenchmarkDbGrowth (line 512) | func BenchmarkDbGrowth(b *testing.B) { function TestGetMore (line 589) | func TestGetMore(t *testing.T) { function TestExistsMore (line 694) | func TestExistsMore(t *testing.T) { function TestIterate2Basic (line 770) | func TestIterate2Basic(t *testing.T) { function TestLoad (line 845) | func TestLoad(t *testing.T) { function TestIterateDeleted (line 935) | func TestIterateDeleted(t *testing.T) { function TestIterateParallel (line 985) | func TestIterateParallel(t *testing.T) { function TestDeleteWithoutSyncWrite (line 1079) | func TestDeleteWithoutSyncWrite(t *testing.T) { function TestPidFile (line 1110) | func TestPidFile(t *testing.T) { function TestInvalidKey (line 1119) | func TestInvalidKey(t *testing.T) { function TestIteratorPrefetchSize (line 1148) | func TestIteratorPrefetchSize(t *testing.T) { function TestSetIfAbsentAsync (line 1192) | func TestSetIfAbsentAsync(t *testing.T) { function TestGetSetRace (line 1235) | func TestGetSetRace(t *testing.T) { function TestDiscardVersionsBelow (line 1283) | func TestDiscardVersionsBelow(t *testing.T) { function TestExpiry (line 1340) | func TestExpiry(t *testing.T) { function TestExpiryImproperDBClose (line 1385) | func TestExpiryImproperDBClose(t *testing.T) { function randBytes (line 1449) | func randBytes(n int) []byte { function TestLargeKeys (line 1471) | func TestLargeKeys(t *testing.T) { function TestCreateDirs (line 1512) | func TestCreateDirs(t *testing.T) { function TestGetSetDeadlock (line 1524) | func TestGetSetDeadlock(t *testing.T) { function TestWriteDeadlock (line 1567) | func TestWriteDeadlock(t *testing.T) { function TestSequence (line 1620) | func TestSequence(t *testing.T) { function TestSequence_Release (line 1671) | func TestSequence_Release(t *testing.T) { function TestTestSequence2 (line 1717) | func TestTestSequence2(t *testing.T) { function TestReadOnly (line 1744) | func TestReadOnly(t *testing.T) { function TestLSMOnly (line 1816) | func TestLSMOnly(t *testing.T) { function TestMinReadTs (line 1852) | func TestMinReadTs(t *testing.T) { function TestGoroutineLeak (line 1894) | func TestGoroutineLeak(t *testing.T) { function ExampleOpen (line 1944) | func ExampleOpen() { function ExampleTxn_NewIterator (line 1999) | func ExampleTxn_NewIterator() { function TestSyncForRace (line 2055) | func TestSyncForRace(t *testing.T) { function TestSyncForNoErrors (line 2103) | func TestSyncForNoErrors(t *testing.T) { function TestSyncForReadingTheEntriesThatWereSynced (line 2129) | func TestSyncForReadingTheEntriesThatWereSynced(t *testing.T) { function TestForceFlushMemtable (line 2164) | func TestForceFlushMemtable(t *testing.T) { function TestVerifyChecksum (line 2202) | func TestVerifyChecksum(t *testing.T) { function TestMain (line 2254) | func TestMain(m *testing.M) { function removeDir (line 2259) | func removeDir(dir string) { function TestWriteInemory (line 2265) | func TestWriteInemory(t *testing.T) { function TestMinCacheSize (line 2292) | func TestMinCacheSize(t *testing.T) { function TestUpdateMaxCost (line 2305) | func TestUpdateMaxCost(t *testing.T) { function TestOpenDBReadOnly (line 2335) | func TestOpenDBReadOnly(t *testing.T) { function TestBannedPrefixes (line 2412) | func TestBannedPrefixes(t *testing.T) { function TestIterateWithBanned (line 2494) | func TestIterateWithBanned(t *testing.T) { function TestBannedAtZeroOffset (line 2597) | func TestBannedAtZeroOffset(t *testing.T) { function TestCompactL0OnClose (line 2637) | func TestCompactL0OnClose(t *testing.T) { function TestCloseDBWhileReading (line 2666) | func TestCloseDBWhileReading(t *testing.T) { FILE: dir_aix.go type directoryLockGuard (line 26) | type directoryLockGuard struct method release (line 105) | func (guard *directoryLockGuard) release() error { type aixFlock (line 35) | type aixFlock struct function acquireDirectoryLock (line 48) | func acquireDirectoryLock(dirPath string, pidFileName string, readOnly b... function openDir (line 134) | func openDir(path string) (*os.File, error) { return os.Open(path) } function syncDir (line 139) | func syncDir(dir string) error { FILE: dir_other.go type directoryLockGuard (line 21) | type directoryLockGuard struct method release (line 64) | func (guard *directoryLockGuard) release() error { function acquireDirectoryLock (line 33) | func acquireDirectoryLock(dirPath string, pidFileName string, readOnly b... function openDir (line 81) | func openDir(path string) (*os.File, error) { return os.Open(path) } function syncDir (line 86) | func syncDir(dir string) error { FILE: dir_plan9.go type directoryLockGuard (line 19) | type directoryLockGuard struct method release (line 79) | func (guard *directoryLockGuard) release() error { function acquireDirectoryLock (line 29) | func acquireDirectoryLock(dirPath string, pidFileName string, readOnly b... function openDir (line 93) | func openDir(path string) (*os.File, error) { return os.Open(path) } function syncDir (line 98) | func syncDir(dir string) error { function isLocked (line 130) | func isLocked(err error) bool { FILE: dir_unix.go type directoryLockGuard (line 23) | type directoryLockGuard struct method release (line 74) | func (guard *directoryLockGuard) release() error { function acquireDirectoryLock (line 35) | func acquireDirectoryLock(dirPath string, pidFileName string, readOnly b... function openDir (line 91) | func openDir(path string) (*os.File, error) { return os.Open(path) } function syncDir (line 96) | func syncDir(dir string) error { FILE: dir_windows.go constant FILE_ATTRIBUTE_TEMPORARY (line 26) | FILE_ATTRIBUTE_TEMPORARY = 0x00000100 constant FILE_FLAG_DELETE_ON_CLOSE (line 27) | FILE_FLAG_DELETE_ON_CLOSE = 0x04000000 function openDir (line 30) | func openDir(path string) (*os.File, error) { function openDirWin (line 38) | func openDirWin(path string) (fd syscall.Handle, err error) { type directoryLockGuard (line 54) | type directoryLockGuard struct method release (line 93) | func (g *directoryLockGuard) release() error { function acquireDirectoryLock (line 60) | func acquireDirectoryLock(dirPath string, pidFileName string, readOnly b... function syncDir (line 100) | func syncDir(dir string) error { return nil } FILE: discard.go type discardStats (line 21) | type discardStats struct method Len (line 59) | func (lf *discardStats) Len() int { method Less (line 62) | func (lf *discardStats) Less(i, j int) bool { method Swap (line 65) | func (lf *discardStats) Swap(i, j int) { method get (line 75) | func (lf *discardStats) get(offset int) uint64 { method set (line 78) | func (lf *discardStats) set(offset int, val uint64) { method zeroOut (line 83) | func (lf *discardStats) zeroOut() { method maxSlot (line 88) | func (lf *discardStats) maxSlot() int { method Update (line 95) | func (lf *discardStats) Update(fidu uint32, discard int64) int64 { method Iterate (line 137) | func (lf *discardStats) Iterate(f func(fid, stats uint64)) { method MaxDiscard (line 145) | func (lf *discardStats) MaxDiscard() (uint32, int64) { constant discardFname (line 29) | discardFname string = "DISCARD" function InitDiscardStats (line 31) | func InitDiscardStats(opt Options) (*discardStats, error) { FILE: discard_test.go function TestDiscardStats (line 15) | func TestDiscardStats(t *testing.T) { function TestReloadDiscardStats (line 45) | func TestReloadDiscardStats(t *testing.T) { FILE: errors.go constant ValueThresholdLimit (line 15) | ValueThresholdLimit = math.MaxUint16 - 16 + 1 FILE: fb/BlockOffset.go type BlockOffset (line 9) | type BlockOffset struct method Init (line 20) | func (rcv *BlockOffset) Init(buf []byte, i flatbuffers.UOffsetT) { method Table (line 25) | func (rcv *BlockOffset) Table() flatbuffers.Table { method Key (line 29) | func (rcv *BlockOffset) Key(j int) byte { method KeyLength (line 38) | func (rcv *BlockOffset) KeyLength() int { method KeyBytes (line 46) | func (rcv *BlockOffset) KeyBytes() []byte { method MutateKey (line 54) | func (rcv *BlockOffset) MutateKey(j int, n byte) bool { method Offset (line 63) | func (rcv *BlockOffset) Offset() uint32 { method MutateOffset (line 71) | func (rcv *BlockOffset) MutateOffset(n uint32) bool { method Len (line 75) | func (rcv *BlockOffset) Len() uint32 { method MutateLen (line 83) | func (rcv *BlockOffset) MutateLen(n uint32) bool { function GetRootAsBlockOffset (line 13) | func GetRootAsBlockOffset(buf []byte, offset flatbuffers.UOffsetT) *Bloc... function BlockOffsetStart (line 87) | func BlockOffsetStart(builder *flatbuffers.Builder) { function BlockOffsetAddKey (line 90) | func BlockOffsetAddKey(builder *flatbuffers.Builder, key flatbuffers.UOf... function BlockOffsetStartKeyVector (line 93) | func BlockOffsetStartKeyVector(builder *flatbuffers.Builder, numElems in... function BlockOffsetAddOffset (line 96) | func BlockOffsetAddOffset(builder *flatbuffers.Builder, offset uint32) { function BlockOffsetAddLen (line 99) | func BlockOffsetAddLen(builder *flatbuffers.Builder, len uint32) { function BlockOffsetEnd (line 102) | func BlockOffsetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { FILE: fb/TableIndex.go type TableIndex (line 9) | type TableIndex struct method Init (line 20) | func (rcv *TableIndex) Init(buf []byte, i flatbuffers.UOffsetT) { method Table (line 25) | func (rcv *TableIndex) Table() flatbuffers.Table { method Offsets (line 29) | func (rcv *TableIndex) Offsets(obj *BlockOffset, j int) bool { method OffsetsLength (line 41) | func (rcv *TableIndex) OffsetsLength() int { method BloomFilter (line 49) | func (rcv *TableIndex) BloomFilter(j int) byte { method BloomFilterLength (line 58) | func (rcv *TableIndex) BloomFilterLength() int { method BloomFilterBytes (line 66) | func (rcv *TableIndex) BloomFilterBytes() []byte { method MutateBloomFilter (line 74) | func (rcv *TableIndex) MutateBloomFilter(j int, n byte) bool { method MaxVersion (line 83) | func (rcv *TableIndex) MaxVersion() uint64 { method MutateMaxVersion (line 91) | func (rcv *TableIndex) MutateMaxVersion(n uint64) bool { method KeyCount (line 95) | func (rcv *TableIndex) KeyCount() uint32 { method MutateKeyCount (line 103) | func (rcv *TableIndex) MutateKeyCount(n uint32) bool { method UncompressedSize (line 107) | func (rcv *TableIndex) UncompressedSize() uint32 { method MutateUncompressedSize (line 115) | func (rcv *TableIndex) MutateUncompressedSize(n uint32) bool { method OnDiskSize (line 119) | func (rcv *TableIndex) OnDiskSize() uint32 { method MutateOnDiskSize (line 127) | func (rcv *TableIndex) MutateOnDiskSize(n uint32) bool { method StaleDataSize (line 131) | func (rcv *TableIndex) StaleDataSize() uint32 { method MutateStaleDataSize (line 139) | func (rcv *TableIndex) MutateStaleDataSize(n uint32) bool { function GetRootAsTableIndex (line 13) | func GetRootAsTableIndex(buf []byte, offset flatbuffers.UOffsetT) *Table... function TableIndexStart (line 143) | func TableIndexStart(builder *flatbuffers.Builder) { function TableIndexAddOffsets (line 146) | func TableIndexAddOffsets(builder *flatbuffers.Builder, offsets flatbuff... function TableIndexStartOffsetsVector (line 149) | func TableIndexStartOffsetsVector(builder *flatbuffers.Builder, numElems... function TableIndexAddBloomFilter (line 152) | func TableIndexAddBloomFilter(builder *flatbuffers.Builder, bloomFilter ... function TableIndexStartBloomFilterVector (line 155) | func TableIndexStartBloomFilterVector(builder *flatbuffers.Builder, numE... function TableIndexAddMaxVersion (line 158) | func TableIndexAddMaxVersion(builder *flatbuffers.Builder, maxVersion ui... function TableIndexAddKeyCount (line 161) | func TableIndexAddKeyCount(builder *flatbuffers.Builder, keyCount uint32) { function TableIndexAddUncompressedSize (line 164) | func TableIndexAddUncompressedSize(builder *flatbuffers.Builder, uncompr... function TableIndexAddOnDiskSize (line 167) | func TableIndexAddOnDiskSize(builder *flatbuffers.Builder, onDiskSize ui... function TableIndexAddStaleDataSize (line 170) | func TableIndexAddStaleDataSize(builder *flatbuffers.Builder, staleDataS... function TableIndexEnd (line 173) | func TableIndexEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { FILE: histogram.go method PrintHistogram (line 16) | func (db *DB) PrintHistogram(keyPrefix []byte) { type histogramData (line 29) | type histogramData struct method Update (line 79) | func (histogram *histogramData) Update(value int64) { method printHistogram (line 127) | func (histogram histogramData) printHistogram() { type sizeHistogram (line 39) | type sizeHistogram struct function newSizeHistogram (line 45) | func newSizeHistogram() *sizeHistogram { function createHistogramBins (line 69) | func createHistogramBins(minExponent, maxExponent uint32) []int64 { method buildHistogram (line 108) | func (db *DB) buildHistogram(keyPrefix []byte) *sizeHistogram { FILE: histogram_test.go function TestBuildKeyValueSizeHistogram (line 14) | func TestBuildKeyValueSizeHistogram(t *testing.T) { FILE: integration/testgc/main.go type testSuite (line 28) | type testSuite struct method write (line 41) | func (s *testSuite) write(db *badger.DB) error { method read (line 70) | func (s *testSuite) read(db *badger.DB) error { function encoded (line 35) | func encoded(i uint64) []byte { function main (line 104) | func main() { FILE: iterator.go type prefetchStatus (line 22) | type prefetchStatus constant prefetched (line 25) | prefetched prefetchStatus = iota + 1 type Item (line 30) | type Item struct method String (line 49) | func (item *Item) String() string { method Key (line 57) | func (item *Item) Key() []byte { method KeyCopy (line 64) | func (item *Item) KeyCopy(dst []byte) []byte { method Version (line 69) | func (item *Item) Version() uint64 { method Value (line 83) | func (item *Item) Value(fn func(val []byte) error) error { method ValueCopy (line 110) | func (item *Item) ValueCopy(dst []byte) ([]byte, error) { method hasValue (line 120) | func (item *Item) hasValue() bool { method IsDeletedOrExpired (line 129) | func (item *Item) IsDeletedOrExpired() bool { method DiscardEarlierVersions (line 135) | func (item *Item) DiscardEarlierVersions() bool { method yieldItemValue (line 139) | func (item *Item) yieldItemValue() ([]byte, func(), error) { method prefetchValue (line 197) | func (item *Item) prefetchValue() { method EstimatedSize (line 216) | func (item *Item) EstimatedSize() int64 { method KeySize (line 230) | func (item *Item) KeySize() int64 { method ValueSize (line 238) | func (item *Item) ValueSize() int64 { method UserMeta (line 256) | func (item *Item) UserMeta() byte { method ExpiresAt (line 262) | func (item *Item) ExpiresAt() uint64 { function runCallback (line 191) | func runCallback(cb func()) { type list (line 267) | type list struct method push (line 272) | func (l *list) push(i *Item) { method pop (line 283) | func (l *list) pop() *Item { type IteratorOptions (line 304) | type IteratorOptions struct method compareToPrefix (line 323) | func (opt *IteratorOptions) compareToPrefix(key []byte) int { method pickTable (line 332) | func (opt *IteratorOptions) pickTable(t table.TableInterface) bool { method pickTables (line 356) | func (opt *IteratorOptions) pickTables(all []*table.Table) []*table.Ta... type Iterator (line 426) | type Iterator struct method newItem (line 506) | func (it *Iterator) newItem() *Item { method Item (line 516) | func (it *Iterator) Item() *Item { method Valid (line 523) | func (it *Iterator) Valid() bool { method ValidForPrefix (line 535) | func (it *Iterator) ValidForPrefix(prefix []byte) bool { method Close (line 540) | func (it *Iterator) Close() { method Next (line 570) | func (it *Iterator) Next() { method parseItem (line 607) | func (it *Iterator) parseItem() bool { method fill (line 696) | func (it *Iterator) fill(item *Item) { method prefetch (line 726) | func (it *Iterator) prefetch() { method Seek (line 749) | func (it *Iterator) Seek(key []byte) { method Rewind (line 783) | func (it *Iterator) Rewind() { method NewIterator (line 459) | func (txn *Txn) NewIterator(opt IteratorOptions) *Iterator { method NewKeyIterator (line 496) | func (txn *Txn) NewKeyIterator(key []byte, opt IteratorOptions) *Iterator { function isDeletedOrExpired (line 590) | func isDeletedOrExpired(meta byte, expiresAt uint64) bool { function hasPrefix (line 717) | func hasPrefix(it *Iterator) bool { FILE: iterator_test.go type tableMock (line 25) | type tableMock struct method Smallest (line 29) | func (tm *tableMock) Smallest() []byte { return tm.left } method Biggest (line 30) | func (tm *tableMock) Biggest() []byte { return tm.right } method DoesNotHave (line 31) | func (tm *tableMock) DoesNotHave(hash uint32) bool { return false } method MaxVersion (line 32) | func (tm *tableMock) MaxVersion() uint64 { return math.MaxUi... function TestPickTables (line 34) | func TestPickTables(t *testing.T) { function TestPickSortTables (line 65) | func TestPickSortTables(t *testing.T) { function TestIterateSinceTs (line 117) | func TestIterateSinceTs(t *testing.T) { function TestIterateSinceTsWithPendingWrites (line 153) | func TestIterateSinceTsWithPendingWrites(t *testing.T) { function TestIteratePrefix (line 171) | func TestIteratePrefix(t *testing.T) { function TestIteratorReadOnlyWithNoData (line 285) | func TestIteratorReadOnlyWithNoData(t *testing.T) { function BenchmarkIteratePrefixSingleKey (line 350) | func BenchmarkIteratePrefixSingleKey(b *testing.B) { FILE: key_registry.go constant KeyRegistryFileName (line 27) | KeyRegistryFileName = "KEYREGISTRY" constant KeyRegistryRewriteFileName (line 29) | KeyRegistryRewriteFileName = "REWRITE-KEYREGISTRY" type KeyRegistry (line 36) | type KeyRegistry struct method DataKey (line 288) | func (kr *KeyRegistry) DataKey(id uint64) (*pb.DataKey, error) { method LatestDataKey (line 305) | func (kr *KeyRegistry) LatestDataKey() (*pb.DataKey, error) { method Close (line 372) | func (kr *KeyRegistry) Close() error { type KeyRegistryOptions (line 45) | type KeyRegistryOptions struct function newKeyRegistry (line 54) | func newKeyRegistry(opt KeyRegistryOptions) *KeyRegistry { function OpenKeyRegistry (line 64) | func OpenKeyRegistry(opt KeyRegistryOptions) (*KeyRegistry, error) { type keyRegistryIterator (line 122) | type keyRegistryIterator struct method next (line 163) | func (kri *keyRegistryIterator) next() (*pb.DataKey, error) { function newKeyRegistryIterator (line 131) | func newKeyRegistryIterator(fp *os.File, encryptionKey []byte) (*keyRegi... function validRegistry (line 140) | func validRegistry(fp *os.File, encryptionKey []byte) error { function readKeyRegistry (line 201) | func readKeyRegistry(fp *os.File, opt KeyRegistryOptions) (*KeyRegistry,... function WriteKeyRegistry (line 239) | func WriteKeyRegistry(reg *KeyRegistry, opt KeyRegistryOptions) error { function storeDataKey (line 380) | func storeDataKey(buf *bytes.Buffer, storageKey []byte, k *pb.DataKey) e... FILE: key_registry_test.go function getRegistryTestOptions (line 16) | func getRegistryTestOptions(dir string, key []byte) KeyRegistryOptions { function TestBuildRegistry (line 23) | func TestBuildRegistry(t *testing.T) { function TestRewriteRegistry (line 55) | func TestRewriteRegistry(t *testing.T) { function TestMismatch (line 81) | func TestMismatch(t *testing.T) { function TestEncryptionAndDecryption (line 106) | func TestEncryptionAndDecryption(t *testing.T) { function TestKeyRegistryInMemory (line 129) | func TestKeyRegistryInMemory(t *testing.T) { FILE: level_handler.go type levelHandler (line 17) | type levelHandler struct method isLastLevel (line 34) | func (s *levelHandler) isLastLevel() bool { method getTotalStaleSize (line 38) | func (s *levelHandler) getTotalStaleSize() int64 { method getTotalSize (line 44) | func (s *levelHandler) getTotalSize() int64 { method initTables (line 51) | func (s *levelHandler) initTables(tables []*table.Table) { method deleteTables (line 77) | func (s *levelHandler) deleteTables(toDel []*table.Table) error { method replaceTables (line 104) | func (s *levelHandler) replaceTables(toDel, toAdd []*table.Table) error { method addTable (line 145) | func (s *levelHandler) addTable(t *table.Table) { method sortTables (line 156) | func (s *levelHandler) sortTables() { method tryAddLevel0Table (line 183) | func (s *levelHandler) tryAddLevel0Table(t *table.Table) bool { method addSize (line 201) | func (s *levelHandler) addSize(t *table.Table) { method subtractSize (line 207) | func (s *levelHandler) subtractSize(t *table.Table) { method numTables (line 211) | func (s *levelHandler) numTables() int { method close (line 217) | func (s *levelHandler) close() error { method getTableForKey (line 230) | func (s *levelHandler) getTableForKey(key []byte) ([]*table.Table, fun... method get (line 266) | func (s *levelHandler) get(key []byte) (y.ValueStruct, error) { method appendIterators (line 298) | func (s *levelHandler) appendIterators(iters []y.Iterator, opt *Iterat... method overlappingTables (line 331) | func (s *levelHandler) overlappingTables(_ levelHandlerRLocked, kr key... function decrRefs (line 165) | func decrRefs(tables []*table.Table) error { function newLevelHandler (line 174) | func newLevelHandler(db *DB, level int) *levelHandler { type levelHandlerRLocked (line 326) | type levelHandlerRLocked struct FILE: levels.go type levelsController (line 32) | type levelsController struct method cleanupLevels (line 195) | func (s *levelsController) cleanupLevels() error { method dropTree (line 208) | func (s *levelsController) dropTree() (int, error) { method dropPrefixes (line 255) | func (s *levelsController) dropPrefixes(prefixes [][]byte) error { method startCompact (line 344) | func (s *levelsController) startCompact(lc *z.Closer) { method levelTargets (line 371) | func (s *levelsController) levelTargets() targets { method runCompactor (line 428) | func (s *levelsController) runCompactor(id int, lc *z.Closer) { method lastLevel (line 532) | func (s *levelsController) lastLevel() *levelHandler { method pickCompactLevels (line 540) | func (s *levelsController) pickCompactLevels(priosBuffer []compactionP... method checkOverlap (line 615) | func (s *levelsController) checkOverlap(tables []*table.Table, lev int... method subcompact (line 638) | func (s *levelsController) subcompact(it y.Iterator, kr keyRange, cd c... method compactBuildTables (line 868) | func (s *levelsController) compactBuildTables( method addSplits (line 1048) | func (s *levelsController) addSplits(cd *compactDef) { method fillTablesL0ToL0 (line 1107) | func (s *levelsController) fillTablesL0ToL0(cd *compactDef) bool { method fillTablesL0ToLbase (line 1175) | func (s *levelsController) fillTablesL0ToLbase(cd *compactDef) bool { method fillTablesL0 (line 1237) | func (s *levelsController) fillTablesL0(cd *compactDef) bool { method sortByStaleDataSize (line 1246) | func (s *levelsController) sortByStaleDataSize(tables []*table.Table, ... method sortByHeuristic (line 1258) | func (s *levelsController) sortByHeuristic(tables []*table.Table, cd *... method fillMaxLevelTables (line 1270) | func (s *levelsController) fillMaxLevelTables(tables []*table.Table, c... method fillTables (line 1354) | func (s *levelsController) fillTables(cd *compactDef) bool { method runCompactDef (line 1405) | func (s *levelsController) runCompactDef(id, l int, cd compactDef) (er... method doCompact (line 1507) | func (s *levelsController) doCompact(id int, p compactionPriority) err... method addLevel0Table (line 1559) | func (s *levelsController) addLevel0Table(t *table.Table) error { method close (line 1591) | func (s *levelsController) close() error { method get (line 1599) | func (s *levelsController) get(key []byte, maxVs y.ValueStruct, startL... method appendIterators (line 1646) | func (s *levelsController) appendIterators( method getTableInfo (line 1671) | func (s *levelsController) getTableInfo() (result []TableInfo) { method getLevelInfo (line 1713) | func (s *levelsController) getLevelInfo() []LevelInfo { method verifyChecksum (line 1738) | func (s *levelsController) verifyChecksum() error { method keySplits (line 1767) | func (s *levelsController) keySplits(numPerTable int, prefix []byte) [... function revertToManifest (line 46) | func revertToManifest(kv *DB, mf *Manifest, idMap map[uint64]struct{}) e... function newLevelsController (line 68) | func newLevelsController(db *DB, mf *Manifest) (*levelsController, error) { function closeAllTables (line 187) | func closeAllTables(tables [][]*table.Table) { type targets (line 352) | type targets struct type compactionPriority (line 524) | type compactionPriority struct function buildChangeSet (line 962) | func buildChangeSet(cd *compactDef, newTables []*table.Table) pb.Manifes... function hasAnyPrefixes (line 980) | func hasAnyPrefixes(s []byte, listOfPrefixes [][]byte) bool { function containsPrefix (line 990) | func containsPrefix(table *table.Table, prefix []byte) bool { function containsAnyPrefixes (line 1018) | func containsAnyPrefixes(table *table.Table, listOfPrefixes [][]byte) bo... type compactDef (line 1028) | type compactDef struct method lockLevels (line 1090) | func (cd *compactDef) lockLevels() { method unlockLevels (line 1095) | func (cd *compactDef) unlockLevels() { method allTables (line 1100) | func (cd *compactDef) allTables() []*table.Table { function tablesToString (line 1495) | func tablesToString(tables []*table.Table) []string { function appendIteratorsReversed (line 1636) | func appendIteratorsReversed(out []y.Iterator, th []*table.Table, opt in... type TableInfo (line 1657) | type TableInfo struct type LevelInfo (line 1701) | type LevelInfo struct FILE: levels_test.go function createAndOpen (line 26) | func createAndOpen(db *DB, td []keyValVersion, level int) { type keyValVersion (line 57) | type keyValVersion struct function TestCheckOverlap (line 64) | func TestCheckOverlap(t *testing.T) { function getAllAndCheck (line 122) | func getAllAndCheck(t *testing.T, db *DB, expected []keyValVersion) { function TestCompaction (line 152) | func TestCompaction(t *testing.T) { function TestCompactionTwoVersions (line 444) | func TestCompactionTwoVersions(t *testing.T) { function TestCompactionAllVersions (line 501) | func TestCompactionAllVersions(t *testing.T) { function TestDiscardTs (line 585) | func TestDiscardTs(t *testing.T) { function TestDiscardFirstVersion (line 691) | func TestDiscardFirstVersion(t *testing.T) { function TestL1Stall (line 746) | func TestL1Stall(t *testing.T) { function createEmptyTable (line 795) | func createEmptyTable(db *DB) *table.Table { function TestL0Stall (line 814) | func TestL0Stall(t *testing.T) { function TestLevelGet (line 867) | func TestLevelGet(t *testing.T) { function TestKeyVersions (line 962) | func TestKeyVersions(t *testing.T) { function TestSameLevel (line 1044) | func TestSameLevel(t *testing.T) { function TestTableContainsPrefix (line 1117) | func TestTableContainsPrefix(t *testing.T) { function TestFillTableCleanup (line 1158) | func TestFillTableCleanup(t *testing.T) { function TestStaleDataCleanup (line 1236) | func TestStaleDataCleanup(t *testing.T) { FILE: logger.go type Logger (line 14) | type Logger interface method Errorf (line 23) | func (opt *Options) Errorf(format string, v ...interface{}) { method Infof (line 31) | func (opt *Options) Infof(format string, v ...interface{}) { method Warningf (line 39) | func (opt *Options) Warningf(format string, v ...interface{}) { method Debugf (line 47) | func (opt *Options) Debugf(format string, v ...interface{}) { type loggingLevel (line 54) | type loggingLevel constant DEBUG (line 57) | DEBUG loggingLevel = iota constant INFO (line 58) | INFO constant WARNING (line 59) | WARNING constant ERROR (line 60) | ERROR type defaultLog (line 63) | type defaultLog struct method Errorf (line 72) | func (l *defaultLog) Errorf(f string, v ...interface{}) { method Warningf (line 78) | func (l *defaultLog) Warningf(f string, v ...interface{}) { method Infof (line 84) | func (l *defaultLog) Infof(f string, v ...interface{}) { method Debugf (line 90) | func (l *defaultLog) Debugf(f string, v ...interface{}) { function defaultLogger (line 68) | func defaultLogger(level loggingLevel) *defaultLog { FILE: logger_test.go type mockLogger (line 15) | type mockLogger struct method Errorf (line 19) | func (l *mockLogger) Errorf(f string, v ...interface{}) { method Infof (line 23) | func (l *mockLogger) Infof(f string, v ...interface{}) { method Warningf (line 27) | func (l *mockLogger) Warningf(f string, v ...interface{}) { method Debugf (line 31) | func (l *mockLogger) Debugf(f string, v ...interface{}) { function TestDbLog (line 36) | func TestDbLog(t *testing.T) { function TestNoDbLog (line 49) | func TestNoDbLog(t *testing.T) { FILE: managed_db.go function OpenManaged (line 13) | func OpenManaged(opts Options) (*DB, error) { method NewTransactionAt (line 23) | func (db *DB) NewTransactionAt(readTs uint64, update bool) *Txn { method NewWriteBatchAt (line 34) | func (db *DB) NewWriteBatchAt(commitTs uint64) *WriteBatch { method NewManagedWriteBatch (line 44) | func (db *DB) NewManagedWriteBatch() *WriteBatch { method CommitAt (line 58) | func (txn *Txn) CommitAt(commitTs uint64, callback func(error)) error { method SetDiscardTs (line 73) | func (db *DB) SetDiscardTs(ts uint64) { FILE: managed_db_test.go function val (line 25) | func val(large bool) []byte { function numKeys (line 36) | func numKeys(db *DB) int { function numKeysManaged (line 51) | func numKeysManaged(db *DB, readTs uint64) int { function TestDropAllManaged (line 65) | func TestDropAllManaged(t *testing.T) { function TestDropAll (line 110) | func TestDropAll(t *testing.T) { function TestDropAllTwice (line 146) | func TestDropAllTwice(t *testing.T) { function TestDropAllWithPendingTxn (line 189) | func TestDropAllWithPendingTxn(t *testing.T) { function TestDropReadOnly (line 260) | func TestDropReadOnly(t *testing.T) { function TestWriteAfterClose (line 293) | func TestWriteAfterClose(t *testing.T) { function TestDropAllRace (line 319) | func TestDropAllRace(t *testing.T) { function TestDropPrefix (line 383) | func TestDropPrefix(t *testing.T) { function TestDropPrefixWithPendingTxn (line 435) | func TestDropPrefixWithPendingTxn(t *testing.T) { function TestDropPrefixReadOnly (line 507) | func TestDropPrefixReadOnly(t *testing.T) { function TestDropPrefixRace (line 540) | func TestDropPrefixRace(t *testing.T) { function TestWriteBatchManagedMode (line 606) | func TestWriteBatchManagedMode(t *testing.T) { function TestWriteBatchManaged (line 652) | func TestWriteBatchManaged(t *testing.T) { function TestWriteBatchDuplicate (line 699) | func TestWriteBatchDuplicate(t *testing.T) { function TestZeroDiscardStats (line 780) | func TestZeroDiscardStats(t *testing.T) { FILE: manifest.go type Manifest (line 36) | type Manifest struct method asChanges (line 100) | func (m *Manifest) asChanges() []*pb.ManifestChange { method clone (line 108) | func (m *Manifest) clone(opt Options) Manifest { function createManifest (line 46) | func createManifest() Manifest { type levelManifest (line 56) | type levelManifest struct type TableManifest (line 62) | type TableManifest struct type manifestFile (line 70) | type manifestFile struct method close (line 186) | func (mf *manifestFile) close() error { method addChanges (line 197) | func (mf *manifestFile) addChanges(changesParam []*pb.ManifestChange, ... method rewrite (line 308) | func (mf *manifestFile) rewrite() error { constant ManifestFilename (line 92) | ManifestFilename = "MANIFEST" constant manifestRewriteFilename (line 93) | manifestRewriteFilename = "MANIFEST-REWRITE" constant manifestDeletionsRewriteThreshold (line 94) | manifestDeletionsRewriteThreshold = 10000 constant manifestDeletionsRatio (line 95) | manifestDeletionsRatio = 10 function openOrCreateManifestFile (line 117) | func openOrCreateManifestFile(opt Options) ( function helpOpenOrCreateManifestFile (line 126) | func helpOpenOrCreateManifestFile(dir string, readOnly bool, extMagic ui... constant badgerMagicVersion (line 239) | badgerMagicVersion = 8 function helpRewrite (line 241) | func helpRewrite(dir string, m *Manifest, extMagic uint16) (*os.File, in... type countingReader (line 324) | type countingReader struct method Read (line 329) | func (r *countingReader) Read(p []byte) (n int, err error) { method ReadByte (line 335) | func (r *countingReader) ReadByte() (b byte, err error) { function ReplayManifestFile (line 353) | func ReplayManifestFile(fp *os.File, extMagic uint16, opt Options) (Mani... function applyManifestChange (line 429) | func applyManifestChange(build *Manifest, tc *pb.ManifestChange, opt Opt... function applyChangeSet (line 465) | func applyChangeSet(build *Manifest, changeSet *pb.ManifestChangeSet, op... function newCreateChange (line 474) | func newCreateChange( function newDeleteChange (line 487) | func newDeleteChange(id uint64) *pb.ManifestChange { FILE: manifest_test.go function TestManifestBasic (line 26) | func TestManifestBasic(t *testing.T) { function helpTestManifestFileCorruption (line 61) | func helpTestManifestFileCorruption(t *testing.T, off int64, errorConten... function TestManifestMagic (line 88) | func TestManifestMagic(t *testing.T) { function TestManifestVersion (line 92) | func TestManifestVersion(t *testing.T) { function TestManifestChecksum (line 96) | func TestManifestChecksum(t *testing.T) { function key (line 100) | func key(prefix string, i int) string { function buildTable (line 106) | func buildTable(t *testing.T, keyValues [][]string, bopts table.Options)... function TestOverlappingKeyRangeError (line 136) | func TestOverlappingKeyRangeError(t *testing.T) { function TestManifestRewrite (line 196) | func TestManifestRewrite(t *testing.T) { function TestConcurrentManifestCompaction (line 243) | func TestConcurrentManifestCompaction(t *testing.T) { FILE: memtable.go type memTable (line 34) | type memTable struct method SyncWAL (line 155) | func (mt *memTable) SyncWAL() error { method isFull (line 159) | func (mt *memTable) isFull() bool { method Put (line 170) | func (mt *memTable) Put(key []byte, value y.ValueStruct) error { method UpdateSkipList (line 201) | func (mt *memTable) UpdateSkipList() error { method IncrRef (line 216) | func (mt *memTable) IncrRef() { method DecrRef (line 221) | func (mt *memTable) DecrRef() { method replayFunction (line 225) | func (mt *memTable) replayFunction(opt Options) func(Entry, valuePoint... method openMemTables (line 43) | func (db *DB) openMemTables(opt Options) error { constant memFileExt (line 95) | memFileExt string = ".mem" method openMemTable (line 97) | func (db *DB) openMemTable(fid, flags int) (*memTable, error) { method newMemTable (line 137) | func (db *DB) newMemTable() (*memTable, error) { method mtFilePath (line 151) | func (db *DB) mtFilePath(fid int) string { type logFile (line 249) | type logFile struct method Truncate (line 267) | func (lf *logFile) Truncate(end int64) error { method encodeEntry (line 283) | func (lf *logFile) encodeEntry(buf *bytes.Buffer, e *Entry, offset uin... method writeEntry (line 324) | func (lf *logFile) writeEntry(buf *bytes.Buffer, e *Entry, opt Options... method decodeEntry (line 337) | func (lf *logFile) decodeEntry(buf []byte, offset uint32) (*Entry, err... method decryptKV (line 360) | func (lf *logFile) decryptKV(buf []byte, offset uint32) ([]byte, error) { method keyID (line 365) | func (lf *logFile) keyID() uint64 { method encryptionEnabled (line 373) | func (lf *logFile) encryptionEnabled() bool { method read (line 378) | func (lf *logFile) read(p valuePointer) (buf []byte, err error) { method generateIV (line 399) | func (lf *logFile) generateIV(offset uint32) []byte { method doneWriting (line 408) | func (lf *logFile) doneWriting(offset uint32) error { method iterate (line 433) | func (lf *logFile) iterate(readOnly bool, offset uint32, fn logEntry) ... method zeroNextEntry (line 533) | func (lf *logFile) zeroNextEntry() { method open (line 537) | func (lf *logFile) open(path string, flags int, fsize int64) error { method bootstrap (line 584) | func (lf *logFile) bootstrap() error { FILE: merge.go type MergeOperator (line 18) | type MergeOperator struct method iterateAndMerge (line 51) | func (op *MergeOperator) iterateAndMerge() (newVal []byte, latest uint... method compact (line 95) | func (op *MergeOperator) compact() error { method runCompactions (line 120) | func (op *MergeOperator) runCompactions(dur time.Duration) { method Add (line 142) | func (op *MergeOperator) Add(val []byte) error { method Get (line 152) | func (op *MergeOperator) Get() ([]byte, error) { method Stop (line 168) | func (op *MergeOperator) Stop() { type MergeFunc (line 31) | type MergeFunc method GetMergeOperator (line 36) | func (db *DB) GetMergeOperator(key []byte, FILE: merge_test.go function TestGetMergeOperator (line 17) | func TestGetMergeOperator(t *testing.T) { function uint64ToBytes (line 165) | func uint64ToBytes(i uint64) []byte { function bytesToUint64 (line 171) | func bytesToUint64(b []byte) uint64 { function add (line 176) | func add(existing, latest []byte) []byte { FILE: metrics_test.go function clearAllMetrics (line 16) | func clearAllMetrics() { function TestWriteMetrics (line 32) | func TestWriteMetrics(t *testing.T) { function TestVlogMetrics (line 77) | func TestVlogMetrics(t *testing.T) { function TestReadMetrics (line 122) | func TestReadMetrics(t *testing.T) { FILE: options.go type Options (line 31) | type Options struct method FromSuperFlag (line 297) | func (opt Options) FromSuperFlag(superflag string) Options { method WithDir (line 355) | func (opt Options) WithDir(val string) Options { method WithValueDir (line 365) | func (opt Options) WithValueDir(val string) Options { method WithSyncWrites (line 379) | func (opt Options) WithSyncWrites(val bool) Options { method WithNumVersionsToKeep (line 389) | func (opt Options) WithNumVersionsToKeep(val int) Options { method WithNumGoroutines (line 397) | func (opt Options) WithNumGoroutines(val int) Options { method WithReadOnly (line 410) | func (opt Options) WithReadOnly(val bool) Options { method WithMetricsEnabled (line 425) | func (opt Options) WithMetricsEnabled(val bool) Options { method WithLogger (line 435) | func (opt Options) WithLogger(val Logger) Options { method WithLoggingLevel (line 446) | func (opt Options) WithLoggingLevel(val loggingLevel) Options { method WithBaseTableSize (line 456) | func (opt Options) WithBaseTableSize(val int64) Options { method WithLevelSizeMultiplier (line 469) | func (opt Options) WithLevelSizeMultiplier(val int) Options { method WithMaxLevels (line 479) | func (opt Options) WithMaxLevels(val int) Options { method WithValueThreshold (line 491) | func (opt Options) WithValueThreshold(val int64) Options { method WithVLogPercentile (line 508) | func (opt Options) WithVLogPercentile(t float64) Options { method WithNumMemtables (line 518) | func (opt Options) WithNumMemtables(val int) Options { method WithMemTableSize (line 528) | func (opt Options) WithMemTableSize(val int64) Options { method WithBloomFalsePositive (line 544) | func (opt Options) WithBloomFalsePositive(val float64) Options { method WithBlockSize (line 555) | func (opt Options) WithBlockSize(val int) Options { method WithNumLevelZeroTables (line 563) | func (opt Options) WithNumLevelZeroTables(val int) Options { method WithNumLevelZeroTablesStall (line 572) | func (opt Options) WithNumLevelZeroTablesStall(val int) Options { method WithBaseLevelSize (line 580) | func (opt Options) WithBaseLevelSize(val int64) Options { method WithValueLogFileSize (line 588) | func (opt Options) WithValueLogFileSize(val int64) Options { method WithValueLogMaxEntries (line 598) | func (opt Options) WithValueLogMaxEntries(val uint32) Options { method WithNumCompactors (line 607) | func (opt Options) WithNumCompactors(val int) Options { method WithCompactL0OnClose (line 616) | func (opt Options) WithCompactL0OnClose(val bool) Options { method WithEncryptionKey (line 624) | func (opt Options) WithEncryptionKey(key []byte) Options { method WithEncryptionKeyRotationDuration (line 636) | func (opt Options) WithEncryptionKeyRotationDuration(d time.Duration) ... method WithCompression (line 646) | func (opt Options) WithCompression(cType options.CompressionType) Opti... method WithVerifyValueChecksum (line 656) | func (opt Options) WithVerifyValueChecksum(val bool) Options { method WithChecksumVerificationMode (line 667) | func (opt Options) WithChecksumVerificationMode(cvMode options.Checksu... method WithBlockCacheSize (line 682) | func (opt Options) WithBlockCacheSize(size int64) Options { method WithInMemory (line 691) | func (opt Options) WithInMemory(b bool) Options { method WithZSTDCompressionLevel (line 715) | func (opt Options) WithZSTDCompressionLevel(cLevel int) Options { method WithBypassLockGuard (line 728) | func (opt Options) WithBypassLockGuard(b bool) Options { method WithIndexCacheSize (line 746) | func (opt Options) WithIndexCacheSize(size int64) Options { method WithDetectConflicts (line 760) | func (opt Options) WithDetectConflicts(b bool) Options { method WithNamespaceOffset (line 770) | func (opt Options) WithNamespaceOffset(offset int) Options { method WithExternalMagic (line 777) | func (opt Options) WithExternalMagic(magic uint16) Options { method getFileFlags (line 782) | func (opt Options) getFileFlags() int { function DefaultOptions (line 123) | func DefaultOptions(path string) Options { function buildTableOptions (line 180) | func buildTableOptions(db *DB) table.Options { constant maxValueThreshold (line 201) | maxValueThreshold = (1 << 20) function LSMOnlyOptions (line 208) | func LSMOnlyOptions(path string) Options { function parseCompression (line 224) | func parseCompression(cStr string) (options.CompressionType, int, error) { function generateSuperFlag (line 252) | func generateSuperFlag(options Options) string { FILE: options/options.go type ChecksumVerificationMode (line 9) | type ChecksumVerificationMode constant NoVerification (line 13) | NoVerification ChecksumVerificationMode = iota constant OnTableRead (line 15) | OnTableRead constant OnBlockRead (line 17) | OnBlockRead constant OnTableAndBlockRead (line 20) | OnTableAndBlockRead type CompressionType (line 24) | type CompressionType constant None (line 28) | None CompressionType = 0 constant Snappy (line 30) | Snappy CompressionType = 1 constant ZSTD (line 32) | ZSTD CompressionType = 2 FILE: options_test.go function TestOptions (line 15) | func TestOptions(t *testing.T) { function optionsEqual (line 51) | func optionsEqual(o1, o2 Options) bool { FILE: pb/badgerpb4.pb.go constant _ (line 24) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 26) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type EncryptionAlgo (line 29) | type EncryptionAlgo method Enum (line 45) | func (x EncryptionAlgo) Enum() *EncryptionAlgo { method String (line 51) | func (x EncryptionAlgo) String() string { method Descriptor (line 55) | func (EncryptionAlgo) Descriptor() protoreflect.EnumDescriptor { method Type (line 59) | func (EncryptionAlgo) Type() protoreflect.EnumType { method Number (line 63) | func (x EncryptionAlgo) Number() protoreflect.EnumNumber { method EnumDescriptor (line 68) | func (EncryptionAlgo) EnumDescriptor() ([]byte, []int) { constant EncryptionAlgo_aes (line 32) | EncryptionAlgo_aes EncryptionAlgo = 0 type ManifestChange_Operation (line 72) | type ManifestChange_Operation method Enum (line 91) | func (x ManifestChange_Operation) Enum() *ManifestChange_Operation { method String (line 97) | func (x ManifestChange_Operation) String() string { method Descriptor (line 101) | func (ManifestChange_Operation) Descriptor() protoreflect.EnumDescript... method Type (line 105) | func (ManifestChange_Operation) Type() protoreflect.EnumType { method Number (line 109) | func (x ManifestChange_Operation) Number() protoreflect.EnumNumber { method EnumDescriptor (line 114) | func (ManifestChange_Operation) EnumDescriptor() ([]byte, []int) { constant ManifestChange_CREATE (line 75) | ManifestChange_CREATE ManifestChange_Operation = 0 constant ManifestChange_DELETE (line 76) | ManifestChange_DELETE ManifestChange_Operation = 1 type Checksum_Algorithm (line 118) | type Checksum_Algorithm method Enum (line 137) | func (x Checksum_Algorithm) Enum() *Checksum_Algorithm { method String (line 143) | func (x Checksum_Algorithm) String() string { method Descriptor (line 147) | func (Checksum_Algorithm) Descriptor() protoreflect.EnumDescriptor { method Type (line 151) | func (Checksum_Algorithm) Type() protoreflect.EnumType { method Number (line 155) | func (x Checksum_Algorithm) Number() protoreflect.EnumNumber { method EnumDescriptor (line 160) | func (Checksum_Algorithm) EnumDescriptor() ([]byte, []int) { constant Checksum_CRC32C (line 121) | Checksum_CRC32C Checksum_Algorithm = 0 constant Checksum_XXHash64 (line 122) | Checksum_XXHash64 Checksum_Algorithm = 1 type KV (line 164) | type KV struct method Reset (line 181) | func (x *KV) Reset() { method String (line 190) | func (x *KV) String() string { method ProtoMessage (line 194) | func (*KV) ProtoMessage() {} method ProtoReflect (line 196) | func (x *KV) ProtoReflect() protoreflect.Message { method Descriptor (line 209) | func (*KV) Descriptor() ([]byte, []int) { method GetKey (line 213) | func (x *KV) GetKey() []byte { method GetValue (line 220) | func (x *KV) GetValue() []byte { method GetUserMeta (line 227) | func (x *KV) GetUserMeta() []byte { method GetVersion (line 234) | func (x *KV) GetVersion() uint64 { method GetExpiresAt (line 241) | func (x *KV) GetExpiresAt() uint64 { method GetMeta (line 248) | func (x *KV) GetMeta() []byte { method GetStreamId (line 255) | func (x *KV) GetStreamId() uint32 { method GetStreamDone (line 262) | func (x *KV) GetStreamDone() bool { type KVList (line 269) | type KVList struct method Reset (line 279) | func (x *KVList) Reset() { method String (line 288) | func (x *KVList) String() string { method ProtoMessage (line 292) | func (*KVList) ProtoMessage() {} method ProtoReflect (line 294) | func (x *KVList) ProtoReflect() protoreflect.Message { method Descriptor (line 307) | func (*KVList) Descriptor() ([]byte, []int) { method GetKv (line 311) | func (x *KVList) GetKv() []*KV { method GetAllocRef (line 318) | func (x *KVList) GetAllocRef() uint64 { type ManifestChangeSet (line 325) | type ManifestChangeSet struct method Reset (line 334) | func (x *ManifestChangeSet) Reset() { method String (line 343) | func (x *ManifestChangeSet) String() string { method ProtoMessage (line 347) | func (*ManifestChangeSet) ProtoMessage() {} method ProtoReflect (line 349) | func (x *ManifestChangeSet) ProtoReflect() protoreflect.Message { method Descriptor (line 362) | func (*ManifestChangeSet) Descriptor() ([]byte, []int) { method GetChanges (line 366) | func (x *ManifestChangeSet) GetChanges() []*ManifestChange { type ManifestChange (line 373) | type ManifestChange struct method Reset (line 386) | func (x *ManifestChange) Reset() { method String (line 395) | func (x *ManifestChange) String() string { method ProtoMessage (line 399) | func (*ManifestChange) ProtoMessage() {} method ProtoReflect (line 401) | func (x *ManifestChange) ProtoReflect() protoreflect.Message { method Descriptor (line 414) | func (*ManifestChange) Descriptor() ([]byte, []int) { method GetId (line 418) | func (x *ManifestChange) GetId() uint64 { method GetOp (line 425) | func (x *ManifestChange) GetOp() ManifestChange_Operation { method GetLevel (line 432) | func (x *ManifestChange) GetLevel() uint32 { method GetKeyId (line 439) | func (x *ManifestChange) GetKeyId() uint64 { method GetEncryptionAlgo (line 446) | func (x *ManifestChange) GetEncryptionAlgo() EncryptionAlgo { method GetCompression (line 453) | func (x *ManifestChange) GetCompression() uint32 { type Checksum (line 460) | type Checksum struct method Reset (line 469) | func (x *Checksum) Reset() { method String (line 478) | func (x *Checksum) String() string { method ProtoMessage (line 482) | func (*Checksum) ProtoMessage() {} method ProtoReflect (line 484) | func (x *Checksum) ProtoReflect() protoreflect.Message { method Descriptor (line 497) | func (*Checksum) Descriptor() ([]byte, []int) { method GetAlgo (line 501) | func (x *Checksum) GetAlgo() Checksum_Algorithm { method GetSum (line 508) | func (x *Checksum) GetSum() uint64 { type DataKey (line 515) | type DataKey struct method Reset (line 526) | func (x *DataKey) Reset() { method String (line 535) | func (x *DataKey) String() string { method ProtoMessage (line 539) | func (*DataKey) ProtoMessage() {} method ProtoReflect (line 541) | func (x *DataKey) ProtoReflect() protoreflect.Message { method Descriptor (line 554) | func (*DataKey) Descriptor() ([]byte, []int) { method GetKeyId (line 558) | func (x *DataKey) GetKeyId() uint64 { method GetData (line 565) | func (x *DataKey) GetData() []byte { method GetIv (line 572) | func (x *DataKey) GetIv() []byte { method GetCreatedAt (line 579) | func (x *DataKey) GetCreatedAt() int64 { type Match (line 586) | type Match struct method Reset (line 595) | func (x *Match) Reset() { method String (line 604) | func (x *Match) String() string { method ProtoMessage (line 608) | func (*Match) ProtoMessage() {} method ProtoReflect (line 610) | func (x *Match) ProtoReflect() protoreflect.Message { method Descriptor (line 623) | func (*Match) Descriptor() ([]byte, []int) { method GetPrefix (line 627) | func (x *Match) GetPrefix() []byte { method GetIgnoreBytes (line 634) | func (x *Match) GetIgnoreBytes() string { function file_badgerpb4_proto_rawDescGZIP (line 715) | func file_badgerpb4_proto_rawDescGZIP() []byte { function init (line 749) | func init() { file_badgerpb4_proto_init() } function file_badgerpb4_proto_init (line 750) | func file_badgerpb4_proto_init() { FILE: pb/protos_test.go function Exec (line 15) | func Exec(argv ...string) error { function TestProtosRegenerate (line 24) | func TestProtosRegenerate(t *testing.T) { FILE: publisher.go type subscriber (line 18) | type subscriber struct type publisher (line 28) | type publisher struct method listenForUpdates (line 45) | func (p *publisher) listenForUpdates(c *z.Closer) { method publishUpdates (line 71) | func (p *publisher) publishUpdates(reqs requests) { method newSubscriber (line 109) | func (p *publisher) newSubscriber(c *z.Closer, matches []pb.Match) (su... method cleanSubscribers (line 135) | func (p *publisher) cleanSubscribers() { method deleteSubscriber (line 147) | func (p *publisher) deleteSubscriber(id uint64) { method sendUpdates (line 158) | func (p *publisher) sendUpdates(reqs requests) { method noOfSubscribers (line 165) | func (p *publisher) noOfSubscribers() int { function newPublisher (line 36) | func newPublisher() *publisher { FILE: publisher_test.go function TestPublisherDeadlock (line 25) | func TestPublisherDeadlock(t *testing.T) { function TestPublisherOrdering (line 88) | func TestPublisherOrdering(t *testing.T) { function TestMultiplePrefix (line 127) | func TestMultiplePrefix(t *testing.T) { FILE: skl/arena.go constant offsetSize (line 16) | offsetSize = int(unsafe.Sizeof(uint32(0))) constant nodeAlign (line 22) | nodeAlign = int(unsafe.Sizeof(uint64(0))) - 1 type Arena (line 26) | type Arena struct method size (line 40) | func (s *Arena) size() int64 { method putNode (line 46) | func (s *Arena) putNode(height int) uint32 { method putVal (line 67) | func (s *Arena) putVal(v y.ValueStruct) uint32 { method putKey (line 78) | func (s *Arena) putKey(key []byte) uint32 { method getNode (line 94) | func (s *Arena) getNode(offset uint32) *node { method getKey (line 103) | func (s *Arena) getKey(offset uint32, size uint16) []byte { method getVal (line 109) | func (s *Arena) getVal(offset uint32, size uint32) (ret y.ValueStruct) { method getNodeOffset (line 116) | func (s *Arena) getNodeOffset(nd *node) uint32 { function newArena (line 32) | func newArena(n int64) *Arena { FILE: skl/skl.go constant maxHeight (line 34) | maxHeight = 20 constant heightIncrease (line 35) | heightIncrease = math.MaxUint32 / 3 constant MaxNodeSize (line 39) | MaxNodeSize = int(unsafe.Sizeof(node{})) type node (line 41) | type node struct method getValueOffset (line 127) | func (s *node) getValueOffset() (uint32, uint32) { method key (line 132) | func (s *node) key(arena *Arena) []byte { method setValue (line 136) | func (s *node) setValue(arena *Arena, v y.ValueStruct) { method getNextOffset (line 142) | func (s *node) getNextOffset(h int) uint32 { method casNextOffset (line 146) | func (s *node) casNextOffset(h int, old, val uint32) bool { type Skiplist (line 65) | type Skiplist struct method IncrRef (line 74) | func (s *Skiplist) IncrRef() { method DecrRef (line 79) | func (s *Skiplist) DecrRef() { method randomHeight (line 157) | func (s *Skiplist) randomHeight() int { method getNext (line 165) | func (s *Skiplist) getNext(nd *node, height int) *node { method findNear (line 175) | func (s *Skiplist) findNear(key []byte, less bool, allowEqual bool) (*... method findSpliceForLevel (line 247) | func (s *Skiplist) findSpliceForLevel(key []byte, before *node, level ... method getHeight (line 268) | func (s *Skiplist) getHeight() int32 { method Put (line 273) | func (s *Skiplist) Put(key []byte, v y.ValueStruct) { method Empty (line 338) | func (s *Skiplist) Empty() bool { method findLast (line 344) | func (s *Skiplist) findLast() *node { method Get (line 365) | func (s *Skiplist) Get(key []byte) y.ValueStruct { method NewIterator (line 383) | func (s *Skiplist) NewIterator() *Iterator { method MemSize (line 390) | func (s *Skiplist) MemSize() int64 { return s.arena.size() } method NewUniIterator (line 467) | func (s *Skiplist) NewUniIterator(reversed bool) *UniIterator { function newNode (line 96) | func newNode(arena *Arena, key []byte, v y.ValueStruct, height int) *node { function encodeValue (line 107) | func encodeValue(valOffset uint32, valSize uint32) uint64 { function decodeValue (line 111) | func decodeValue(value uint64) (valOffset uint32, valSize uint32) { function NewSkiplist (line 118) | func NewSkiplist(arenaSize int64) *Skiplist { type Iterator (line 394) | type Iterator struct method Close (line 400) | func (s *Iterator) Close() error { method Valid (line 406) | func (s *Iterator) Valid() bool { return s.n != nil } method Key (line 409) | func (s *Iterator) Key() []byte { method Value (line 414) | func (s *Iterator) Value() y.ValueStruct { method ValueUint64 (line 420) | func (s *Iterator) ValueUint64() uint64 { method Next (line 425) | func (s *Iterator) Next() { method Prev (line 431) | func (s *Iterator) Prev() { method Seek (line 437) | func (s *Iterator) Seek(target []byte) { method SeekForPrev (line 442) | func (s *Iterator) SeekForPrev(target []byte) { method SeekToFirst (line 448) | func (s *Iterator) SeekToFirst() { method SeekToLast (line 454) | func (s *Iterator) SeekToLast() { type UniIterator (line 461) | type UniIterator struct method Next (line 475) | func (s *UniIterator) Next() { method Rewind (line 484) | func (s *UniIterator) Rewind() { method Seek (line 493) | func (s *UniIterator) Seek(key []byte) { method Key (line 502) | func (s *UniIterator) Key() []byte { return s.iter.Key() } method Value (line 505) | func (s *UniIterator) Value() y.ValueStruct { return s.iter.Value() } method Valid (line 508) | func (s *UniIterator) Valid() bool { return s.iter.Valid() } method Close (line 511) | func (s *UniIterator) Close() error { return s.iter.Close() } FILE: skl/skl_test.go constant arenaSize (line 23) | arenaSize = 1 << 20 method valid (line 25) | func (s *Skiplist) valid() bool { return s.arena != nil } function newValue (line 27) | func newValue(v int) []byte { function length (line 32) | func length(s *Skiplist) int { function TestEmpty (line 42) | func TestEmpty(t *testing.T) { function TestBasic (line 77) | func TestBasic(t *testing.T) { function TestConcurrentBasic (line 121) | func TestConcurrentBasic(t *testing.T) { function TestConcurrentBasicBigValues (line 151) | func TestConcurrentBasicBigValues(t *testing.T) { function TestOneKey (line 186) | func TestOneKey(t *testing.T) { function TestFindNear (line 221) | func TestFindNear(t *testing.T) { function TestIteratorNext (line 327) | func TestIteratorNext(t *testing.T) { function TestIteratorPrev (line 351) | func TestIteratorPrev(t *testing.T) { function TestIteratorSeek (line 375) | func TestIteratorSeek(t *testing.T) { function randomKey (line 440) | func randomKey(rng *rand.Rand) []byte { function BenchmarkReadWrite (line 451) | func BenchmarkReadWrite(b *testing.B) { function BenchmarkReadWriteMap (line 479) | func BenchmarkReadWriteMap(b *testing.B) { function BenchmarkWrite (line 509) | func BenchmarkWrite(b *testing.B) { FILE: stream.go constant batchSize (line 24) | batchSize = 16 << 20 type Stream (line 36) | type Stream struct method SendDoneMarkers (line 104) | func (st *Stream) SendDoneMarkers(done bool) { method ToList (line 110) | func (st *Stream) ToList(key []byte, itr *Iterator) (*pb.KVList, error) { method produceRanges (line 153) | func (st *Stream) produceRanges(ctx context.Context) { method produceKVs (line 173) | func (st *Stream) produceKVs(ctx context.Context, threadId int) error { method streamKVs (line 313) | func (st *Stream) streamKVs(ctx context.Context) error { method Orchestrate (line 415) | func (st *Stream) Orchestrate(ctx context.Context) error { method newStream (line 479) | func (db *DB) newStream() *Stream { method NewStream (line 489) | func (db *DB) NewStream() *Stream { method NewStreamAt (line 497) | func (db *DB) NewStreamAt(readTs uint64) *Stream { function BufferToKVList (line 506) | func BufferToKVList(buf *z.Buffer) (*pb.KVList, error) { function KVToBuffer (line 519) | func KVToBuffer(kv *pb.KV, buf *z.Buffer) { FILE: stream_test.go function keyWithPrefix (line 25) | func keyWithPrefix(prefix string, k int) []byte { function keyToInt (line 29) | func keyToInt(k []byte) (string, int) { function value (line 36) | func value(k int) []byte { type collector (line 40) | type collector struct method Send (line 44) | func (c *collector) Send(buf *z.Buffer) error { function TestStream (line 61) | func TestStream(t *testing.T) { function TestStreamMaxSize (line 163) | func TestStreamMaxSize(t *testing.T) { function TestStreamWithThreadId (line 224) | func TestStreamWithThreadId(t *testing.T) { function TestBigStream (line 270) | func TestBigStream(t *testing.T) { function TestStreamCustomKeyToList (line 327) | func TestStreamCustomKeyToList(t *testing.T) { FILE: stream_writer.go type StreamWriter (line 33) | type StreamWriter struct method Prepare (line 61) | func (sw *StreamWriter) Prepare() error { method PrepareIncremental (line 74) | func (sw *StreamWriter) PrepareIncremental() error { method Write (line 131) | func (sw *StreamWriter) Write(buf *z.Buffer) error { method Flush (line 252) | func (sw *StreamWriter) Flush() error { method Cancel (line 314) | func (sw *StreamWriter) Cancel() { method newWriter (line 353) | func (sw *StreamWriter) newWriter(streamID uint32) (*sortedWriter, err... method NewStreamWriter (line 47) | func (db *DB) NewStreamWriter() *StreamWriter { type sortedWriter (line 339) | type sortedWriter struct method handleRequests (line 373) | func (w *sortedWriter) handleRequests() { method Add (line 417) | func (w *sortedWriter) Add(key []byte, vs y.ValueStruct) error { method send (line 442) | func (w *sortedWriter) send(done bool) error { method Done (line 463) | func (w *sortedWriter) Done() error { method createTable (line 474) | func (w *sortedWriter) createTable(builder *table.Builder) error { FILE: stream_writer_test.go function getSortedKVList (line 24) | func getSortedKVList(valueSize, listSize int) *z.Buffer { function TestStreamWriter1 (line 42) | func TestStreamWriter1(t *testing.T) { function TestStreamWriter2 (line 93) | func TestStreamWriter2(t *testing.T) { function TestStreamWriter3 (line 155) | func TestStreamWriter3(t *testing.T) { function TestStreamWriter4 (line 251) | func TestStreamWriter4(t *testing.T) { function TestStreamWriter5 (line 278) | func TestStreamWriter5(t *testing.T) { function TestStreamWriter6 (line 316) | func TestStreamWriter6(t *testing.T) { function TestStreamWriterCancel (line 362) | func TestStreamWriterCancel(t *testing.T) { function TestStreamDone (line 394) | func TestStreamDone(t *testing.T) { function TestSendOnClosedStream (line 428) | func TestSendOnClosedStream(t *testing.T) { function TestSendOnClosedStream2 (line 478) | func TestSendOnClosedStream2(t *testing.T) { function TestStreamWriterEncrypted (line 525) | func TestStreamWriterEncrypted(t *testing.T) { function TestStreamWriterWithLargeValue (line 571) | func TestStreamWriterWithLargeValue(t *testing.T) { function TestStreamWriterIncremental (line 593) | func TestStreamWriterIncremental(t *testing.T) { FILE: structs.go type valuePointer (line 15) | type valuePointer struct method Less (line 23) | func (p valuePointer) Less(o valuePointer) bool { method IsZero (line 33) | func (p valuePointer) IsZero() bool { method Encode (line 38) | func (p valuePointer) Encode() []byte { method Decode (line 46) | func (p *valuePointer) Decode(b []byte) { constant vptrSize (line 21) | vptrSize = unsafe.Sizeof(valuePointer{}) type header (line 54) | type header struct method Encode (line 74) | func (h header) Encode(out []byte) int { method Decode (line 85) | func (h *header) Decode(buf []byte) int { method DecodeFrom (line 100) | func (h *header) DecodeFrom(reader *hashReader) (int, error) { constant maxHeaderSize (line 65) | maxHeaderSize = 22 type Entry (line 129) | type Entry struct method isZero (line 143) | func (e *Entry) isZero() bool { method estimateSizeAndSetThreshold (line 147) | func (e *Entry) estimateSizeAndSetThreshold(threshold int64) int64 { method skipVlogAndSetThreshold (line 159) | func (e *Entry) skipVlogAndSetThreshold(threshold int64) bool { method print (line 167) | func (e Entry) print(prefix string) { method WithMeta (line 187) | func (e *Entry) WithMeta(meta byte) *Entry { method WithDiscard (line 198) | func (e *Entry) WithDiscard() *Entry { method WithTTL (line 205) | func (e *Entry) WithTTL(dur time.Duration) *Entry { method withMergeBit (line 212) | func (e *Entry) withMergeBit() *Entry { function NewEntry (line 177) | func NewEntry(key, value []byte) *Entry { FILE: structs_test.go function TestLargeEncode (line 17) | func TestLargeEncode(t *testing.T) { function TestNumFieldsHeader (line 23) | func TestNumFieldsHeader(t *testing.T) { FILE: table/builder.go constant KB (line 29) | KB = 1024 constant MB (line 30) | MB = KB * 1024 constant padding (line 34) | padding = 256 type header (line 37) | type header struct method Encode (line 45) | func (h header) Encode() []byte { method Decode (line 52) | func (h *header) Decode(buf []byte) { constant headerSize (line 42) | headerSize = uint16(unsafe.Sizeof(header{})) type bblock (line 60) | type bblock struct type Builder (line 68) | type Builder struct method allocate (line 88) | func (b *Builder) allocate(need int) []byte { method append (line 109) | func (b *Builder) append(data []byte) { method handleBlock (line 158) | func (b *Builder) handleBlock() { method Close (line 191) | func (b *Builder) Close() { method Empty (line 196) | func (b *Builder) Empty() bool { return len(b.keyHashes) == 0 } method keyDiff (line 199) | func (b *Builder) keyDiff(newKey []byte) []byte { method addHelper (line 209) | func (b *Builder) addHelper(key []byte, v y.ValueStruct, vpLen uint32) { method finishBlock (line 262) | func (b *Builder) finishBlock() { method shouldFinishBlock (line 294) | func (b *Builder) shouldFinishBlock(key []byte, value y.ValueStruct) b... method AddStaleKey (line 325) | func (b *Builder) AddStaleKey(key []byte, v y.ValueStruct, valueLen ui... method Add (line 332) | func (b *Builder) Add(key []byte, value y.ValueStruct, valueLen uint32) { method addInternal (line 336) | func (b *Builder) addInternal(key []byte, value y.ValueStruct, valueLe... method ReachedCapacity (line 358) | func (b *Builder) ReachedCapacity() bool { method Finish (line 389) | func (b *Builder) Finish() []byte { method Done (line 418) | func (b *Builder) Done() buildData { method calculateChecksum (line 454) | func (b *Builder) calculateChecksum(data []byte) []byte { method DataKey (line 477) | func (b *Builder) DataKey() *pb.DataKey { method Opts (line 481) | func (b *Builder) Opts() *Options { method encrypt (line 487) | func (b *Builder) encrypt(data []byte) ([]byte, error) { method shouldEncrypt (line 505) | func (b *Builder) shouldEncrypt() bool { method compressData (line 510) | func (b *Builder) compressData(data []byte) ([]byte, error) { method buildIndex (line 526) | func (b *Builder) buildIndex(bloom []byte) ([]byte, uint32) { method writeBlockOffsets (line 564) | func (b *Builder) writeBlockOffsets(builder *fbs.Builder) ([]fbs.UOffs... method writeBlockOffset (line 577) | func (b *Builder) writeBlockOffset( constant maxAllocatorInitialSz (line 114) | maxAllocatorInitialSz = 256 << 20 function NewTableBuilder (line 117) | func NewTableBuilder(opts Options) *Builder { function maxEncodedLen (line 148) | func maxEncodedLen(ctype options.CompressionType, sz int) int { type buildData (line 397) | type buildData struct method Copy (line 405) | func (bd *buildData) Copy(dst []byte) int { FILE: table/builder_test.go function TestTableIndex (line 24) | func TestTableIndex(t *testing.T) { function TestInvalidCompression (line 131) | func TestInvalidCompression(t *testing.T) { function BenchmarkBuilder (line 149) | func BenchmarkBuilder(b *testing.B) { function TestBloomfilter (line 226) | func TestBloomfilter(t *testing.T) { function TestEmptyBuilder (line 272) | func TestEmptyBuilder(t *testing.T) { FILE: table/iterator.go type blockIterator (line 18) | type blockIterator struct method setBlock (line 35) | func (itr *blockIterator) setBlock(b *Block) { method setIdx (line 53) | func (itr *blockIterator) setIdx(i int) { method Valid (line 106) | func (itr *blockIterator) Valid() bool { method Error (line 110) | func (itr *blockIterator) Error() error { method Close (line 114) | func (itr *blockIterator) Close() { method seek (line 124) | func (itr *blockIterator) seek(key []byte, whence int) { method seekToFirst (line 147) | func (itr *blockIterator) seekToFirst() { method seekToLast (line 152) | func (itr *blockIterator) seekToLast() { method next (line 156) | func (itr *blockIterator) next() { method prev (line 160) | func (itr *blockIterator) prev() { type Iterator (line 165) | type Iterator struct method Close (line 184) | func (itr *Iterator) Close() error { method reset (line 189) | func (itr *Iterator) reset() { method Valid (line 195) | func (itr *Iterator) Valid() bool { method useCache (line 199) | func (itr *Iterator) useCache() bool { method seekToFirst (line 203) | func (itr *Iterator) seekToFirst() { method seekToLast (line 222) | func (itr *Iterator) seekToLast() { method seekHelper (line 241) | func (itr *Iterator) seekHelper(blockIdx int, key []byte) { method seekFrom (line 256) | func (itr *Iterator) seekFrom(key []byte, whence int) { method seek (line 298) | func (itr *Iterator) seek(key []byte) { method seekForPrev (line 303) | func (itr *Iterator) seekForPrev(key []byte) { method next (line 311) | func (itr *Iterator) next() { method prev (line 342) | func (itr *Iterator) prev() { method Key (line 374) | func (itr *Iterator) Key() []byte { method Value (line 379) | func (itr *Iterator) Value() (ret y.ValueStruct) { method ValueCopy (line 386) | func (itr *Iterator) ValueCopy() (ret y.ValueStruct) { method Next (line 393) | func (itr *Iterator) Next() { method Rewind (line 402) | func (itr *Iterator) Rewind() { method Seek (line 411) | func (itr *Iterator) Seek(key []byte) { method NewIterator (line 177) | func (t *Table) NewIterator(opt int) *Iterator { type ConcatIterator (line 426) | type ConcatIterator struct method setIdx (line 453) | func (s *ConcatIterator) setIdx(idx int) { method Rewind (line 466) | func (s *ConcatIterator) Rewind() { method Valid (line 479) | func (s *ConcatIterator) Valid() bool { method Key (line 484) | func (s *ConcatIterator) Key() []byte { method Value (line 489) | func (s *ConcatIterator) Value() y.ValueStruct { method Seek (line 494) | func (s *ConcatIterator) Seek(key []byte) { method Next (line 517) | func (s *ConcatIterator) Next() { method Close (line 541) | func (s *ConcatIterator) Close() error { function NewConcatIterator (line 435) | func NewConcatIterator(tbls []*Table, opt int) *ConcatIterator { FILE: table/merge_iterator.go type MergeIterator (line 16) | type MergeIterator struct method fix (line 87) | func (mi *MergeIterator) fix() { method bigger (line 122) | func (mi *MergeIterator) bigger() *node { method swapSmall (line 129) | func (mi *MergeIterator) swapSmall() { method Next (line 141) | func (mi *MergeIterator) Next() { method setCurrent (line 152) | func (mi *MergeIterator) setCurrent() { method Rewind (line 157) | func (mi *MergeIterator) Rewind() { method Seek (line 165) | func (mi *MergeIterator) Seek(key []byte) { method Valid (line 173) | func (mi *MergeIterator) Valid() bool { method Key (line 178) | func (mi *MergeIterator) Key() []byte { method Value (line 183) | func (mi *MergeIterator) Value() y.ValueStruct { method Close (line 188) | func (mi *MergeIterator) Close() error { type node (line 25) | type node struct method setIterator (line 37) | func (n *node) setIterator(iter y.Iterator) { method setKey (line 45) | func (n *node) setKey() { method next (line 65) | func (n *node) next() { method rewind (line 77) | func (n *node) rewind() { method seek (line 82) | func (n *node) seek(key []byte) { function NewMergeIterator (line 198) | func NewMergeIterator(iters []y.Iterator, reverse bool) y.Iterator { FILE: table/merge_iterator_test.go type SimpleIterator (line 17) | type SimpleIterator struct method Close (line 28) | func (s *SimpleIterator) Close() error { closeCount++; return nil } method Next (line 30) | func (s *SimpleIterator) Next() { method Rewind (line 38) | func (s *SimpleIterator) Rewind() { method Seek (line 46) | func (s *SimpleIterator) Seek(key []byte) { method Key (line 60) | func (s *SimpleIterator) Key() []byte { return s.keys[s.idx] } method Value (line 61) | func (s *SimpleIterator) Value() y.ValueStruct { method Valid (line 68) | func (s *SimpleIterator) Valid() bool { function newSimpleIterator (line 74) | func newSimpleIterator(keys []string, vals []string, reversed bool) *Sim... function getAll (line 90) | func getAll(it y.Iterator) ([]string, []string) { function closeAndCheck (line 101) | func closeAndCheck(t *testing.T, it y.Iterator, expected int) { function TestSimpleIterator (line 107) | func TestSimpleIterator(t *testing.T) { function reversed (line 119) | func reversed(a []string) []string { function TestMergeSingle (line 127) | func TestMergeSingle(t *testing.T) { function TestMergeSingleReversed (line 139) | func TestMergeSingleReversed(t *testing.T) { function TestMergeMore (line 151) | func TestMergeMore(t *testing.T) { function TestMergeIteratorNested (line 215) | func TestMergeIteratorNested(t *testing.T) { function TestMergeIteratorSeek (line 228) | func TestMergeIteratorSeek(t *testing.T) { function TestMergeIteratorSeekReversed (line 241) | func TestMergeIteratorSeekReversed(t *testing.T) { function TestMergeIteratorSeekInvalid (line 254) | func TestMergeIteratorSeekInvalid(t *testing.T) { function TestMergeIteratorSeekInvalidReversed (line 265) | func TestMergeIteratorSeekInvalidReversed(t *testing.T) { function TestMergeIteratorDuplicate (line 276) | func TestMergeIteratorDuplicate(t *testing.T) { function TestMergeDuplicates (line 330) | func TestMergeDuplicates(t *testing.T) { FILE: table/table.go constant fileSuffix (line 36) | fileSuffix = ".sst" constant intSize (line 37) | intSize = int(unsafe.Sizeof(int(0))) type Options (line 40) | type Options struct type TableInterface (line 79) | type TableInterface interface type Table (line 87) | type Table struct method cheapIndex (line 120) | func (t *Table) cheapIndex() *cheapIndex { method offsetsLength (line 123) | func (t *Table) offsetsLength() int { return t.cheapIndex().OffsetsLen... method MaxVersion (line 126) | func (t *Table) MaxVersion() uint64 { return t.cheapIndex().MaxVersion } method BloomFilterSize (line 129) | func (t *Table) BloomFilterSize() int { return t.cheapIndex().BloomFil... method UncompressedSize (line 132) | func (t *Table) UncompressedSize() uint32 { return t.cheapIndex().Unco... method KeyCount (line 135) | func (t *Table) KeyCount() uint32 { return t.cheapIndex().KeyCount } method OnDiskSize (line 139) | func (t *Table) OnDiskSize() uint32 { return t.cheapIndex().OnDiskSize } method CompressionType (line 142) | func (t *Table) CompressionType() options.CompressionType { method IncrRef (line 147) | func (t *Table) IncrRef() { method DecrRef (line 152) | func (t *Table) DecrRef() error { method initBiggestAndSmallest (line 334) | func (t *Table) initBiggestAndSmallest() error { method read (line 407) | func (t *Table) read(off, sz int) ([]byte, error) { method readNoFail (line 411) | func (t *Table) readNoFail(off, sz int) []byte { method initIndex (line 419) | func (t *Table) initIndex() (*fb.BlockOffset, error) { method KeySplits (line 477) | func (t *Table) KeySplits(n int, prefix []byte) []string { method fetchIndex (line 502) | func (t *Table) fetchIndex() *fb.TableIndex { method offsets (line 520) | func (t *Table) offsets(ko *fb.BlockOffset, i int) bool { method block (line 527) | func (t *Table) block(idx int, useCache bool) (*Block, error) { method blockCacheKey (line 627) | func (t *Table) blockCacheKey(idx int) []byte { method indexKey (line 640) | func (t *Table) indexKey() uint64 { method IndexSize (line 645) | func (t *Table) IndexSize() int { method Size (line 650) | func (t *Table) Size() int64 { return int64(t.tableSize) } method StaleDataSize (line 653) | func (t *Table) StaleDataSize() uint32 { return t.fetchIndex().StaleDa... method Smallest (line 656) | func (t *Table) Smallest() []byte { return t.smallest } method Biggest (line 659) | func (t *Table) Biggest() []byte { return t.biggest } method Filename (line 662) | func (t *Table) Filename() string { return t.Fd.Name() } method ID (line 665) | func (t *Table) ID() uint64 { return t.id } method DoesNotHave (line 669) | func (t *Table) DoesNotHave(hash uint32) bool { method readTableIndex (line 685) | func (t *Table) readTableIndex() (*fb.TableIndex, error) { method VerifyChecksum (line 700) | func (t *Table) VerifyChecksum() error { method shouldDecrypt (line 725) | func (t *Table) shouldDecrypt() bool { method KeyID (line 730) | func (t *Table) KeyID() uint64 { method decrypt (line 739) | func (t *Table) decrypt(data []byte, viaCalloc bool) ([]byte, error) { method decompress (line 785) | func (t *Table) decompress(b *Block) error { type cheapIndex (line 111) | type cheapIndex struct function BlockEvictHandler (line 170) | func BlockEvictHandler(b *Block) { type Block (line 174) | type Block struct method incrRef (line 189) | func (b *Block) incrRef() bool { method decrRef (line 212) | func (b *Block) decrRef() { method size (line 232) | func (b *Block) size() int64 { method verifyCheckSum (line 237) | func (b *Block) verifyCheckSum() error { function CreateTable (line 245) | func CreateTable(fname string, builder *Builder) (*Table, error) { function OpenTable (line 268) | func OpenTable(mf *z.MmapFile, opts Options) (*Table, error) { function OpenInMemoryTable (line 313) | func OpenInMemoryTable(data []byte, id uint64, opt *Options) (*Table, er... function ParseFileID (line 758) | func ParseFileID(name string) (uint64, bool) { function IDToFilename (line 774) | func IDToFilename(id uint64) string { function NewFilename (line 780) | func NewFilename(id uint64, dir string) string { FILE: table/table_test.go function key (line 29) | func key(prefix string, i int) string { function getTestTableOptions (line 33) | func getTestTableOptions() Options { function buildTestTable (line 42) | func buildTestTable(t *testing.T, prefix string, n int, opts Options) *T... function buildTable (line 57) | func buildTable(t *testing.T, keyValues [][]string, opts Options) *Table { function TestTableIterator (line 77) | func TestTableIterator(t *testing.T) { function TestSeekToFirst (line 98) | func TestSeekToFirst(t *testing.T) { function TestSeekToLast (line 115) | func TestSeekToLast(t *testing.T) { function TestSeek (line 137) | func TestSeek(t *testing.T) { function TestSeekForPrev (line 171) | func TestSeekForPrev(t *testing.T) { function TestIterateFromStart (line 205) | func TestIterateFromStart(t *testing.T) { function TestIterateFromEnd (line 231) | func TestIterateFromEnd(t *testing.T) { function TestTable (line 256) | func TestTable(t *testing.T) { function TestIterateBackAndForth (line 282) | func TestIterateBackAndForth(t *testing.T) { function TestUniIterator (line 322) | func TestUniIterator(t *testing.T) { function TestConcatIteratorOneTable (line 353) | func TestConcatIteratorOneTable(t *testing.T) { function TestConcatIterator (line 373) | func TestConcatIterator(t *testing.T) { function TestMergingIterator (line 448) | func TestMergingIterator(t *testing.T) { function TestMergingIteratorReversed (line 493) | func TestMergingIteratorReversed(t *testing.T) { function TestMergingIteratorTakeOne (line 542) | func TestMergingIteratorTakeOne(t *testing.T) { function TestMergingIteratorTakeTwo (line 585) | func TestMergingIteratorTakeTwo(t *testing.T) { function TestTableBigValues (line 629) | func TestTableBigValues(t *testing.T) { function TestTableChecksum (line 667) | func TestTableChecksum(t *testing.T) { function BenchmarkRead (line 704) | func BenchmarkRead(b *testing.B) { function BenchmarkReadAndBuild (line 721) | func BenchmarkReadAndBuild(b *testing.B) { function BenchmarkReadMerged (line 746) | func BenchmarkReadMerged(b *testing.B) { function BenchmarkChecksum (line 791) | func BenchmarkChecksum(b *testing.B) { function BenchmarkRandomRead (line 813) | func BenchmarkRandomRead(b *testing.B) { function getTableForBenchmarks (line 840) | func getTableForBenchmarks(b *testing.B, count int, cache *ristretto.Cac... function TestMain (line 863) | func TestMain(m *testing.M) { function TestDoesNotHaveRace (line 869) | func TestDoesNotHaveRace(t *testing.T) { function TestMaxVersion (line 885) | func TestMaxVersion(t *testing.T) { FILE: test_extensions.go constant updateDiscardStatsMsg (line 21) | updateDiscardStatsMsg = "updateDiscardStats iteration done" constant endVLogInitMsg (line 22) | endVLogInitMsg = "End: vlog.init(db)" type testOnlyOptions (line 27) | type testOnlyOptions struct type testOnlyDBExtensions (line 36) | type testOnlyDBExtensions struct method logToSyncChan (line 50) | func (db *DB) logToSyncChan(msg string) { method captureDiscardStats (line 60) | func (db *DB) captureDiscardStats() { FILE: trie/trie.go type node (line 17) | type node struct method isEmpty (line 23) | func (n *node) isEmpty() bool { function newNode (line 27) | func newNode() *node { type Trie (line 35) | type Trie struct method Add (line 96) | func (t *Trie) Add(prefix []byte, id uint64) { method AddMatch (line 110) | func (t *Trie) AddMatch(m pb.Match, id uint64) error { method fix (line 119) | func (t *Trie) fix(m pb.Match, id uint64, op int) error { method Get (line 173) | func (t *Trie) Get(key []byte) map[uint64]struct{} { method get (line 178) | func (t *Trie) get(curNode *node, key []byte) map[uint64]struct{} { method Delete (line 226) | func (t *Trie) Delete(prefix []byte, id uint64) error { method DeleteMatch (line 230) | func (t *Trie) DeleteMatch(m pb.Match, id uint64) error { function NewTrie (line 40) | func NewTrie() *Trie { function parseIgnoreBytes (line 48) | func parseIgnoreBytes(ig string) ([]bool, error) { constant set (line 115) | set = iota constant del (line 116) | del function removeEmpty (line 208) | func removeEmpty(curNode *node) bool { function numNodes (line 240) | func numNodes(curNode *node) int { FILE: trie/trie_test.go function TestGet (line 17) | func TestGet(t *testing.T) { function TestTrieDelete (line 45) | func TestTrieDelete(t *testing.T) { function TestParseIgnoreBytes (line 79) | func TestParseIgnoreBytes(t *testing.T) { function TestPrefixMatchWithHoles (line 93) | func TestPrefixMatchWithHoles(t *testing.T) { FILE: txn.go type oracle (line 24) | type oracle struct method Stop (line 74) | func (o *oracle) Stop() { method readTs (line 78) | func (o *oracle) readTs() uint64 { method nextTs (line 97) | func (o *oracle) nextTs() uint64 { method incrementNextTs (line 103) | func (o *oracle) incrementNextTs() { method setDiscardTs (line 111) | func (o *oracle) setDiscardTs(ts uint64) { method discardAtOrBelow (line 118) | func (o *oracle) discardAtOrBelow() uint64 { method hasConflict (line 128) | func (o *oracle) hasConflict(txn *Txn) bool { method newCommitTs (line 153) | func (o *oracle) newCommitTs(txn *Txn) (uint64, bool) { method doneRead (line 190) | func (o *oracle) doneRead(txn *Txn) { method cleanupCommittedTransactions (line 197) | func (o *oracle) cleanupCommittedTransactions() { // Must be called un... method doneCommit (line 230) | func (o *oracle) doneCommit(cts uint64) { type committedTxn (line 51) | type committedTxn struct function newOracle (line 57) | func newOracle(opt Options) *oracle { type Txn (line 239) | type Txn struct method newPendingWritesIterator (line 312) | func (txn *Txn) newPendingWritesIterator(reversed bool) *pendingWrites... method checkSize (line 335) | func (txn *Txn) checkSize(e *Entry) error { method modify (line 351) | func (txn *Txn) modify(e *Entry) error { method Set (line 403) | func (txn *Txn) Set(key, val []byte) error { method SetEntry (line 412) | func (txn *Txn) SetEntry(e *Entry) error { method Delete (line 424) | func (txn *Txn) Delete(key []byte) error { method Get (line 434) | func (txn *Txn) Get(key []byte) (item *Item, rerr error) { method addReadKey (line 489) | func (txn *Txn) addReadKey(key []byte) { method Discard (line 508) | func (txn *Txn) Discard() { method commitAndSend (line 521) | func (txn *Txn) commitAndSend() (func() error, error) { method commitPrecheck (line 609) | func (txn *Txn) commitPrecheck() error { method Commit (line 649) | func (txn *Txn) Commit() error { method CommitWith (line 700) | func (txn *Txn) CommitWith(cb func(error)) { method ReadTs (line 733) | func (txn *Txn) ReadTs() uint64 { type pendingWritesIterator (line 260) | type pendingWritesIterator struct method Next (line 267) | func (pi *pendingWritesIterator) Next() { method Rewind (line 271) | func (pi *pendingWritesIterator) Rewind() { method Seek (line 275) | func (pi *pendingWritesIterator) Seek(key []byte) { method Key (line 286) | func (pi *pendingWritesIterator) Key() []byte { method Value (line 292) | func (pi *pendingWritesIterator) Value() y.ValueStruct { method Valid (line 304) | func (pi *pendingWritesIterator) Valid() bool { method Close (line 308) | func (pi *pendingWritesIterator) Close() error { function exceedsSize (line 346) | func exceedsSize(prefix string, max int64, key []byte) error { type txnCb (line 674) | type txnCb struct function runTxnCallback (line 680) | func runTxnCallback(cb *txnCb) { method NewTransaction (line 757) | func (db *DB) NewTransaction(update bool) *Txn { method newTransaction (line 761) | func (db *DB) newTransaction(update, isManaged bool) *Txn { method View (line 788) | func (db *DB) View(fn func(txn *Txn) error) error { method Update (line 806) | func (db *DB) Update(fn func(txn *Txn) error) error { FILE: txn_test.go function TestTxnSimple (line 24) | func TestTxnSimple(t *testing.T) { function TestTxnReadAfterWrite (line 47) | func TestTxnReadAfterWrite(t *testing.T) { function TestTxnCommitAsync (line 88) | func TestTxnCommitAsync(t *testing.T) { function TestTxnVersions (line 154) | func TestTxnVersions(t *testing.T) { function TestTxnWriteSkew (line 258) | func TestTxnWriteSkew(t *testing.T) { function TestTxnIterationEdgeCase (line 326) | func TestTxnIterationEdgeCase(t *testing.T) { function TestTxnIterationEdgeCase2 (line 416) | func TestTxnIterationEdgeCase2(t *testing.T) { function TestTxnIterationEdgeCase3 (line 509) | func TestTxnIterationEdgeCase3(t *testing.T) { function TestIteratorAllVersionsWithDeleted (line 619) | func TestIteratorAllVersionsWithDeleted(t *testing.T) { function TestIteratorAllVersionsWithDeleted2 (line 682) | func TestIteratorAllVersionsWithDeleted2(t *testing.T) { function TestManagedDB (line 724) | func TestManagedDB(t *testing.T) { function TestArmV7Issue311Fix (line 838) | func TestArmV7Issue311Fix(t *testing.T) { function TestConflict (line 871) | func TestConflict(t *testing.T) { FILE: util.go method validate (line 19) | func (s *levelsController) validate() error { method validate (line 29) | func (s *levelHandler) validate() error { method reserveFileID (line 81) | func (s *levelsController) reserveFileID() uint64 { function getIDMap (line 86) | func getIDMap(dir string) map[uint64]struct{} { function init (line 103) | func init() { FILE: value.go constant bitDelete (line 38) | bitDelete byte = 1 << 0 constant bitValuePointer (line 39) | bitValuePointer byte = 1 << 1 constant bitDiscardEarlierVersions (line 40) | bitDiscardEarlierVersions byte = 1 << 2 constant bitMergeEntry (line 42) | bitMergeEntry byte = 1 << 3 constant bitTxn (line 44) | bitTxn byte = 1 << 6 constant bitFinTxn (line 45) | bitFinTxn byte = 1 << 7 constant mi (line 47) | mi int64 = 1 << 20 constant vlogHeaderSize (line 53) | vlogHeaderSize = 20 type logEntry (line 59) | type logEntry type safeRead (line 61) | type safeRead struct method Entry (line 109) | func (r *safeRead) Entry(reader io.Reader) (*Entry, error) { type hashReader (line 71) | type hashReader struct method Read (line 86) | func (t *hashReader) Read(p []byte) (int, error) { method ReadByte (line 96) | func (t *hashReader) ReadByte() (byte, error) { method Sum32 (line 103) | func (t *hashReader) Sum32() uint32 { function newHashReader (line 77) | func newHashReader(r io.Reader) *hashReader { method valueThreshold (line 430) | func (db *DB) valueThreshold() int64 { type valueLog (line 434) | type valueLog struct method rewrite (line 162) | func (vlog *valueLog) rewrite(f *logFile) error { method incrIteratorCount (line 355) | func (vlog *valueLog) incrIteratorCount() { method iteratorCount (line 359) | func (vlog *valueLog) iteratorCount() int { method decrIteratorCount (line 363) | func (vlog *valueLog) decrIteratorCount() error { method deleteLogFile (line 386) | func (vlog *valueLog) deleteLogFile(lf *logFile) error { method dropAll (line 398) | func (vlog *valueLog) dropAll() (int, error) { method fpath (line 458) | func (vlog *valueLog) fpath(fid uint32) string { method populateFilesMap (line 462) | func (vlog *valueLog) populateFilesMap() error { method createVlogFile (line 498) | func (vlog *valueLog) createVlogFile() (*logFile, error) { method init (line 533) | func (vlog *valueLog) init(db *DB) { method open (line 551) | func (vlog *valueLog) open(db *DB) error { method Close (line 616) | func (vlog *valueLog) Close() error { method sortedFids (line 645) | func (vlog *valueLog) sortedFids() []uint32 { method sync (line 719) | func (vlog *valueLog) sync() error { method woffset (line 742) | func (vlog *valueLog) woffset() uint32 { method validateWrites (line 749) | func (vlog *valueLog) validateWrites(reqs []*request) error { method write (line 782) | func (vlog *valueLog) write(reqs []*request) error { method getFileRLocked (line 902) | func (vlog *valueLog) getFileRLocked(vp valuePointer) (*logFile, error) { method Read (line 930) | func (vlog *valueLog) Read(vp valuePointer, _ *y.Slice) ([]byte, func(... method getUnlockCallback (line 971) | func (vlog *valueLog) getUnlockCallback(lf *logFile) func() { method readValueBytes (line 980) | func (vlog *valueLog) readValueBytes(vp valuePointer) ([]byte, *logFil... method pickLog (line 992) | func (vlog *valueLog) pickLog(discardRatio float64) *logFile { method doRunGC (line 1054) | func (vlog *valueLog) doRunGC(lf *logFile) error { method waitOnGC (line 1066) | func (vlog *valueLog) waitOnGC(lc *z.Closer) { method runGC (line 1076) | func (vlog *valueLog) runGC(discardRatio float64) error { method updateDiscardStats (line 1094) | func (vlog *valueLog) updateDiscardStats(stats map[uint32]int64) { function vlogFilePath (line 454) | func vlogFilePath(dirPath string, fid uint32) string { function errFile (line 527) | func errFile(err error, path string, msg string) error { type request (line 662) | type request struct method reset (line 672) | func (req *request) reset() { method IncrRef (line 680) | func (req *request) IncrRef() { method DecrRef (line 684) | func (req *request) DecrRef() { method Wait (line 693) | func (req *request) Wait() error { type requests (line 700) | type requests method DecrRef (line 702) | func (reqs requests) DecrRef() { method IncrRef (line 708) | func (reqs requests) IncrRef() { function estimateRequestSize (line 773) | func estimateRequestSize(req *request) uint64 { function discardEntry (line 1035) | func discardEntry(e Entry, vs y.ValueStruct, db *DB) bool { type vlogThreshold (line 1106) | type vlogThreshold struct method Clear (line 1150) | func (v *vlogThreshold) Clear(opt Options) { method update (line 1155) | func (v *vlogThreshold) update(sizes []int64) { method close (line 1159) | func (v *vlogThreshold) close() { method listenForValueThresholdUpdate (line 1163) | func (v *vlogThreshold) listenForValueThresholdUpdate() { function initVlogThreshold (line 1117) | func initVlogThreshold(opt *Options) *vlogThreshold { FILE: value_test.go function TestDynamicValueThreshold (line 25) | func TestDynamicValueThreshold(t *testing.T) { function TestValueBasic (line 67) | func TestValueBasic(t *testing.T) { function TestValueGCManaged (line 127) | func TestValueGCManaged(t *testing.T) { function TestValueGC (line 196) | func TestValueGC(t *testing.T) { function TestValueGC2 (line 249) | func TestValueGC2(t *testing.T) { function TestValueGC3 (line 326) | func TestValueGC3(t *testing.T) { function TestValueGC4 (line 401) | func TestValueGC4(t *testing.T) { function TestPersistLFDiscardStats (line 475) | func TestPersistLFDiscardStats(t *testing.T) { function TestValueChecksums (line 544) | func TestValueChecksums(t *testing.T) { function TestPartialAppendToWAL (line 627) | func TestPartialAppendToWAL(t *testing.T) { function TestReadOnlyOpenWithPartialAppendToWAL (line 689) | func TestReadOnlyOpenWithPartialAppendToWAL(t *testing.T) { function TestValueLogTrigger (line 727) | func TestValueLogTrigger(t *testing.T) { function createMemFile (line 765) | func createMemFile(t *testing.T, entries []*Entry) ([]byte, uint32) { function TestPenultimateMemCorruption (line 792) | func TestPenultimateMemCorruption(t *testing.T) { function checkKeys (line 858) | func checkKeys(t *testing.T, kv *DB, keys [][]byte) { type testHelper (line 871) | type testHelper struct method key (line 877) | func (th *testHelper) key(i int) []byte { method value (line 880) | func (th *testHelper) value() []byte { method writeRange (line 890) | func (th *testHelper) writeRange(from, to int) { method readRange (line 899) | func (th *testHelper) readRange(from, to int) { function TestBug578 (line 919) | func TestBug578(t *testing.T) { function BenchmarkReadWrite (line 951) | func BenchmarkReadWrite(b *testing.B) { function TestValueLogTruncate (line 1018) | func TestValueLogTruncate(t *testing.T) { function TestSafeEntry (line 1058) | func TestSafeEntry(t *testing.T) { function TestValueEntryChecksum (line 1075) | func TestValueEntryChecksum(t *testing.T) { function TestValidateWrite (line 1155) | func TestValidateWrite(t *testing.T) { function TestValueLogMeta (line 1216) | func TestValueLogMeta(t *testing.T) { function TestFirstVlogFile (line 1260) | func TestFirstVlogFile(t *testing.T) { FILE: watermark_edge_test.go function TestWaterMarkEdgeCase (line 18) | func TestWaterMarkEdgeCase(t *testing.T) { function doWork (line 46) | func doWork(db *DB, i int) error { function generateRandomBytes (line 80) | func generateRandomBytes() []byte { function getValue (line 88) | func getValue(txn *Txn, key string) { function setValue (line 96) | func setValue(txn *Txn, key, value string) { function delay (line 102) | func delay() { FILE: y/bloom.go type Filter (line 10) | type Filter method MayContainKey (line 12) | func (f Filter) MayContainKey(k []byte) bool { method MayContain (line 18) | func (f Filter) MayContain(h uint32) bool { function NewFilter (line 45) | func NewFilter(keys []uint32, bitsPerKey int) Filter { function BloomBitsPerKey (line 51) | func BloomBitsPerKey(numEntries int, fp float64) int { function appendFilter (line 57) | func appendFilter(buf []byte, keys []uint32, bitsPerKey int) []byte { function extend (line 95) | func extend(b []byte, n int) (overall, trailer []byte) { function Hash (line 117) | func Hash(b []byte) uint32 { FILE: y/bloom_test.go method String (line 11) | func (f Filter) String() string { function TestSmallBloomFilter (line 25) | func TestSmallBloomFilter(t *testing.T) { function TestBloomFilter (line 56) | func TestBloomFilter(t *testing.T) { function TestHash (line 127) | func TestHash(t *testing.T) { FILE: y/checksum.go function CalculateChecksum (line 21) | func CalculateChecksum(data []byte, ct pb.Checksum_Algorithm) uint64 { function VerifyChecksum (line 33) | func VerifyChecksum(data []byte, expected *pb.Checksum) error { FILE: y/checksum_test.go function TestCalculateChecksum_CRC32C (line 12) | func TestCalculateChecksum_CRC32C(t *testing.T) { function TestCalculateChecksum_XXHash64 (line 24) | func TestCalculateChecksum_XXHash64(t *testing.T) { function TestVerifyChecksum_Success (line 31) | func TestVerifyChecksum_Success(t *testing.T) { function TestVerifyChecksum_Mismatch (line 40) | func TestVerifyChecksum_Mismatch(t *testing.T) { function TestCalculateChecksum_UnsupportedAlgoPanics (line 48) | func TestCalculateChecksum_UnsupportedAlgoPanics(t *testing.T) { FILE: y/encrypt.go function XORBlock (line 19) | func XORBlock(dst, src, key, iv []byte) error { function XORBlockAllocate (line 29) | func XORBlockAllocate(src, key, iv []byte) ([]byte, error) { function XORBlockStream (line 40) | func XORBlockStream(w io.Writer, src, key, iv []byte) error { function GenerateIV (line 52) | func GenerateIV() ([]byte, error) { FILE: y/encrypt_test.go function TestXORBlock (line 16) | func TestXORBlock(t *testing.T) { FILE: y/error.go function Check (line 29) | func Check(err error) { function Check2 (line 36) | func Check2(_ interface{}, err error) { function AssertTrue (line 41) | func AssertTrue(b bool) { function AssertTruef (line 48) | func AssertTruef(b bool, format string, args ...interface{}) { function Wrap (line 55) | func Wrap(err error, msg string) error { function Wrapf (line 66) | func Wrapf(err error, format string, args ...interface{}) error { function CombineErrors (line 70) | func CombineErrors(one, other error) error { FILE: y/error_test.go function TestCombineWithBothErrorsPresent (line 15) | func TestCombineWithBothErrorsPresent(t *testing.T) { function TestCombineErrorsWithOneErrorPresent (line 20) | func TestCombineErrorsWithOneErrorPresent(t *testing.T) { function TestCombineErrorsWithOtherErrorPresent (line 25) | func TestCombineErrorsWithOtherErrorPresent(t *testing.T) { function TestCombineErrorsWithBothErrorsAsNil (line 30) | func TestCombineErrorsWithBothErrorsAsNil(t *testing.T) { FILE: y/file_dsync.go function init (line 13) | func init() { FILE: y/file_nodsync.go function init (line 13) | func init() { FILE: y/iterator.go type ValueStruct (line 15) | type ValueStruct struct method EncodedSize (line 36) | func (v *ValueStruct) EncodedSize() uint32 { method Decode (line 43) | func (v *ValueStruct) Decode(b []byte) { method Encode (line 52) | func (v *ValueStruct) Encode(b []byte) uint32 { method EncodeTo (line 63) | func (v *ValueStruct) EncodeTo(buf *bytes.Buffer) { function sizeVarint (line 24) | func sizeVarint(x uint64) (n int) { type Iterator (line 74) | type Iterator interface FILE: y/metrics.go constant BADGER_METRIC_PREFIX (line 13) | BADGER_METRIC_PREFIX = "badger_" function init (line 67) | func init() { function NumIteratorsCreatedAdd (line 98) | func NumIteratorsCreatedAdd(enabled bool, val int64) { function NumGetsWithResultsAdd (line 102) | func NumGetsWithResultsAdd(enabled bool, val int64) { function NumReadsVlogAdd (line 106) | func NumReadsVlogAdd(enabled bool, val int64) { function NumBytesWrittenUserAdd (line 110) | func NumBytesWrittenUserAdd(enabled bool, val int64) { function NumWritesVlogAdd (line 114) | func NumWritesVlogAdd(enabled bool, val int64) { function NumBytesReadsVlogAdd (line 118) | func NumBytesReadsVlogAdd(enabled bool, val int64) { function NumBytesReadsLSMAdd (line 122) | func NumBytesReadsLSMAdd(enabled bool, val int64) { function NumBytesWrittenVlogAdd (line 126) | func NumBytesWrittenVlogAdd(enabled bool, val int64) { function NumBytesWrittenToL0Add (line 130) | func NumBytesWrittenToL0Add(enabled bool, val int64) { function NumBytesCompactionWrittenAdd (line 134) | func NumBytesCompactionWrittenAdd(enabled bool, key string, val int64) { function NumGetsAdd (line 138) | func NumGetsAdd(enabled bool, val int64) { function NumPutsAdd (line 142) | func NumPutsAdd(enabled bool, val int64) { function NumMemtableGetsAdd (line 146) | func NumMemtableGetsAdd(enabled bool, val int64) { function NumCompactionTablesAdd (line 150) | func NumCompactionTablesAdd(enabled bool, val int64) { function LSMSizeSet (line 154) | func LSMSizeSet(enabled bool, key string, val expvar.Var) { function VlogSizeSet (line 158) | func VlogSizeSet(enabled bool, key string, val expvar.Var) { function PendingWritesSet (line 162) | func PendingWritesSet(enabled bool, key string, val expvar.Var) { function NumLSMBloomHitsAdd (line 166) | func NumLSMBloomHitsAdd(enabled bool, key string, val int64) { function NumLSMGetsAdd (line 170) | func NumLSMGetsAdd(enabled bool, key string, val int64) { function LSMSizeGet (line 174) | func LSMSizeGet(enabled bool, key string) expvar.Var { function VlogSizeGet (line 178) | func VlogSizeGet(enabled bool, key string) expvar.Var { function addInt (line 182) | func addInt(enabled bool, metric *expvar.Int, val int64) { function addToMap (line 190) | func addToMap(enabled bool, metric *expvar.Map, key string, val int64) { function storeToMap (line 198) | func storeToMap(enabled bool, metric *expvar.Map, key string, val expvar... function getFromMap (line 206) | func getFromMap(enabled bool, metric *expvar.Map, key string) expvar.Var { FILE: y/watermark.go type uint64Heap (line 16) | type uint64Heap method Len (line 18) | func (u uint64Heap) Len() int { return len(u) } method Less (line 19) | func (u uint64Heap) Less(i, j int) bool { return u[i] < u[j] } method Swap (line 20) | func (u uint64Heap) Swap(i, j int) { u[i], u[j] = u[j], u[i] } method Push (line 21) | func (u *uint64Heap) Push(x interface{}) { *u = append(*u, x.(uint64)) } method Pop (line 22) | func (u *uint64Heap) Pop() interface{} { type mark (line 33) | type mark struct type WaterMark (line 51) | type WaterMark struct method Init (line 59) | func (w *WaterMark) Init(closer *z.Closer) { method Begin (line 65) | func (w *WaterMark) Begin(index uint64) { method BeginMany (line 71) | func (w *WaterMark) BeginMany(indices []uint64) { method Done (line 77) | func (w *WaterMark) Done(index uint64) { method DoneMany (line 82) | func (w *WaterMark) DoneMany(indices []uint64) { method DoneUntil (line 88) | func (w *WaterMark) DoneUntil() uint64 { method SetDoneUntil (line 94) | func (w *WaterMark) SetDoneUntil(val uint64) { method LastIndex (line 99) | func (w *WaterMark) LastIndex() uint64 { method WaitForMark (line 104) | func (w *WaterMark) WaitForMark(ctx context.Context, index uint64) err... method process (line 127) | func (w *WaterMark) process(closer *z.Closer) { FILE: y/y.go type Flags (line 37) | type Flags constant Sync (line 43) | Sync Flags = 1 << iota constant ReadOnly (line 45) | ReadOnly function OpenExistingFile (line 57) | func OpenExistingFile(filename string, flags Flags) (*os.File, error) { function CreateSyncedFile (line 70) | func CreateSyncedFile(filename string, sync bool) (*os.File, error) { function OpenSyncedFile (line 79) | func OpenSyncedFile(filename string, sync bool) (*os.File, error) { function OpenTruncFile (line 88) | func OpenTruncFile(filename string, sync bool) (*os.File, error) { function SafeCopy (line 97) | func SafeCopy(a, src []byte) []byte { function Copy (line 106) | func Copy(a []byte) []byte { function KeyWithTs (line 113) | func KeyWithTs(key []byte, ts uint64) []byte { function ParseTs (line 121) | func ParseTs(key []byte) uint64 { function CompareKeys (line 132) | func CompareKeys(key1, key2 []byte) int { function ParseKey (line 140) | func ParseKey(key []byte) []byte { function SameKey (line 149) | func SameKey(src, dst []byte) bool { type Slice (line 158) | type Slice struct method Resize (line 164) | func (s *Slice) Resize(sz int) []byte { function FixedDuration (line 173) | func FixedDuration(d time.Duration) string { type Throttle (line 187) | type Throttle struct method Do (line 206) | func (t *Throttle) Do() error { method Done (line 222) | func (t *Throttle) Done(err error) { method Finish (line 237) | func (t *Throttle) Finish() error { function NewThrottle (line 196) | func NewThrottle(max int) *Throttle { function U16ToBytes (line 254) | func U16ToBytes(v uint16) []byte { function BytesToU16 (line 261) | func BytesToU16(b []byte) uint16 { function U32ToBytes (line 266) | func U32ToBytes(v uint32) []byte { function BytesToU32 (line 273) | func BytesToU32(b []byte) uint32 { function U32SliceToBytes (line 278) | func U32SliceToBytes(u32s []uint32) []byte { function BytesToU32Slice (line 291) | func BytesToU32Slice(b []byte) []uint32 { function U64ToBytes (line 304) | func U64ToBytes(v uint64) []byte { function BytesToU64 (line 311) | func BytesToU64(b []byte) uint64 { function U64SliceToBytes (line 316) | func U64SliceToBytes(u64s []uint64) []byte { function BytesToU64Slice (line 329) | func BytesToU64Slice(b []byte) []uint64 { type page (line 342) | type page struct type PageBuffer (line 351) | type PageBuffer struct method Write (line 367) | func (b *PageBuffer) Write(data []byte) (int, error) { method WriteByte (line 389) | func (b *PageBuffer) WriteByte(data byte) error { method Len (line 395) | func (b *PageBuffer) Len() int { method pageForOffset (line 400) | func (b *PageBuffer) pageForOffset(offset int) (int, int) { method Truncate (line 420) | func (b *PageBuffer) Truncate(n int) { method Bytes (line 430) | func (b *PageBuffer) Bytes() []byte { method WriteTo (line 441) | func (b *PageBuffer) WriteTo(w io.Writer) (int64, error) { method NewReaderAt (line 455) | func (b *PageBuffer) NewReaderAt(offset int) *PageBufferReader { function NewPageBuffer (line 359) | func NewPageBuffer(pageSize int) *PageBuffer { type PageBufferReader (line 466) | type PageBufferReader struct method Read (line 473) | func (r *PageBufferReader) Read(p []byte) (int, error) { constant kvsz (line 510) | kvsz = int(unsafe.Sizeof(pb.KV{})) function NewKV (line 512) | func NewKV(alloc *z.Allocator) *pb.KV { function IBytesToString (line 524) | func IBytesToString(size uint64, precision int) string { type RateMonitor (line 538) | type RateMonitor struct method Capture (line 557) | func (rm *RateMonitor) Capture(sent uint64) { method Rate (line 571) | func (rm *RateMonitor) Rate() uint64 { function NewRateMonitor (line 546) | func NewRateMonitor(numSamples int) *RateMonitor { constant minRate (line 553) | minRate = 0.0001 FILE: y/y_test.go function BenchmarkBuffer (line 24) | func BenchmarkBuffer(b *testing.B) { function TestPageBuffer (line 49) | func TestPageBuffer(t *testing.T) { function TestBufferWrite (line 75) | func TestBufferWrite(t *testing.T) { function TestPagebufferTruncate (line 98) | func TestPagebufferTruncate(t *testing.T) { function TestPagebufferReader (line 126) | func TestPagebufferReader(t *testing.T) { function TestPagebufferReader2 (line 174) | func TestPagebufferReader2(t *testing.T) { function TestPagebufferReader3 (line 203) | func TestPagebufferReader3(t *testing.T) { function TestPagebufferReader4 (line 244) | func TestPagebufferReader4(t *testing.T) { function TestPagebufferReader5 (line 269) | func TestPagebufferReader5(t *testing.T) { function TestSizeVarintForZero (line 285) | func TestSizeVarintForZero(t *testing.T) { function TestEncodedSize (line 290) | func TestEncodedSize(t *testing.T) { function TestAllocatorReuse (line 306) | func TestAllocatorReuse(t *testing.T) { function TestSafeCopy_Issue2067 (line 332) | func TestSafeCopy_Issue2067(t *testing.T) { FILE: y/zstd.go function ZSTDDecompress (line 22) | func ZSTDDecompress(dst, src []byte) ([]byte, error) { function ZSTDCompress (line 32) | func ZSTDCompress(dst, src []byte, compressionLevel int) ([]byte, error) { function ZSTDCompressBound (line 46) | func ZSTDCompressBound(srcSize int) int {