Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ankur-anand/unisondb
/ functions
Functions
3,181 in github.com/ankur-anand/unisondb
⨍
Functions
3,181
◇
Types & classes
414
↓ 3 callers
Method
handleFlush
handleFlush flushes the sealed mem-table to btree store.
dbkernel/engine.go:835
↓ 3 callers
Method
handleRecord
(record *logrecord.LogRecord, offset *Offset)
dbkernel/replica.go:283
↓ 3 callers
Method
incrRef
()
pkg/walfs/segment.go:1154
↓ 3 callers
Method
initStorage
(dataDir, namespace string, conf *EngineConfig)
dbkernel/engine.go:290
↓ 3 callers
Function
isBenignBlobStoreStreamerError
(err error)
cmd/unisondb/cliapp/service_blob_store_streamer.go:310
↓ 3 callers
Method
monitor
(ctx context.Context)
internal/services/relayer/relayer.go:319
↓ 3 callers
Method
namespaceState
(ctx context.Context, namespace string)
internal/services/streamer/blob_store_steamer.go:296
↓ 3 callers
Function
newClusterBuilder
(nodeID, namespace, dataDir string, nodes []nodeConfig)
pkg/raftcluster/builder_test.go:39
↓ 3 callers
Function
newTestSlogLogger
(buf *bytes.Buffer)
pkg/raftcluster/hc_slog_test.go:16
↓ 3 callers
Function
nextReconcileInterval
(rng *rand.Rand)
pkg/raftcluster/membership.go:385
↓ 3 callers
Method
notifyClusters
notifyClusters sends membership events to all registered cluster listeners.
pkg/raftcluster/membership.go:158
↓ 3 callers
Function
openLMDBTemp
(t *testing.T)
pkg/kvdrivers/lmdb_test.go:51
↓ 3 callers
Method
openLog
(namespace string)
internal/services/streamer/blob_store_steamer.go:487
↓ 3 callers
Function
parseLogLevel
(levelStr string)
cmd/unisondb/cliapp/helpers.go:45
↓ 3 callers
Function
prepareFlatBufferRowUpdateEntry
(builder *flatbuffers.Builder)
internal/benchtests/serialization/bench_test.go:17
↓ 3 callers
Function
randKey
(length int)
internal/services/fuzzer/fuzz_engine.go:48
↓ 3 callers
Method
recordOpResult
(op string, start time.Time, err error)
pkg/kvdrivers/lmdb.go:376
↓ 3 callers
Function
recordOverhead
(dataLen int64)
pkg/walfs/walog.go:574
↓ 3 callers
Method
recordRaftApplied
(log *raft.Log)
dbkernel/engine_raft.go:158
↓ 3 callers
Method
releaseRef
releaseRef decrements the reference count and performs any deferred cleanup.
pkg/walfs/segment.go:1165
↓ 3 callers
Method
replicateFromReader
replicateFromReader reads the underlying wal until an err is encountered.
pkg/replicator/replicator.go:115
↓ 3 callers
Function
requireSegmentFirstIndex
(t *testing.T, walog *walfs.WALog, expected uint64)
dbkernel/replica_test.go:703
↓ 3 callers
Method
rotateSegment
()
pkg/walfs/walog.go:727
↓ 3 callers
Function
safeTestPath
(s string)
internal/services/streamer/blob_store_provider_integration_test.go:212
↓ 3 callers
Function
serializeLogRecord
Prepare main LogRecord with encoded rows
internal/benchtests/serialization/bench_test.go:196
↓ 3 callers
Function
serializeLogRecord
SerializeLogRecord encodes a LogRecord to binary format using FlatBuffers.
internal/logcodec/codec.go:9
↓ 3 callers
Function
serializeProtoLogRecord
Serialize LogRecord embedding pre-encoded RowUpdateEntries.
internal/benchtests/serialization/bench_test.go:306
↓ 3 callers
Function
serializeProtoWithLargeValue
--- Protobuf serialization ---
internal/benchtests/serialization/bench_test.go:439
↓ 3 callers
Function
setupMemTableWithBoltDB
(t *testing.T, capacity int64)
dbkernel/internal/memtable/memtable_test.go:61
↓ 3 callers
Function
setupSingleNodeRaftWithEngineWAL
(t *testing.T, engine *Engine)
dbkernel/engine_raft_test.go:104
↓ 3 callers
Function
setupTestServerWithConfig
(t *testing.T, modify func(cfg *dbkernel.EngineConfig))
internal/services/httpapi/service_test.go:37
↓ 3 callers
Function
setupTestServerWithOptions
(t *testing.T, modifyCfg func(cfg *dbkernel.EngineConfig), modifyService func(s *Service))
internal/services/httpapi/service_test.go:41
↓ 3 callers
Method
shard
shard returns the appropriate shard for the given ID.
pkg/walfs/util.go:41
↓ 3 callers
Function
simulateWALIO
simulateWALIO simulates I/O operations returning some bytes
internal/benchtests/broadcast/bench/ctxtimeout/main_test.go:46
↓ 3 callers
Method
startTerm
(ctx context.Context, namespace string)
cmd/unisondb/cliapp/service_blob_store_streamer.go:224
↓ 3 callers
Function
testPeerCommunication
(t *testing.T, dialer, acceptor *NamespaceStreamLayer, targetAddr string)
pkg/raftmux/integration_test.go:68
↓ 3 callers
Function
wrapRaftError
(err error)
dbkernel/raft_txn.go:265
↓ 2 callers
Method
AppendColumnTxn
(rowKey []byte, columnEntries map[string][]byte)
dbkernel/txn.go:59
↓ 2 callers
Method
AppliedTerm
AppliedTerm returns the last applied Raft log term.
dbkernel/engine_raft.go:396
↓ 2 callers
Method
BatchSetKV
(keys [][]byte, values [][]byte)
dbkernel/internal/common.go:28
↓ 2 callers
Method
BatchSetKV
(keys [][]byte, value [][]byte)
pkg/kvdrivers/suite_test.go:21
↓ 2 callers
Function
BuildDefaultRelayerServiceConfigJSON
BuildDefaultRelayerServiceConfigJSON build Config JSON for grpc client for the WalStreaming Service.
pkg/svcutils/relayer_conf.go:9
↓ 2 callers
Method
BuildDeps
()
cmd/unisondb/cliapp/service.go:97
↓ 2 callers
Method
Close
Close gracefully shuts down the segment by waiting for all active readers to complete. It unmap the segment file and closes file descriptor.
pkg/walfs/segment.go:1065
↓ 2 callers
Method
Close
Close first leave the Membership gracefully and then call shutdown.
pkg/raftcluster/membership.go:109
↓ 2 callers
Method
Close
(ctx context.Context)
cmd/unisondb/cliapp/service_raft.go:503
↓ 2 callers
Method
Close
(ctx context.Context)
cmd/unisondb/cliapp/service_blob_store_streamer.go:120
↓ 2 callers
Method
Close
(ctx context.Context)
cmd/unisondb/cliapp/service_pprof.go:85
↓ 2 callers
Method
Close
(ctx context.Context)
cmd/unisondb/cliapp/service_grpc.go:172
↓ 2 callers
Function
ColumnDataAddName
(builder *flatbuffers.Builder, name flatbuffers.UOffsetT)
internal/benchtests/serialization/logrecord/ColumnData.go:89
↓ 2 callers
Function
ColumnDataAddValue
(builder *flatbuffers.Builder, value flatbuffers.UOffsetT)
internal/benchtests/serialization/logrecord/ColumnData.go:92
↓ 2 callers
Function
ColumnDataEnd
(builder *flatbuffers.Builder)
internal/benchtests/serialization/logrecord/ColumnData.go:98
↓ 2 callers
Function
ColumnDataStart
(builder *flatbuffers.Builder)
internal/benchtests/serialization/logrecord/ColumnData.go:86
↓ 2 callers
Method
Crc32Checksum
()
schemas/logrecord/LogRecord.go:68
↓ 2 callers
Method
CurrentSegmentInfo
CurrentSegmentInfo returns the last LSN and offset from the current segment's metadata.
dbkernel/internal/wal/wal.go:471
↓ 2 callers
Method
DeleteKV
(key []byte)
pkg/kvdrivers/api.go:18
↓ 2 callers
Function
DetermineChunkType
(start, end, totalSize int)
pkg/splitter/chunk.go:50
↓ 2 callers
Method
Enabled
(_ context.Context, level slog.Level)
pkg/logutil/percentage_logger.go:25
↓ 2 callers
Method
Enabled
()
cmd/unisondb/cliapp/service_pprof.go:100
↓ 2 callers
Method
Enabled
()
cmd/unisondb/cliapp/service_fuzzer.go:113
↓ 2 callers
Method
Enabled
()
cmd/unisondb/cliapp/service_grpc.go:188
↓ 2 callers
Method
Entries
(obj *RowUpdateEncoded, j int)
internal/benchtests/serialization/logrecord/RowUpdateEntries.go:44
↓ 2 callers
Method
EntriesLength
()
internal/benchtests/serialization/logrecord/RowUpdateEntries.go:56
↓ 2 callers
Function
EventEntryAddEventId
(builder *flatbuffers.Builder, eventId flatbuffers.UOffsetT)
schemas/logrecord/EventEntry.go:129
↓ 2 callers
Function
EventEntryAddEventType
(builder *flatbuffers.Builder, eventType flatbuffers.UOffsetT)
schemas/logrecord/EventEntry.go:132
↓ 2 callers
Function
EventEntryAddOccurredAt
(builder *flatbuffers.Builder, occurredAt uint64)
schemas/logrecord/EventEntry.go:135
↓ 2 callers
Function
EventEntryEnd
(builder *flatbuffers.Builder)
schemas/logrecord/EventEntry.go:150
↓ 2 callers
Function
EventEntryStart
(builder *flatbuffers.Builder)
schemas/logrecord/EventEntry.go:126
↓ 2 callers
Method
FetchValue
FetchValue fetches the current value for a key from the specified namespace. It then processes the update through the state manager.
cmd/examples/crdt-multi-dc/golang-crdt-client/client/http_client.go:39
↓ 2 callers
Method
FlushedTerm
FlushedTerm returns the last Raft log term flushed to B-tree.
dbkernel/engine_raft.go:406
↓ 2 callers
Method
Gen
()
internal/benchtests/cmd/genclient/gen/gen.go:56
↓ 2 callers
Method
GetCluster
(namespace string)
cmd/unisondb/cliapp/service_raft.go:583
↓ 2 callers
Method
GetLastOffset
()
dbkernel/internal/memtable/memtable.go:137
↓ 2 callers
Function
GetRootAsLogRecord
(buf []byte, offset flatbuffers.UOffsetT)
internal/benchtests/serialization/logrecord/LogRecord.go:13
↓ 2 callers
Function
GetRootAsRowUpdateEntry
(buf []byte, offset flatbuffers.UOffsetT)
internal/benchtests/serialization/logrecord/RowUpdateEntry.go:13
↓ 2 callers
Method
GetState
GetState returns the current state of the counter.
cmd/examples/crdt-multi-dc/golang-crdt-client/crdt/g_counter.go:51
↓ 2 callers
Method
GetWalCheckPoint
GetWalCheckPoint returns the last checkpoint metadata saved in the database.
dbkernel/engine_public.go:228
↓ 2 callers
Function
GetWalRecord
GetWalRecord returns the underlying wal record.
dbkernel/internal/utils.go:39
↓ 2 callers
Method
Handle
(ctx context.Context, r slog.Record)
pkg/logutil/percentage_logger.go:37
↓ 2 callers
Method
HandleConn
(ctx context.Context, connStats stats.ConnStats)
internal/grpcutils/stats_handler.go:222
↓ 2 callers
Method
ID
ID returns the codec identifier.
pkg/raftwalfs/codec.go:43
↓ 2 callers
Method
IncrOffset
()
dbkernel/internal/memtable/memtable.go:129
↓ 2 callers
Method
Init
(buf []byte, i flatbuffers.UOffsetT)
internal/benchtests/serialization/logrecord/KeyValueEncoded.go:35
↓ 2 callers
Method
Init
(buf []byte, i flatbuffers.UOffsetT)
internal/benchtests/serialization/logrecord/KeyValueEntry.go:35
↓ 2 callers
Method
Init
(buf []byte, i flatbuffers.UOffsetT)
internal/benchtests/serialization/logrecord/RowUpdateEncoded.go:35
↓ 2 callers
Method
Init
(buf []byte, i flatbuffers.UOffsetT)
internal/benchtests/serialization/logrecord/LogRecord.go:35
↓ 2 callers
Method
Init
(buf []byte, i flatbuffers.UOffsetT)
internal/benchtests/serialization/logrecord/ColumnData.go:35
↓ 2 callers
Method
Init
(buf []byte, i flatbuffers.UOffsetT)
schemas/logrecord/KeyValueEntry.go:35
↓ 2 callers
Method
Init
(buf []byte, i flatbuffers.UOffsetT)
schemas/logrecord/ColumnData.go:35
↓ 2 callers
Method
Init
(buf []byte, i flatbuffers.UOffsetT)
schemas/logrecord/EncodedEntry.go:35
↓ 2 callers
Method
InitializePartition
(ctx context.Context, partition uint32, nextLSN uint64)
internal/services/streamer/blob_store_steamer_internal_test.go:277
↓ 2 callers
Function
IsActive
(flags uint32)
pkg/walfs/segment.go:598
↓ 2 callers
Method
IsClosed
()
pkg/raftmux/stream_layer.go:93
↓ 2 callers
Method
Key
(j int)
schemas/logrecord/KeyValueEntry.go:44
↓ 2 callers
Function
KeyColumn
KeyColumn returns the storage key for a wide-column cell.
internal/keycodec/keycodec.go:98
↓ 2 callers
Function
KeyValueEntryAddKey
(builder *flatbuffers.Builder, key flatbuffers.UOffsetT)
schemas/logrecord/KeyValueEntry.go:115
↓ 2 callers
Function
KeyValueEntryAddValue
(builder *flatbuffers.Builder, value flatbuffers.UOffsetT)
schemas/logrecord/KeyValueEntry.go:121
↓ 2 callers
Function
KeyValueEntryEnd
(builder *flatbuffers.Builder)
schemas/logrecord/KeyValueEntry.go:127
↓ 2 callers
Function
KeyValueEntryStart
(builder *flatbuffers.Builder)
schemas/logrecord/KeyValueEntry.go:112
↓ 2 callers
Method
LastRecordPosition
LastRecordPosition returns the RecordPosition of the last successfully read entry.
pkg/walfs/walog.go:1395
← previous
next →
601–700 of 3,181, ranked by callers