MCPcopy Create free account

hub / github.com/Kirov7/CouloyDB / functions

Functions564 in github.com/Kirov7/CouloyDB

↓ 3 callersMethodskipToNext
()
iterator.go:56
↓ 3 callersMethodunWatch
(watcher *Watcher)
watch.go:74
↓ 2 callersFunctionAddCommand
(cmds ...*cobra.Command)
cmd/root/root.go:18
↓ 2 callersMethodAppend
(key []byte, value []byte)
txn.go:577
↓ 2 callersMethodCheckIsExist
CheckIsExist check the given key from db if exist
server/database/mutildb.go:157
↓ 2 callersMethodClear
()
server/database/datastruct/dict/dict.go:18
↓ 2 callersMethodClose
(ctx context.Context)
server/server.go:72
↓ 2 callersFunctionDecodeByteSlices
(data []byte)
public/utils/bytex/bytex.go:48
↓ 2 callersMethodDecr
(key []byte)
txn.go:510
↓ 2 callersFunctionEncodeByteSlices
(key, value []byte)
public/utils/bytex/bytex.go:35
↓ 2 callersMethodExist
(key string)
server/database/datastruct/dict/dict.go:19
↓ 2 callersMethodGetTxId
()
txn.go:108
↓ 2 callersMethodGroup
()
server/sliceRouter.go:90
↓ 2 callersMethodHExist
(key, field []byte)
txnHash.go:93
↓ 2 callersMethodIncr
(key []byte)
txn.go:506
↓ 2 callersFunctionIsErrorReply
IsErrorReply returns true if the given reply is error
server/resp/reply/reply.go:139
↓ 2 callersMethodIsExist
(key []byte)
db.go:220
↓ 2 callersMethodMGet
(keys [][]byte)
txn.go:589
↓ 2 callersFunctionMakeNullBulkReply
MakeNullBulkReply creates a new NullBulkReply
server/resp/reply/consts.go:41
↓ 2 callersMethodMembers
()
public/utils/consistent/consistent.go:119
↓ 2 callersFunctionNew
New creates a new Consistent object with a default setting of 20 replicas for each entry. To change the number of replicas, set NumberOfReplicas befo
public/utils/consistent/consistent.go:45
↓ 2 callersFunctionNewBTree
NewBTree Init BTree struct
meta/btree.go:15
↓ 2 callersFunctionNewSingleDB
NewSingleDB create single DB instance
server/database/mutildb.go:93
↓ 2 callersFunctionNewTailService
(c *TcpSliceRouterContext)
server/tail.go:8
↓ 2 callersFunctionNewTcpSliceRouter
()
server/sliceRouter.go:86
↓ 2 callersFunctionNewTcpSliceRouterHandler
(coreFunc func(*TcpSliceRouterContext) TCPHandler, router *TcpSliceRouter)
server/sliceRouter.go:79
↓ 2 callersFunctionOpenDataFile
OpenDataFile Open new datafile
data/dataFile.go:20
↓ 2 callersFunctionOpenHintFile
OpenHintFile Open new datafile
data/dataFile.go:26
↓ 2 callersFunctionOpenMergeFinishedFile
OpenMergeFinishedFile Open new datafile
data/dataFile.go:32
↓ 2 callersFunctionParseStream
ParseStream reads data from io.Reader and send payloads through channel
server/resp/parser/parser.go:21
↓ 2 callersMethodPop
()
txn.go:644
↓ 2 callersMethodPut
(key string, val []byte)
server/database/datastruct/dict/couloyDict.go:37
↓ 2 callersMethodPut
(key string, val []byte)
server/database/datastruct/dict/dict.go:10
↓ 2 callersMethodPutIfAbsent
(key string, val []byte)
server/database/datastruct/dict/dict.go:11
↓ 2 callersMethodRead
Read By specifying the location data in a read the file
driver/ioManager.go:9
↓ 2 callersMethodRemoves
Removes the given keys from db
server/database/mutildb.go:167
↓ 2 callersFunctionRespMiddleware
parse Resp and use db exec the request if this node is not responsible for the request, then Forward the request(store the useful node in the context)
server/resp/handler.go:60
↓ 2 callersMethodSMembers
(key []byte)
txnSet.go:92
↓ 2 callersMethodServeTCP
(ctx context.Context, conn net.Conn)
server/handler.go:13
↓ 2 callersMethodSetEX
(key, value []byte)
txn.go:478
↓ 2 callersMethodSetNX
(key, value []byte)
txn.go:465
↓ 2 callersFunctionSetupEngine
SetupEngine creates a RespHandler instance
server/resp/handler.go:31
↓ 2 callersMethodUse
(middlewares ...TcpHandlerFunc)
server/sliceRouter.go:96
↓ 2 callersMethodWaitWithTimeout
WaitWithTimeout blocks until the WaitGroup counter is zero or timeout returns true if timeout
public/utils/wait/wait.go:36
↓ 2 callersMethodadd
(job *ds.Job)
ttl.go:29
↓ 2 callersMethodadd
need c.Lock() before calling
public/utils/consistent/consistent.go:67
↓ 2 callersMethodbegin
begin
txn.go:250
↓ 2 callersMethodbroadcast
broadcast broadcasts command to all node in cluster
server/database/clusterdb.go:169
↓ 2 callersMethodcloseConn
(conn *net.Conn)
server/resp/handler.go:40
↓ 2 callersMethodcommit
Check for conflicts and finally perform a commit or rollback
txn.go:267
↓ 2 callersFunctioncompareSlices
compareSlices checks if two slices of byte slices (a and b)have the same elements, regardless of order. It returns true if they have the same element
txnSet_test.go:422
↓ 2 callersFunctiondecodeFieldKey
(key []byte)
txnHash.go:249
↓ 2 callersFunctiondecodeListMeta
(listMeta []byte)
txnList.go:284
↓ 2 callersFunctiondecodeMemberKey
(data []byte)
txnSet.go:159
↓ 2 callersMethodeltKey
eltKey generates a string key for an element with an index.
public/utils/consistent/consistent.go:54
↓ 2 callersFunctionencodeFieldKey
(key, field []byte)
txnHash.go:245
↓ 2 callersFunctionencodeListMeta
(headSeq, tailSeq *big.Float)
txnList.go:270
↓ 2 callersMethodfinishRequest
(reply reply.Reply)
server/resp/client/client.go:174
↓ 2 callersMethodgetListMeta
(key []byte)
txnList.go:69
↓ 2 callersMethodgetLogRecordByPos
func (db DB) loadTxFile() error { fileName := filepath.Join(db.options.DirPath, public.TxIDFileName) if _, err := os.Stat(fileName); os.IsNotExist(e
db.go:676
↓ 2 callersMethodgetMergePath
create a new directory
merge.go:174
↓ 2 callersMethodgetNonMergeFileId
(dirPath string)
merge.go:240
↓ 2 callersMethodhandleRead
()
server/resp/client/client.go:191
↓ 2 callersFunctionnewTxn
(readOnly bool, db *DB, isolationLevel IsolationLevel)
txn.go:185
↓ 2 callersMethodpop
(key []byte, isLeft bool)
txnList.go:162
↓ 2 callersMethodpush
(key []byte, values [][]byte, isLeft bool)
txnList.go:92
↓ 2 callersMethodput
(key, value []byte, duration time.Duration)
db.go:125
↓ 2 callersMethodreadNBytes
(n int64, offset int64)
data/dataFile.go:147
↓ 2 callersMethodremove
need c.Lock() before calling
public/utils/consistent/consistent.go:84
↓ 2 callersMethodsetHashIndex
(key string, memTable meta.MemTable)
index.go:33
↓ 2 callersMethodsetListDataIndex
(key string, memTable meta.MemTable)
index.go:48
↓ 2 callersMethodstart
()
ttl.go:50
↓ 2 callersMethodstop
()
ttl.go:62
↓ 2 callersMethodunlock
()
txn.go:630
↓ 2 callersMethodupdateSortedHashes
()
public/utils/consistent/consistent.go:251
↓ 2 callersFunctionvalidateArity
(arity int, cmdArgs [][]byte)
server/database/mutildb.go:119
↓ 2 callersMethodwatch
(ctx context.Context, key string)
watch.go:50
↓ 1 callersMethodClose
()
db.go:295
↓ 1 callersMethodClose
()
server/conn.go:44
↓ 1 callersFunctionCompilePattern
CompilePattern convert wildcard string to Pattern
public/utils/wildcard/wildcard.go:52
↓ 1 callersFunctionDecodeLogRecordHeader
(buf []byte)
data/logRecord.go:86
↓ 1 callersFunctionDecodeLogRecordPos
(buf []byte)
data/logRecord.go:125
↓ 1 callersMethodDecrBy
(key []byte, delta int)
txn.go:518
↓ 1 callersFunctionEncodeLogRecordPos
EncodeLogRecordPos encode the pos info
data/logRecord.go:117
↓ 1 callersFunctionExecute
()
cmd/root/root.go:14
↓ 1 callersMethodExist
(key []byte)
txn.go:562
↓ 1 callersMethodFlush
Flush clean database
server/database/mutildb.go:179
↓ 1 callersMethodGet
(key []byte)
db.go:164
↓ 1 callersMethodGet
(key string)
public/ds/timeHeap.go:36
↓ 1 callersMethodGetClientConn
()
server/sliceRouter.go:40
↓ 1 callersMethodGetConn
()
server/sliceRouter.go:36
↓ 1 callersFunctionGetDataFileName
OpenTxIDFile Open new datafile func OpenTxIDFile(dirPath string) (*DataFile, error) { fileName := filepath.Join(dirPath, public.TxIDFileName) return
data/dataFile.go:43
↓ 1 callersFunctionGetLogRecordCRC
(lr *LogRecord, header []byte)
data/logRecord.go:136
↓ 1 callersMethodGetSelectedDB
()
server/conn.go:72
↓ 1 callersMethodGetSet
(key, value []byte)
txn.go:486
↓ 1 callersMethodGetTxId
()
db.go:712
↓ 1 callersMethodHMGet
(key []byte, fields [][]byte)
txnHash.go:143
↓ 1 callersMethodHMSet
(key []byte, args [][]byte)
txnHash.go:161
↓ 1 callersMethodHStrLen
(key, field []byte)
txnHash.go:229
↓ 1 callersMethodHashKey
(key string)
public/utils/consistent/consistent.go:224
← previousnext →101–200 of 564, ranked by callers