_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c175200 | test | // Value returns value. | {
"resource": ""
} | ||
c175201 | test | // Next advances to the next position. | {
"resource": ""
} | ||
c175202 | test | // Prev advances to the previous position. | {
"resource": ""
} | ||
c175203 | test | // Seek advances to the first entry with a key >= target. | {
"resource": ""
} | ||
c175204 | test | // SeekForPrev finds an entry with key <= target. | {
"resource": ""
} | ||
c175205 | test | // NewUniIterator returns a UniIterator. | {
"resource": ""
} | ||
c175206 | test | // Next implements y.Interface | {
"resource": ""
} | ||
c175207 | test | // Seek implements y.Interface | {
"resource": ""
} | ||
c175208 | test | // asChanges returns a sequence of changes that could be used to recreate the Manifest in its
// present state. | {
"resource": ""
} | ||
c175209 | test | // Must be called while appendLock is held. | {
"resource": ""
} | ||
c175210 | test | // Check does some sanity check on one level of data or in-memory index. | {
"resource": ""
} | ||
c175211 | test | // AcquireDirectoryLock acquires exclusive access to a directory. | {
"resource": ""
} | ||
c175212 | test | // Release removes the directory lock. | {
"resource": ""
} | ||
c175213 | test | // AssertTruef is AssertTrue with extra info. | {
"resource": ""
} | ||
c175214 | test | // Wrapf is Wrap with extra info. | {
"resource": ""
} | ||
c175215 | test | // initTables replaces s.tables with given tables. This is done during loading. | {
"resource": ""
} | ||
c175216 | test | // deleteTables remove tables idx0, ..., idx1-1. | {
"resource": ""
} | ||
c175217 | test | // tryAddLevel0Table returns true if ok and no stalling. | {
"resource": ""
} | ||
c175218 | test | // getTableForKey acquires a read-lock to access s.tables. It returns a list of tableHandlers. | {
"resource": ""
} | ||
c175219 | test | // get returns value for a given key or the key after that. If not found, return nil. | {
"resource": ""
} | ||
c175220 | test | // overlappingTables returns the tables that intersect with key range. Returns a half-interval.
// This function should already have acquired a read lock, and this is so important the caller must
// pass an empty parameter declaring such. | {
"resource": ""
} | ||
c175221 | test | // String returns a string representation of Item | {
"resource": ""
} | ||
c175222 | test | // KeyCopy returns a copy of the key of the item, writing it to dst slice.
// If nil is passed, or capacity of dst isn't sufficient, a new slice would be allocated and
// returned. | {
"resource": ""
} | ||
c175223 | test | // ValueSize returns the exact size of the value.
//
// This can be called to quickly estimate the size of a value without fetching
// it. | {
"resource": ""
} | ||
c175224 | test | // NewKeyIterator is just like NewIterator, but allows the user to iterate over all versions of a
// single key. Internally, it sets the Prefix option in provided opt, and uses that prefix to
// additionally run bloom filter lookups before picking tables from the LSM tree. | {
"resource": ""
} | ||
c175225 | test | // Valid returns false when iteration is done. | {
"resource": ""
} | ||
c175226 | test | // ValidForPrefix returns false when iteration is done
// or when the current key is not prefixed by the specified prefix. | {
"resource": ""
} | ||
c175227 | test | // Close would close the iterator. It is important to call this when you're done with iteration. | {
"resource": ""
} | ||
c175228 | test | // parseItem is a complex function because it needs to handle both forward and reverse iteration
// implementation. We store keys such that their versions are sorted in descending order. This makes
// forward iteration efficient, but revese iteration complicated. This tradeoff is better because
// forward iteration is ... | {
"resource": ""
} | ||
c175229 | test | // Seek would seek to the provided key if present. If absent, it would seek to the next smallest key
// greater than the provided key if iterating in the forward direction. Behavior would be reversed if
// iterating backwards. | {
"resource": ""
} | ||
c175230 | test | // GetMergeOperator creates a new MergeOperator for a given key and returns a
// pointer to it. It also fires off a goroutine that performs a compaction using
// the merge function that runs periodically, as specified by dur. | {
"resource": ""
} | ||
c175231 | test | // Get returns the latest value for the merge operator, which is derived by
// applying the merge function to all the values added so far.
//
// If Add has not been called even once, Get will return ErrKeyNotFound. | {
"resource": ""
} | ||
c175232 | test | // compareAndAdd will check whether we can run this compactDef. That it doesn't overlap with any
// other running compaction. If it can be run, it would store this run in the compactStatus state. | {
"resource": ""
} | ||
c175233 | test | // newArena returns a new arena. | {
"resource": ""
} | ||
c175234 | test | // putNode allocates a node in the arena. The node is aligned on a pointer-sized
// boundary. The arena offset of the node is returned. | {
"resource": ""
} | ||
c175235 | test | // getNode returns a pointer to the node located at offset. If the offset is
// zero, then the nil node pointer is returned. | {
"resource": ""
} | ||
c175236 | test | // getKey returns byte slice at offset. | {
"resource": ""
} | ||
c175237 | test | // getVal returns byte slice at offset. The given size should be just the value
// size and should NOT include the meta bytes. | {
"resource": ""
} | ||
c175238 | test | // getNodeOffset returns the offset of node in the arena. If the node pointer is
// nil, then the zero offset is returned. | {
"resource": ""
} | ||
c175239 | test | // These variables are global and have cumulative values for all kv stores. | {
"resource": ""
} | ||
c175240 | test | // revertToManifest checks that all necessary table files exist and removes all table files not
// referenced by the manifest. idMap is a set of table file id's that were read from the directory
// listing. | {
"resource": ""
} | ||
c175241 | test | // dropTree picks all tables from all levels, creates a manifest changeset,
// applies it, and then decrements the refs of these tables, which would result
// in their deletion. | {
"resource": ""
} | ||
c175242 | test | // dropPrefix runs a L0->L1 compaction, and then runs same level compaction on the rest of the
// levels. For L0->L1 compaction, it runs compactions normally, but skips over all the keys with the
// provided prefix. For Li->Li compactions, it picks up the tables which would have the prefix. The
// tables who only have ... | {
"resource": ""
} | ||
c175243 | test | // Returns true if level zero may be compacted, without accounting for compactions that already
// might be happening. | {
"resource": ""
} | ||
c175244 | test | // doCompact picks some table on level l and compacts it away to the next level. | {
"resource": ""
} | ||
c175245 | test | // get returns the found value if any. If not found, we return nil. | {
"resource": ""
} | ||
c175246 | test | // seekTotal retrives the total of all accounts by seeking for each account key. | {
"resource": ""
} | ||
c175247 | test | // Range is [lowTs, highTs). | {
"resource": ""
} | ||
c175248 | test | // Create replaces the stored snapshot with a new one using the given args | {
"resource": ""
} | ||
c175249 | test | // List returns the latest snapshot taken | {
"resource": ""
} | ||
c175250 | test | // Open wraps an io.ReadCloser around the snapshot contents | {
"resource": ""
} | ||
c175251 | test | // Write appends the given bytes to the snapshot contents | {
"resource": ""
} | ||
c175252 | test | // NewFileSnapshotStoreWithLogger creates a new FileSnapshotStore based
// on a base directory. The `retain` parameter controls how many
// snapshots are retained. Must be at least 1. | {
"resource": ""
} | ||
c175253 | test | // NewFileSnapshotStore creates a new FileSnapshotStore based
// on a base directory. The `retain` parameter controls how many
// snapshots are retained. Must be at least 1. | {
"resource": ""
} | ||
c175254 | test | // snapshotName generates a name for the snapshot. | {
"resource": ""
} | ||
c175255 | test | // Create is used to start a new snapshot | {
"resource": ""
} | ||
c175256 | test | // List returns available snapshots in the store. | {
"resource": ""
} | ||
c175257 | test | // getSnapshots returns all the known snapshots. | {
"resource": ""
} | ||
c175258 | test | // readMeta is used to read the meta data for a given named backup | {
"resource": ""
} | ||
c175259 | test | // Open takes a snapshot ID and returns a ReadCloser for that snapshot. | {
"resource": ""
} | ||
c175260 | test | // ReapSnapshots reaps any snapshots beyond the retain count. | {
"resource": ""
} | ||
c175261 | test | // Write is used to append to the state file. We write to the
// buffered IO object to reduce the amount of context switches. | {
"resource": ""
} | ||
c175262 | test | // Close is used to indicate a successful end. | {
"resource": ""
} | ||
c175263 | test | // Cancel is used to indicate an unsuccessful end. | {
"resource": ""
} | ||
c175264 | test | // finalize is used to close all of our resources. | {
"resource": ""
} | ||
c175265 | test | // writeMeta is used to write out the metadata we have. | {
"resource": ""
} | ||
c175266 | test | // NewNetworkTransportWithConfig creates a new network transport with the given config struct | {
"resource": ""
} | ||
c175267 | test | // setupStreamContext is used to create a new stream context. This should be
// called with the stream lock held. | {
"resource": ""
} | ||
c175268 | test | // getStreamContext is used retrieve the current stream context. | {
"resource": ""
} | ||
c175269 | test | // SetHeartbeatHandler is used to setup a heartbeat handler
// as a fast-pass. This is to avoid head-of-line blocking from
// disk IO. | {
"resource": ""
} | ||
c175270 | test | // CloseStreams closes the current streams. | {
"resource": ""
} | ||
c175271 | test | // Close is used to stop the network transport. | {
"resource": ""
} | ||
c175272 | test | // getExistingConn is used to grab a pooled connection. | {
"resource": ""
} | ||
c175273 | test | // getConnFromAddressProvider returns a connection from the server address provider if available, or defaults to a connection using the target server address | {
"resource": ""
} | ||
c175274 | test | // getConn is used to get a connection from the pool. | {
"resource": ""
} | ||
c175275 | test | // returnConn returns a connection back to the pool. | {
"resource": ""
} | ||
c175276 | test | // listen is used to handling incoming connections. | {
"resource": ""
} | ||
c175277 | test | // handleConn is used to handle an inbound connection for its lifespan. The
// handler will exit when the passed context is cancelled or the connection is
// closed. | {
"resource": ""
} | ||
c175278 | test | // handleCommand is used to decode and dispatch a single command. | {
"resource": ""
} | ||
c175279 | test | // decodeResponse is used to decode an RPC response and reports whether
// the connection can be reused. | {
"resource": ""
} | ||
c175280 | test | // sendRPC is used to encode and send the RPC. | {
"resource": ""
} | ||
c175281 | test | // newNetPipeline is used to construct a netPipeline from a given
// transport and connection. | {
"resource": ""
} | ||
c175282 | test | // decodeResponses is a long running routine that decodes the responses
// sent on the connection. | {
"resource": ""
} | ||
c175283 | test | // AppendEntries is used to pipeline a new append entries request. | {
"resource": ""
} | ||
c175284 | test | // Closed is used to shutdown the pipeline connection. | {
"resource": ""
} | ||
c175285 | test | // NewObserver creates a new observer that can be registered
// to make observations on a Raft instance. Observations
// will be sent on the given channel if they satisfy the
// given filter.
//
// If blocking is true, the observer will block when it can't
// send on the channel, otherwise it may discard events. | {
"resource": ""
} | ||
c175286 | test | // RegisterObserver registers a new observer. | {
"resource": ""
} | ||
c175287 | test | // DeregisterObserver deregisters an observer. | {
"resource": ""
} | ||
c175288 | test | // observe sends an observation to every observer. | {
"resource": ""
} | ||
c175289 | test | // NewInmemStore returns a new in-memory backend. Do not ever
// use for production. Only for testing. | {
"resource": ""
} | ||
c175290 | test | // FirstIndex implements the LogStore interface. | {
"resource": ""
} | ||
c175291 | test | // LastIndex implements the LogStore interface. | {
"resource": ""
} | ||
c175292 | test | // GetLog implements the LogStore interface. | {
"resource": ""
} | ||
c175293 | test | // StoreLog implements the LogStore interface. | {
"resource": ""
} | ||
c175294 | test | // StoreLogs implements the LogStore interface. | {
"resource": ""
} | ||
c175295 | test | // DeleteRange implements the LogStore interface. | {
"resource": ""
} | ||
c175296 | test | // Set implements the StableStore interface. | {
"resource": ""
} | ||
c175297 | test | // Get implements the StableStore interface. | {
"resource": ""
} | ||
c175298 | test | // SetUint64 implements the StableStore interface. | {
"resource": ""
} | ||
c175299 | test | // GetUint64 implements the StableStore interface. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.