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
↓ 11 callers
Function
NewStatefulInterceptor
NewStatefulInterceptor returns an initialized Interceptor.
internal/grpcutils/stateful_interceptor.go:39
↓ 11 callers
Method
PrevTxnWalIndexBytes
()
schemas/logrecord/LogRecord.go:167
↓ 11 callers
Method
RetrieveMetadata
(key []byte)
dbkernel/internal/common.go:54
↓ 11 callers
Method
SetBatch
SetBatch stores multiple index→position mappings.
pkg/walfs/sharded_index.go:146
↓ 11 callers
Method
SetupStorageConfig
(ctx context.Context)
cmd/unisondb/cliapp/server.go:187
↓ 11 callers
Method
Value
(j int)
internal/benchtests/serialization/logrecord/ColumnData.go:52
↓ 10 callers
Method
AppendColumnTxn
AppendColumnTxn appends the Columns update type Txn to wal for the provided rowKey. Update/DeleteKV Ops for column is decided by the Log Operation typ
dbkernel/txn.go:211
↓ 10 callers
Method
Context
()
internal/services/streamer/grpc_streamer_test.go:671
↓ 10 callers
Method
DeleteRange
DeleteRange deletes logs in [min, max] inclusive. Supports two scenarios required by Raft: 1. PREFIX deletion: Log compaction after snapshot (min=fir
pkg/raftwalfs/log_store.go:262
↓ 10 callers
Method
FlushedIndex
FlushedIndex returns the last Raft log index flushed to B-tree.
dbkernel/engine_raft.go:401
↓ 10 callers
Method
GetBounds
GetBounds returns the first and last available log indices. Returns (0, 0) when no indexed entries exist.
pkg/walfs/walog.go:641
↓ 10 callers
Method
GetLOBChunks
(key []byte)
pkg/kvdrivers/suite_test.go:49
↓ 10 callers
Method
LeaderWithID
LeaderWithID returns the address and ID of the current leader.
pkg/raftcluster/cluster.go:95
↓ 10 callers
Function
NewGrpcStreamer
NewGrpcStreamer returns an initialized GrpcStreamer that implements grpc-based WalStreamerService.
internal/services/streamer/grpc_streamer.go:49
↓ 10 callers
Function
NewOutboundConn
NewOutboundConn creates a new OutboundConn that will write the namespace header on the first Write() call.
pkg/raftmux/conn.go:20
↓ 10 callers
Function
NewReplicator
NewReplicator returns an initialized Replicator that uses LSN-based replication.
pkg/replicator/replicator.go:48
↓ 10 callers
Method
QueuedSegmentsForDeletion
()
pkg/walfs/walog.go:1192
↓ 10 callers
Method
RegisterCluster
RegisterCluster adds a ClusterDiscover listener that will receive membership events. This allows multiple Raft clusters (one per namespace) to react t
pkg/raftcluster/membership.go:119
↓ 10 callers
Function
RegisterWalStreamerServiceServer
(s grpc.ServiceRegistrar, srv WalStreamerServiceServer)
schemas/proto/gen/go/unisondb/streamer/v1/streamer_grpc.pb.go:107
↓ 10 callers
Function
Restore
Restore performs a full restore operation based on the provided options. It holds an exclusive lock during the entire operation to prevent the server
internal/udbctl/restore/restore.go:178
↓ 10 callers
Method
ScanRowCells
(rowKey []byte, filter func(columnKey []byte) bool)
dbkernel/internal/common.go:49
↓ 10 callers
Function
WithClearIndexOnFlush
WithClearIndexOnFlush enables clearing segment's in-memory index after it's flushed to disk. This is useful when an external index is maintained.
pkg/walfs/walog.go:133
↓ 10 callers
Function
bufDialer
(lis *bufconn.Listener)
internal/services/streamer/grpc_streamer_test.go:75
↓ 10 callers
Function
newMockConn
()
pkg/raftmux/conn_test.go:22
↓ 10 callers
Method
setFsyncCallback
(fn func())
dbkernel/engine.go:1048
↓ 9 callers
Function
AutoScope
AutoScope returns a tally.Scope scoped by the caller's package name.
pkg/umetrics/auto_scope.go:52
↓ 9 callers
Method
BatchAppend
BatchAppend writes multiple records to the active WAL segment in a single batch operation. This is more efficient than calling Append multiple times a
dbkernel/internal/wal/wal.go:246
↓ 9 callers
Method
Commit
()
dbkernel/txn.go:60
↓ 9 callers
Method
DeleteRange
DeleteRange deletes a range of log entries, but limits the max to the safe-to-GC index to preserve logs needed for pending segment processing.
dbkernel/safe_gc_log_store.go:85
↓ 9 callers
Function
DeserializeRowUpdateEntry
DeserializeRowUpdateEntry decodes a FlatBuffer-encoded RowUpdateEntry.
internal/logcodec/row_codec.go:42
↓ 9 callers
Method
Encode
Encode serializes a raft.Log into a pre-sized buffer.
pkg/raftwalfs/codec.go:48
↓ 9 callers
Method
GetLatestLSN
GetLatestLSN reads the latest committed LSN from partitionlog catalog head.
internal/services/streamer/blob_store_streamer_client.go:64
↓ 9 callers
Method
IsCurrentEntry
IsCurrentEntry checks if the given position is the current one for an index. Returns true if the index exists and the position matches exactly.
pkg/walfs/sharded_index.go:197
↓ 9 callers
Method
IsLeader
()
pkg/raftcluster/cluster.go:90
↓ 9 callers
Method
IsLeader
(namespace string)
cmd/unisondb/cliapp/service_raft.go:598
↓ 9 callers
Method
LocalAddr
()
pkg/raftmux/conn.go:53
↓ 9 callers
Method
MarkSegmentsForDeletion
MarkSegmentsForDeletion identifies and queues WAL segments for deletion based on their age and segment count retention constraints.
pkg/walfs/walog.go:1120
↓ 9 callers
Function
NewGrpcStreamerClient
(gcc *grpc.ClientConn, namespace string, wIO WalIO, startLSN uint64)
internal/services/streamer/grpc_streamer_client.go:42
↓ 9 callers
Method
NewReaderWithStart
NewReaderWithStart returns a new Reader that begins reading from the specified position. If SegmentID is 0, the reader will begin from the very start
pkg/walfs/walog.go:1414
↓ 9 callers
Function
NewSafeGCLogStore
NewSafeGCLogStore creates a new SafeGCLogStore wrapping the given LogStore. The provider supplies the safe-to-GC index (typically FlushedIndexHolder o
dbkernel/safe_gc_log_store.go:51
↓ 9 callers
Function
ParseKeyKind
ParseKeyKind returns the KeyKind associated with the key.
pkg/kvdrivers/util.go:29
↓ 9 callers
Function
ReadHeader
ReadHeader reads the namespace header from r. Returns the namespace string or an error.
pkg/raftmux/protocol.go:39
↓ 9 callers
Method
ReconcileMembers
([]MemberInformation)
pkg/raftcluster/api.go:9
↓ 9 callers
Method
Restore
(r io.Reader)
dbkernel/internal/common.go:41
↓ 9 callers
Method
Set
Set stores the safe-to-GC index.
dbkernel/safe_gc_log_store.go:34
↓ 9 callers
Method
SetKV
(key []byte, value []byte)
pkg/kvdrivers/suite_test.go:20
↓ 9 callers
Method
StreamNamespace
StreamNamespace starts replicating WAL records for the given namespace into object storage. It blocks until the context is cancelled or the streamer i
internal/services/streamer/blob_store_steamer.go:128
↓ 9 callers
Method
StreamWalRecords
(ctx context.Context, in *StreamWalRecordsRequest, opts ...grpc.CallOption)
schemas/proto/gen/go/unisondb/streamer/v1/streamer_grpc.pb.go:32
↓ 9 callers
Function
UnmarshalMetadata
Format: [RecordProcessed:8][Pos:12][RaftIndex:8][RaftTerm:8] = 36 bytes.
dbkernel/internal/metadata.go:80
↓ 9 callers
Function
WithAutoCleanupPolicy
WithAutoCleanupPolicy configures the automatic segment cleanup policy for the WAL. maxAge: Segments older than this duration are eligible for deletion
pkg/walfs/walog.go:104
↓ 9 callers
Function
decodeBase64
(t *testing.T, data string)
internal/services/httpapi/service_test.go:105
↓ 9 callers
Function
file_kv_proto_rawDescGZIP
()
internal/benchtests/serialization/kv.pb.go:643
↓ 9 callers
Function
formatCountSI
(value float64, decimals int)
bench/client/main.go:342
↓ 9 callers
Function
humanizeDuration
(d time.Duration)
bench/client/main.go:357
↓ 9 callers
Function
setupMemTableWithLMDB
(t *testing.T, capacity int64)
dbkernel/internal/memtable/memtable_test.go:28
↓ 9 callers
Function
setupReadOnlyTestServer
(t *testing.T)
internal/services/httpapi/service_test.go:1381
↓ 9 callers
Function
toBytes
(s string)
pkg/kvdrivers/util_test.go:13
↓ 9 callers
Function
toBytes
(s string)
internal/keycodec/keycodec_test.go:12
↓ 9 callers
Function
writeJSON
(w http.ResponseWriter, statusCode int, payload interface{})
cmd/unisondb/cliapp/service_http.go:284
↓ 9 callers
Method
writeNilOffset
()
dbkernel/engine.go:709
↓ 8 callers
Method
Abort
()
dbkernel/raft_txn.go:228
↓ 8 callers
Method
AppendKVTxn
(key []byte, value []byte)
dbkernel/txn.go:58
↓ 8 callers
Method
BatchDeleteCells
(rowKeys [][]byte, columnEntriesPerRow []map[string][]byte)
pkg/kvdrivers/suite_test.go:39
↓ 8 callers
Method
Checksum
()
dbkernel/txn.go:365
↓ 8 callers
Method
Commit
Commit advances the committed position to the given position. When readerCommitCheck is enabled, readers cannot advance beyond this position. In Raft
pkg/walfs/walog.go:391
↓ 8 callers
Function
DefaultBlobStoreStreamerConfig
DefaultBlobStoreStreamerConfig returns defaults for partitionlog-backed blob streaming.
internal/services/streamer/blob_store_steamer.go:76
↓ 8 callers
Method
Enqueue
Enqueue adds an inbound connection to the accept queue. Returns false if the stream layer is closed or the queue is full.
pkg/raftmux/stream_layer.go:77
↓ 8 callers
Method
GetKV
(key []byte)
pkg/kvdrivers/api.go:21
↓ 8 callers
Method
GetLOBChunks
(key []byte)
dbkernel/internal/common.go:47
↓ 8 callers
Method
GetSegmentSize
()
pkg/walfs/segment.go:1150
↓ 8 callers
Method
HasActiveReaders
HasActiveReaders returns true if there are any currently active readers on the segment.
pkg/walfs/segment.go:1100
↓ 8 callers
Method
Intn
(n int)
pkg/walfs/segment_benchmark_test.go:24
↓ 8 callers
Method
LastRecoveredOffset
()
dbkernel/internal/recovery/wal_recovery.go:35
↓ 8 callers
Function
NewFuzzStats
()
internal/services/fuzzer/stats.go:43
↓ 8 callers
Function
NewRateLimitedWalIO
NewRateLimitedWalIO constructs a RateLimitedWalIO.
internal/services/relayer/relayer.go:110
↓ 8 callers
Method
NewTransaction
NewTransaction returns a transaction implementation based on the current engine mode. In Raft mode, it returns a Raft-backed transaction; otherwise it
dbkernel/txn.go:67
↓ 8 callers
Function
ParseKeyKind
ParseKeyKind returns the KeyKind associated with the key.
internal/keycodec/keycodec.go:28
↓ 8 callers
Method
Range
Range iterates over all entries and calls fn for each. If fn returns false, iteration stops.
pkg/walfs/sharded_index.go:239
↓ 8 callers
Method
Replicate
Replicate reads wal record from the underlying engine, and sends the WalRecords when batchSize/maxBatchDuration is reached.
pkg/replicator/replicator.go:64
↓ 8 callers
Function
RestoreWAL
(backupDir, dataDir, namespace string)
internal/udbctl/restore/restore.go:73
↓ 8 callers
Method
SetWALCommitCallback
SetWALCommitCallback sets the callback that is invoked when a committed Raft entry is applied. The callback receives the WAL position of the committed
dbkernel/engine_raft.go:70
↓ 8 callers
Method
Stats
()
plugin/notifier/zeromq/zeromq.go:187
↓ 8 callers
Method
StoreLog
(log *raft.Log)
dbkernel/safe_gc_log_store_test.go:43
↓ 8 callers
Function
WithBytesPerSync
WithBytesPerSync sets the threshold in bytes after which a msync is triggered. Useful for batching writes. 0 disable this feature.
pkg/walfs/walog.go:76
↓ 8 callers
Function
benchLog
(idx, term uint64, payload []byte)
pkg/raftwalfs/log_store_benchmark_test.go:18
↓ 8 callers
Method
doJSON
(method, path string, reqBody any, respBody any)
internal/services/fuzzer/http_engine.go:143
↓ 8 callers
Method
flushBatch
()
pkg/kvdrivers/bolt_txn_queue.go:321
↓ 8 callers
Method
flushBatch
()
pkg/kvdrivers/lmdb_txn_queue.go:342
↓ 8 callers
Method
getTransaction
(txnID string)
internal/services/httpapi/service.go:120
↓ 8 callers
Function
makeRaftLog
(index uint64, record logcodec.LogRecord)
dbkernel/engine_raft_test.go:252
↓ 8 callers
Function
membersFromConfig
(cfg *raft.Configuration, namespace string)
pkg/raftcluster/cluster_test.go:166
↓ 8 callers
Function
newMockLogStore
()
dbkernel/safe_gc_log_store_test.go:21
↓ 8 callers
Method
persistKeyValue
persistKeyValue writes a key-value pair to WAL and MemTable, ensuring durability. multistep process to persist the key-value pair: 1. Encodes the reco
dbkernel/engine.go:503
↓ 8 callers
Function
requireKVValue
(t *testing.T, engine *Engine, key, expected []byte)
dbkernel/raft_txn_test.go:85
↓ 8 callers
Function
setupWalTest
(t *testing.T)
dbkernel/internal/wal/wal_test.go:21
↓ 8 callers
Function
simulateWALIO
()
internal/benchtests/broadcast/main.go:21
↓ 8 callers
Method
snapshotSegments
()
pkg/walfs/walog.go:357
↓ 8 callers
Function
writeJSONError
(w http.ResponseWriter, statusCode int, message string)
cmd/unisondb/cliapp/service_http.go:295
↓ 7 callers
Method
Addr
()
cmd/unisondb/cliapp/service_http.go:118
↓ 7 callers
Method
BackupSegmentsAfter
BackupSegmentsAfter copies every sealed segment with ID > afterID into backupDir. Returns a map of SegmentID to the backup file path.
pkg/walfs/walog.go:977
← previous
next →
201–300 of 3,181, ranked by callers