SYMBOL INDEX (90 symbols across 13 files) FILE: const/Reader.go type Reader (line 8) | type Reader struct method Next (line 13) | func (r *Reader) Next() ([]byte, *storage.ChunkPosition, error) { FILE: const/constant.go constant B (line 4) | B = 1 constant KB (line 5) | KB = 1024 * B constant MB (line 6) | MB = 1024 * KB constant GB (line 7) | GB = 1024 * MB constant BlockSize (line 12) | BlockSize = 32 * KB constant ChunkHeadSize (line 16) | ChunkHeadSize = 7 constant FirstSegmentFileId (line 20) | FirstSegmentFileId = 1 constant segmentFileModePerm (line 21) | segmentFileModePerm = 0644 function ExecDir (line 24) | func ExecDir() string { FILE: main.go function main (line 8) | func main() { FILE: storage/SegmentReader.go type SegmentReader (line 8) | type SegmentReader struct method Next (line 14) | func (s *SegmentReader) Next() ([]byte, *ChunkPosition, error) { FILE: storage/batch.go function makeBatch (line 9) | func makeBatch() interface{} { type Batch (line 21) | type Batch struct method reset (line 30) | func (batch *Batch) reset() { method init (line 34) | func (batch *Batch) init(readOnly bool, sync bool, db *DB) *Batch { method lock (line 42) | func (batch *Batch) lock() { method writePendingWrites (line 50) | func (batch *Batch) writePendingWrites() *Batch { method put (line 55) | func (batch *Batch) put(key []byte, value []byte) error { method unLock (line 77) | func (batch *Batch) unLock() { method commit (line 86) | func (batch *Batch) commit(w *WriteOptions) error { method Get (line 120) | func (batch *Batch) Get(key []byte) ([]byte, error) { method delete (line 155) | func (batch *Batch) delete(key []byte) error { FILE: storage/chunk.go constant ChunkTypeFull (line 6) | ChunkTypeFull ChunkType = iota constant ChunkTypeStart (line 7) | ChunkTypeStart constant ChunkTypeMiddle (line 8) | ChunkTypeMiddle constant ChunkTypeEnd (line 9) | ChunkTypeEnd type ChunkPosition (line 12) | type ChunkPosition struct FILE: storage/db.go constant FileLockName (line 13) | FileLockName = "FLOCK" type DB (line 16) | type DB struct method Close (line 24) | func (db *DB) Close() error { method Put (line 41) | func (db *DB) Put(key string, value string, options *WriteOptions) err... method waitMemTableSpace (line 56) | func (db *DB) waitMemTableSpace() error { method Get (line 71) | func (db *DB) Get(key string) ([]byte, error) { method getMemTables (line 82) | func (db *DB) getMemTables() []*MemTable { method Delete (line 86) | func (db *DB) Delete(key []byte, options *WriteOptions) error { function OpenDB (line 103) | func OpenDB(options Options) (*DB, error) { FILE: storage/logrecord.go constant LogRecordNormal (line 10) | LogRecordNormal = iota constant LogRecordDeleted (line 11) | LogRecordDeleted constant LogRecordBatchEnd (line 12) | LogRecordBatchEnd constant MaxLogRecordLength (line 13) | MaxLogRecordLength = 1 + binary.MaxVarintLen64*2 type LogRecord (line 16) | type LogRecord struct method Encode (line 28) | func (logRecord *LogRecord) Encode() []byte { method Decode (line 50) | func (logRecord *LogRecord) Decode(b []byte) { function NewLogRecord (line 23) | func NewLogRecord() *LogRecord { FILE: storage/memtable.go constant initTableId (line 16) | initTableId = 1 constant walFileExt (line 18) | walFileExt = ".MEM.%d" type MemTable (line 21) | type MemTable struct method get (line 145) | func (mt *MemTable) get(key []byte) (bool, []byte) { method isFull (line 155) | func (mt *MemTable) isFull() bool { method putBatch (line 159) | func (mt *MemTable) putBatch(records map[string]*LogRecord, batchId sn... method close (line 198) | func (mt *MemTable) close() error { type memTableOptions (line 31) | type memTableOptions struct function openAllMemTables (line 40) | func openAllMemTables(options WalOptions) ([]*MemTable, error) { function openMemTable (line 87) | func openMemTable(option memTableOptions) (*MemTable, error) { FILE: storage/options.go type WalOptions (line 8) | type WalOptions struct type BatchOptions (line 17) | type BatchOptions struct function tempDBDir (line 35) | func tempDBDir() string { type WriteOptions (line 40) | type WriteOptions struct FILE: storage/pool.go type bufferPool (line 8) | type bufferPool struct method Get (line 12) | func (p *bufferPool) Get() *bytes.Buffer { method Put (line 16) | func (p *bufferPool) Put(buffer *bytes.Buffer) { function newBufferPool (line 22) | func newBufferPool() *bufferPool { FILE: storage/segmentfile.go type SegmentFile (line 16) | type SegmentFile struct method readInternal (line 32) | func (f *SegmentFile) readInternal(index uint32, offset uint32) ([]byt... method NewSegmentReader (line 37) | func (f *SegmentFile) NewSegmentReader() *SegmentReader { method Close (line 45) | func (f *SegmentFile) Close() error { method Size (line 53) | func (f *SegmentFile) Size() int64 { method Sync (line 57) | func (f *SegmentFile) Sync() error { method Write (line 61) | func (f *SegmentFile) Write(data []byte) (*ChunkPosition, error) { method WriteAll (line 88) | func (f *SegmentFile) WriteAll(writes [][]byte) (position []*ChunkPosi... method writeBuffer (line 121) | func (f *SegmentFile) writeBuffer(bytes []byte, buffer *bytes.Buffer) ... method writeBuffer2File (line 189) | func (f *SegmentFile) writeBuffer2File(buffer *bytes.Buffer) error { method appendChunk2Buffer (line 197) | func (f *SegmentFile) appendChunk2Buffer(buffer *bytes.Buffer, data []... function segmentFileName (line 220) | func segmentFileName(dir, ext string, id uint32) string { function openSegmentFile (line 224) | func openSegmentFile(dir string, ext string, id uint32, localCache *lru.... FILE: storage/tinywal.go type TinyWAL (line 15) | type TinyWAL struct method close (line 28) | func (w *TinyWAL) close() error { method PendingWrites (line 118) | func (w *TinyWAL) PendingWrites(data []byte) error { method WriteAll (line 126) | func (w *TinyWAL) WriteAll() ([]*ChunkPosition, error) { method Sync (line 153) | func (w *TinyWAL) Sync() error { method maxWriteSize (line 160) | func (w *TinyWAL) maxWriteSize(size int64) int64 { method NewReader (line 167) | func (w *TinyWAL) NewReader() *_const.Reader { method Write (line 185) | func (w *TinyWAL) Write(data []byte) (*ChunkPosition, error) { method isFull (line 217) | func (w *TinyWAL) isFull(delta int64) bool { method replaceActiveSegmentFile (line 221) | func (w *TinyWAL) replaceActiveSegmentFile() error { method ClearPendingWrites (line 236) | func (w *TinyWAL) ClearPendingWrites() { function OpenTinyWAL (line 47) | func OpenTinyWAL(option WalOptions) (*TinyWAL, error) {