_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c162200 | train | // PostingsIteratorFrom1Hit constructs a PostingsIterator given a
// 1-hit docNum. | {
"resource": ""
} | ||
c162201 | train | // Shift returns the number of bits shifted
// returns 0 if in uninitialized state | {
"resource": ""
} | ||
c162202 | train | // Expects either an int or a flaot64 value | {
"resource": ""
} | ||
c162203 | train | // NewDocumentMatchPool will build a DocumentMatchPool with memory
// pre-allocated to accommodate the requested number of DocumentMatch
// instances | {
"resource": ""
} | ||
c162204 | train | // Get returns an available DocumentMatch from the pool
// if the pool was not allocated with sufficient size, an allocation will
// occur to satisfy this request. As a side-effect this will grow the size
// of the pool. | {
"resource": ""
} | ||
c162205 | train | // Put returns a DocumentMatch to the pool | {
"resource": ""
} | ||
c162206 | train | // NewMultiPhraseQuery creates a new Query for finding
// term phrases in the index.
// It is like PhraseQuery, but each position in the
// phrase may be satisfied by a list of terms
// as opposed to just one.
// At least one of the terms must exist in the correct
// order, at the correct index offsets, in the
// speci... | {
"resource": ""
} | ||
c162207 | train | // parseTagName extracts the field name from a struct tag | {
"resource": ""
} | ||
c162208 | train | // NewRegexpStringSearcher is similar to NewRegexpSearcher, but
// additionally optimizes for index readers that handle regexp's. | {
"resource": ""
} | ||
c162209 | train | // atomically populates the returned map | {
"resource": ""
} | ||
c162210 | train | // Size returns the total number of operations inside the batch
// including normal index operations and internal operations. | {
"resource": ""
} | ||
c162211 | train | // Reset returns a Batch to the empty state so that it can
// be re-used in the future. | {
"resource": ""
} | ||
c162212 | train | // Write writes the provided bytes to the wrapped writer and counts the bytes | {
"resource": ""
} | ||
c162213 | train | // DocNumbersLive returns a bitmap containing doc numbers for all live docs | {
"resource": ""
} | ||
c162214 | train | // hasFields returns true if the cache has all the given fields | {
"resource": ""
} | ||
c162215 | train | // PostingsList returns the postings list for the specified term | {
"resource": ""
} | ||
c162216 | train | // Iterator returns an iterator for this dictionary | {
"resource": ""
} | ||
c162217 | train | // PrefixIterator returns an iterator which only visits terms having the
// the specified prefix | {
"resource": ""
} | ||
c162218 | train | // Next returns the next entry in the dictionary | {
"resource": ""
} | ||
c162219 | train | // NewTextFieldMapping returns a default field mapping for text | {
"resource": ""
} | ||
c162220 | train | // NewNumericFieldMapping returns a default field mapping for numbers | {
"resource": ""
} | ||
c162221 | train | // NewDateTimeFieldMapping returns a default field mapping for dates | {
"resource": ""
} | ||
c162222 | train | // NewBooleanFieldMapping returns a default field mapping for booleans | {
"resource": ""
} | ||
c162223 | train | // NewGeoPointFieldMapping returns a default field mapping for geo points | {
"resource": ""
} | ||
c162224 | train | // Options returns the indexing options for this field. | {
"resource": ""
} | ||
c162225 | train | // VisitDocumentFieldTerms is an implementation of the
// DocumentFieldTermVisitable interface | {
"resource": ""
} | ||
c162226 | train | // newEncoding constructs a new encoding defined by the given alphabet,
// which must be a 32-byte string. | {
"resource": ""
} | ||
c162227 | train | // Decode string into bits of a 64-bit word. The string s may be at most 12
// characters. | {
"resource": ""
} | ||
c162228 | train | // BoundingBox returns the region encoded by the given string geohash. | {
"resource": ""
} | ||
c162229 | train | // Round returns a point inside the box, making an effort to round to minimal
// precision. | {
"resource": ""
} | ||
c162230 | train | // errorWithPrecision returns the error range in latitude and longitude for in
// integer geohash with bits of precision. | {
"resource": ""
} | ||
c162231 | train | // minDecimalPlaces returns the minimum number of decimal places such that
// there must exist an number with that many places within any range of width
// r. This is intended for returning minimal precision coordinates inside a
// box. | {
"resource": ""
} | ||
c162232 | train | // Encode the position of x within the range -r to +r as a 32-bit integer. | {
"resource": ""
} | ||
c162233 | train | // Decode the 32-bit range encoding X back to a value in the range -r to +r. | {
"resource": ""
} | ||
c162234 | train | // Squash the even bitlevels of X into a 32-bit word. Odd bitlevels of X are
// ignored, and may take any value. | {
"resource": ""
} | ||
c162235 | train | // BoundingBoxIntWithPrecision returns the region encoded by the integer
// geohash with the specified precision. | {
"resource": ""
} | ||
c162236 | train | // writes out the length of the roaring bitmap in bytes as varint
// then writes out the roaring bitmap itself | {
"resource": ""
} | ||
c162237 | train | // Note. States have to have different starting symbols. | {
"resource": ""
} | ||
c162238 | train | // DecodeUvarintAscending decodes a varint encoded uint64 from the input
// buffer. The remainder of the input buffer and the decoded uint64
// are returned. | {
"resource": ""
} | ||
c162239 | train | // Len returns the number of unread bytes. | {
"resource": ""
} | ||
c162240 | train | // SkipUvarint skips ahead one encoded uint64. | {
"resource": ""
} | ||
c162241 | train | // SkipBytes skips a count number of bytes. | {
"resource": ""
} | ||
c162242 | train | // readEvents reads from the inotify file descriptor, converts the
// received events into Event objects and sends them via the Events channel | {
"resource": ""
} | ||
c162243 | train | // Certain types of events can be "ignored" and not sent over the Events
// channel. Such as events marked ignore by the kernel, or MODIFY events
// against files that do not exist. | {
"resource": ""
} | ||
c162244 | train | // newEvent returns an platform-independent Event based on an inotify mask. | {
"resource": ""
} | ||
c162245 | train | // readEvents reads from kqueue and converts the received kevents into
// Event values that it sends down the Events channel. | {
"resource": ""
} | ||
c162246 | train | // newEvent returns an platform-independent Event based on kqueue Fflags. | {
"resource": ""
} | ||
c162247 | train | // watchDirectoryFiles to mimic inotify when adding a watch on a directory | {
"resource": ""
} | ||
c162248 | train | // sendDirectoryEvents searches the directory for newly created files
// and sends them over the event channel. This functionality is to have
// the BSD version of fsnotify match Linux inotify which provides a
// create event for files created in a watched directory. | {
"resource": ""
} | ||
c162249 | train | // sendFileCreatedEvent sends a create event if the file isn't already being tracked. | {
"resource": ""
} | ||
c162250 | train | // kqueue creates a new kernel event queue and returns a descriptor. | {
"resource": ""
} | ||
c162251 | train | // register events with the queue | {
"resource": ""
} | ||
c162252 | train | // read retrieves pending events, or waits until an event occurs.
// A timeout of nil blocks indefinitely, while 0 polls the queue. | {
"resource": ""
} | ||
c162253 | train | // durationToTimespec prepares a timeout value | {
"resource": ""
} | ||
c162254 | train | // Create a new inotify poller.
// This creates an inotify handler, and an epoll handler. | {
"resource": ""
} | ||
c162255 | train | // Wait using epoll.
// Returns true if something is ready to be read,
// false if there is not. | {
"resource": ""
} | ||
c162256 | train | // Close the write end of the poller. | {
"resource": ""
} | ||
c162257 | train | // Close all poller file descriptors, but not the one passed to it. | {
"resource": ""
} | ||
c162258 | train | // AddDerivativeCNPIfNeeded will create a new CNP if the given CNP has any rule
// that need to create a new derivative policy.
// It returns a boolean, true in case that all actions are correct, false if
// something fails | {
"resource": ""
} | ||
c162259 | train | // DeleteDerivativeCNP if the given policy has a derivative constraint,the
// given CNP will be deleted from store and the cache. | {
"resource": ""
} | ||
c162260 | train | // combinedOutput is the core implementation of catching deadline exceeded
// options and logging errors, with an optional set of filtered outputs. | {
"resource": ""
} | ||
c162261 | train | // CommandContext wraps exec.CommandContext to allow this package to be used as
// a drop-in replacement for the standard exec library. | {
"resource": ""
} | ||
c162262 | train | // WithTimeout creates a Cmd with a context that times out after the specified
// duration. | {
"resource": ""
} | ||
c162263 | train | // WithFilters modifies the specified command to filter any output lines from
// logs if they contain any of the substrings specified as arguments to this
// function. | {
"resource": ""
} | ||
c162264 | train | // CombinedOutput runs the command and returns its combined standard output and
// standard error. Unlike the standard library, if the context is exceeded, it
// will return an error indicating so.
//
// Logs any errors that occur to the specified logger. | {
"resource": ""
} | ||
c162265 | train | // NewNodeHandler returns a new node handler to handle node events and
// implement the implications in the Linux datapath | {
"resource": ""
} | ||
c162266 | train | // updateTunnelMapping is called when a node update is received while running
// with encapsulation mode enabled. The CIDR and IP of both the old and new
// node are provided as context. The caller expects the tunnel mapping in the
// datapath to be updated. | {
"resource": ""
} | ||
c162267 | train | // replaceNodeIPSecOutRoute replace the out IPSec route in the host routing table
// with the new route. If no route exists the route is installed on the host. | {
"resource": ""
} | ||
c162268 | train | // NodeConfigurationChanged is called when the LocalNodeConfiguration has changed | {
"resource": ""
} | ||
c162269 | train | // NodeValidateImplementation is called to validate the implementation of the
// node in the datapath | {
"resource": ""
} | ||
c162270 | train | // WithTimeout adds the timeout to the get endpoint ID config params | {
"resource": ""
} | ||
c162271 | train | // WithContext adds the context to the get endpoint ID config params | {
"resource": ""
} | ||
c162272 | train | // WithHTTPClient adds the HTTPClient to the get endpoint ID config params | {
"resource": ""
} | ||
c162273 | train | // WithID adds the id to the get endpoint ID config params | {
"resource": ""
} | ||
c162274 | train | // Configure sets the parameters of the Kubernetes package | {
"resource": ""
} | ||
c162275 | train | // IsEnabled checks if Cilium is being used in tandem with Kubernetes. | {
"resource": ""
} | ||
c162276 | train | // GetGroupIDByName returns the group ID for the given grpName. | {
"resource": ""
} | ||
c162277 | train | // SetDefaultPermissions sets the given socket to with cilium's default
// group and mode permissions. Group `CiliumGroupName` and mode `0660` | {
"resource": ""
} | ||
c162278 | train | // MapPath returns a path for a BPF map with a given name. | {
"resource": ""
} | ||
c162279 | train | // LocalMapName returns the name for a BPF map that is local to the specified ID. | {
"resource": ""
} | ||
c162280 | train | // LocalMapPath returns the path for a BPF map that is local to the specified ID. | {
"resource": ""
} | ||
c162281 | train | // Environment returns a list of environment variables which are needed to make
// BPF programs and tc aware of the actual BPFFS mount path. | {
"resource": ""
} | ||
c162282 | train | // mountFS mounts the BPFFS filesystem into the desired mapRoot directory. | {
"resource": ""
} | ||
c162283 | train | // hasMultipleMounts checks whether the current mapRoot has only one mount. | {
"resource": ""
} | ||
c162284 | train | // String returns the string representation of an endpoints resource, with
// backends and ports sorted. | {
"resource": ""
} | ||
c162285 | train | // DeepEquals returns true if both endpoints are deep equal. | {
"resource": ""
} | ||
c162286 | train | // CIDRPrefixes returns the endpoint's backends as a slice of IPNets. | {
"resource": ""
} | ||
c162287 | train | // ParseEndpointsID parses a Kubernetes endpoints and returns the ServiceID | {
"resource": ""
} | ||
c162288 | train | // ParseEndpoints parses a Kubernetes Endpoints resource | {
"resource": ""
} | ||
c162289 | train | // ExtractNamespace extracts the namespace of ObjectMeta. | {
"resource": ""
} | ||
c162290 | train | // GetObjUID returns the object's namespace and name. | {
"resource": ""
} | ||
c162291 | train | // printEndpointLabels pretty prints labels with tabs | {
"resource": ""
} | ||
c162292 | train | // SVCAdd is the public method to add services. We assume the ID provided is not in
// sync with the KVStore. If that's the, case the service won't be used and an error is
// returned to the caller.
//
// Returns true if service was created. | {
"resource": ""
} | ||
c162293 | train | // Deletes a service by the frontend address | {
"resource": ""
} | ||
c162294 | train | // SVCGetBySHA256Sum returns a DeepCopied frontend with its backends. | {
"resource": ""
} | ||
c162295 | train | // RevNATAdd deep copies the given revNAT address to the cilium lbmap with the given id. | {
"resource": ""
} | ||
c162296 | train | // RevNATDelete deletes the revNatKey from the local bpf map. | {
"resource": ""
} | ||
c162297 | train | // RevNATDeleteAll deletes all RevNAT4, if IPv4 is enabled on daemon, and all RevNAT6
// stored on the daemon and on the bpf maps.
//
// Must be called with d.loadBalancer.BPFMapMU locked. | {
"resource": ""
} | ||
c162298 | train | // RevNATGet returns a DeepCopy of the revNAT found with the given ID or nil if not found. | {
"resource": ""
} | ||
c162299 | train | // RevNATDump dumps a DeepCopy of the cilium's loadbalancer. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.