_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c162100 | train | // AddFieldMapping adds the provided FieldMapping for this section
// of the document. | {
"resource": ""
} | ||
c162101 | train | // move the r.only pos forward one, skipping duplicates
// return true if there is more data, or false if we got to the end of the list | {
"resource": ""
} | ||
c162102 | train | // newEnumerator returns a new enumerator over the vellum Iterators | {
"resource": ""
} | ||
c162103 | train | // updateMatches maintains the low key matches based on the currKs | {
"resource": ""
} | ||
c162104 | train | // Close all the underlying Iterators. The first error, if any, will
// be returned. | {
"resource": ""
} | ||
c162105 | train | // Finish of an unadorned disjunction optimization will compute a
// termFieldReader with an "actual" bitmap that represents the
// constituent bitmaps OR'ed together. This termFieldReader cannot
// provide any freq-norm or termVector associated information. | {
"resource": ""
} | ||
c162106 | train | // MortonHash computes the morton hash value for the provided geo point
// This point is ordered as lon, lat. | {
"resource": ""
} | ||
c162107 | train | // compareGeo will compare two float values and see if they are the same
// taking into consideration a known geo tolerance. | {
"resource": ""
} | ||
c162108 | train | // RectIntersects checks whether rectangles a and b intersect | {
"resource": ""
} | ||
c162109 | train | // RectWithin checks whether box a is within box b | {
"resource": ""
} | ||
c162110 | train | // FieldNamed returns the index of the field, and whether or not it existed
// before this call. if createIfMissing is true, and new field index is assigned
// but the second return value will still be false | {
"resource": ""
} | ||
c162111 | train | // Returns the literal prefix given the parse tree for a regexp | {
"resource": ""
} | ||
c162112 | train | // ParseDistanceUnit attempts to parse a distance unit and return the
// multiplier for converting this to meters. If the unit cannot be parsed
// then 0 and the error message is returned. | {
"resource": ""
} | ||
c162113 | train | // Haversin computes the distance between two points.
// This implemenation uses the sloppy math implemenations which trade off
// accuracy for performance. The distance returned is in kilometers. | {
"resource": ""
} | ||
c162114 | train | // Advanced returns implementation internals
// necessary ONLY for advanced usage. | {
"resource": ""
} | ||
c162115 | train | // Index the object with the specified identifier.
// The IndexMapping for this index will determine
// how the object is indexed. | {
"resource": ""
} | ||
c162116 | train | // IndexAdvanced takes a document.Document object
// skips the mapping and indexes it. | {
"resource": ""
} | ||
c162117 | train | // Delete entries for the specified identifier from
// the index. | {
"resource": ""
} | ||
c162118 | train | // Batch executes multiple Index and Delete
// operations at the same time. There are often
// significant performance benefits when performing
// operations in a batch. | {
"resource": ""
} | ||
c162119 | train | // Document is used to find the values of all the
// stored fields for a document in the index. These
// stored fields are put back into a Document object
// and returned. | {
"resource": ""
} | ||
c162120 | train | // DocCount returns the number of documents in the
// index. | {
"resource": ""
} | ||
c162121 | train | // Search executes a search request operation.
// Returns a SearchResult object or an error. | {
"resource": ""
} | ||
c162122 | train | // memNeededForSearch is a helper function that returns an estimate of RAM
// needed to execute a search request. | {
"resource": ""
} | ||
c162123 | train | // Fields returns the name of all the fields this
// Index has operated on. | {
"resource": ""
} | ||
c162124 | train | // NewBatch creates a new empty batch. | {
"resource": ""
} | ||
c162125 | train | // helper function to remove duplicate entries from slice of strings | {
"resource": ""
} | ||
c162126 | train | // boxSearcher builds a searcher for the described bounding box
// if the desired box crosses the dateline, it is automatically split into
// two boxes joined through a disjunction searcher | {
"resource": ""
} | ||
c162127 | train | // NewIndexAlias creates a new IndexAlias over the provided
// Index objects. | {
"resource": ""
} | ||
c162128 | train | // MultiSearch executes a SearchRequest across multiple Index objects,
// then merges the results. The indexes must honor any ctx deadline. | {
"resource": ""
} | ||
c162129 | train | // Open returns a zap impl of a segment | {
"resource": ""
} | ||
c162130 | train | // Dictionary returns the term dictionary for the specified field | {
"resource": ""
} | ||
c162131 | train | // VisitDocument invokes the DocFieldValueVistor for each stored field
// for the specified doc number | {
"resource": ""
} | ||
c162132 | train | // DocID returns the value of the _id field for the given docNum | {
"resource": ""
} | ||
c162133 | train | // DocNumbers returns a bitset corresponding to the doc numbers of all the
// provided _id strings | {
"resource": ""
} | ||
c162134 | train | // DictAddr is a helper function to compute the file offset where the
// dictionary is stored for the specified field. | {
"resource": ""
} | ||
c162135 | train | // NewTermRangeQuery creates a new Query for ranges
// of text terms.
// Either, but not both endpoints can be "".
// The minimum value is inclusive.
// The maximum value is exclusive. | {
"resource": ""
} | ||
c162136 | train | // NewTermRangeInclusiveQuery creates a new Query for ranges
// of text terms.
// Either, but not both endpoints can be "".
// Control endpoint inclusion with inclusiveMin, inclusiveMax. | {
"resource": ""
} | ||
c162137 | train | // NewGeoBoundingBoxQuery creates a new Query for performing geo bounding
// box searches. The arguments describe the position of the box and documents
// which have an indexed geo point inside the box will be returned. | {
"resource": ""
} | ||
c162138 | train | // NewGeoDistanceQuery creates a new Query for performing geo distance
// searches. The arguments describe a position and a distance. Documents
// which have an indexed geo point which is less than or equal to the provided
// distance from the given position will be returned. | {
"resource": ""
} | ||
c162139 | train | // FieldsNotYetCached returns a list of fields not yet cached out of a larger list of fields | {
"resource": ""
} | ||
c162140 | train | // Reset allows an already allocated TermFieldDoc to be reused | {
"resource": ""
} | ||
c162141 | train | // Returns the higher of the input or FloorSegmentSize. | {
"resource": ""
} | ||
c162142 | train | // Compute the number of segments that would be needed to cover the
// totalSize, by climbing up a logarithmically growing staircase of
// segment tiers. | {
"resource": ""
} | ||
c162143 | train | // Smaller result score is better. | {
"resource": ""
} | ||
c162144 | train | // Reset allows an already allocated DocumentMatch to be reused | {
"resource": ""
} | ||
c162145 | train | // Complete performs final preparation & transformation of the
// DocumentMatch at the end of search processing, also allowing the
// caller to provide an optional preallocated locations slice | {
"resource": ""
} | ||
c162146 | train | // earthDiameter returns an estimation of the earth's diameter at the specified
// latitude in kilometers | {
"resource": ""
} | ||
c162147 | train | // Merge takes a slice of zap segments and bit masks describing which
// documents may be dropped, and creates a new segment containing the
// remaining data. This new segment is built at the specified path,
// with the provided chunkFactor. | {
"resource": ""
} | ||
c162148 | train | // mapFields takes the fieldsInv list and returns a map of fieldName
// to fieldID+1 | {
"resource": ""
} | ||
c162149 | train | // computeNewDocCount determines how many documents will be in the newly
// merged segment when obsoleted docs are dropped | {
"resource": ""
} | ||
c162150 | train | // AnalysisResultsToSegmentBase produces an in-memory zap-encoded
// SegmentBase from analysis results | {
"resource": ""
} | ||
c162151 | train | // persistSnapshotMaybeMerge examines the snapshot and might merge and
// persist the in-memory zap segments if there are enough of them | {
"resource": ""
} | ||
c162152 | train | // Removes enough snapshots from the rootBolt so that the
// s.eligibleForRemoval stays under the NumSnapshotsToKeep policy. | {
"resource": ""
} | ||
c162153 | train | // newChunkedContentCoder returns a new chunk content coder which
// packs data into chunks based on the provided chunkSize | {
"resource": ""
} | ||
c162154 | train | // Reset lets you reuse this chunked content coder. Buffers are reset
// and re used. You cannot change the chunk size. | {
"resource": ""
} | ||
c162155 | train | // ReadDocValueBoundary elicits the start, end offsets from a
// metaData header slice | {
"resource": ""
} | ||
c162156 | train | // NewFacetRequest creates a facet on the specified
// field that limits the number of entries to the
// specified size. | {
"resource": ""
} | ||
c162157 | train | // AddDateTimeRangeString adds a bucket to a field
// containing date values. | {
"resource": ""
} | ||
c162158 | train | // AddFacet adds a FacetRequest to this SearchRequest | {
"resource": ""
} | ||
c162159 | train | // SortBy changes the request to use the requested sort order
// this form uses the simplified syntax with an array of strings
// each string can either be a field name
// or the magic value _id and _score which refer to the doc id and search score
// any of these values can optionally be prefixed with - to reverse the... | {
"resource": ""
} | ||
c162160 | train | // UnmarshalJSON deserializes a JSON representation of
// a SearchRequest | {
"resource": ""
} | ||
c162161 | train | // NewSearchRequestOptions creates a new SearchRequest
// for the Query, with the requested size, from
// and explanation search parameters.
// By default results are ordered by score, descending. | {
"resource": ""
} | ||
c162162 | train | // MarshalJSON seralizes the error into a string for JSON consumption | {
"resource": ""
} | ||
c162163 | train | // Merge will merge together multiple SearchStatuses during a MultiSearch | {
"resource": ""
} | ||
c162164 | train | // Merge will merge together multiple SearchResults during a MultiSearch | {
"resource": ""
} | ||
c162165 | train | // MemoryNeededForSearchResult is an exported helper function to determine the RAM
// needed to accommodate the results for a given search request. | {
"resource": ""
} | ||
c162166 | train | // NewBooleanQuery creates a compound Query composed
// of several other Query objects.
// Result documents must satisfy ALL of the
// must Queries.
// Result documents must satisfy NONE of the must not
// Queries.
// Result documents that ALSO satisfy any of the should
// Queries will score higher. | {
"resource": ""
} | ||
c162167 | train | // SetMinShould requires that at least minShould of the
// should Queries must be satisfied. | {
"resource": ""
} | ||
c162168 | train | // CanMutateBleveIndex returns true if the command is capable
// of mutating the bleve index, or false if its operation is
// read-only | {
"resource": ""
} | ||
c162169 | train | // NewTopNCollector builds a collector to find the top 'size' hits
// skipping over the first 'skip' hits
// ordering hits by the provided sort order | {
"resource": ""
} | ||
c162170 | train | // Collect goes to the index to find the matching documents | {
"resource": ""
} | ||
c162171 | train | // visitFieldTerms is responsible for visiting the field terms of the
// search hit, and passing visited terms to the sort and facet builder | {
"resource": ""
} | ||
c162172 | train | // SetFacetsBuilder registers a facet builder for this collector | {
"resource": ""
} | ||
c162173 | train | // FacetResults returns the computed facets results | {
"resource": ""
} | ||
c162174 | train | // MultiGet is a helper function to retrieve mutiple keys from a
// KVReader, and might be used by KVStore implementations that don't
// have a native multi-get facility. | {
"resource": ""
} | ||
c162175 | train | // a disjunction searcher implements the index.Optimizable interface
// but only activates on an edge case where the disjunction is a
// wrapper around a single Optimizable child searcher | {
"resource": ""
} | ||
c162176 | train | // expandQuery traverses the input query tree and returns a new tree where
// query string queries have been expanded into base queries. Returned tree may
// reference queries from the input tree or new queries. | {
"resource": ""
} | ||
c162177 | train | // DumpQuery returns a string representation of the query tree, where query
// string queries have been expanded into base queries. The output format is
// meant for debugging purpose and may change in the future. | {
"resource": ""
} | ||
c162178 | train | // newChunkedIntCoder returns a new chunk int coder which packs data into
// chunks based on the provided chunkSize and supports up to the specified
// maxDocNum | {
"resource": ""
} | ||
c162179 | train | // Reset lets you reuse this chunked int coder. buffers are reset and reused
// from previous use. you cannot change the chunk size or max doc num. | {
"resource": ""
} | ||
c162180 | train | // Write commits all the encoded chunked integers to the provided writer. | {
"resource": ""
} | ||
c162181 | train | // the functions in this file are only intended to be used by
// the bleve_dump utility and the debug http handlers
// if your application relies on them, you're doing something wrong
// they may change or be removed at any time | {
"resource": ""
} | ||
c162182 | train | // DumpDoc returns all rows in the index related to this doc id | {
"resource": ""
} | ||
c162183 | train | // AddCustomCharFilter defines a custom char filter for use in this mapping | {
"resource": ""
} | ||
c162184 | train | // AddCustomTokenizer defines a custom tokenizer for use in this mapping | {
"resource": ""
} | ||
c162185 | train | // AddCustomTokenMap defines a custom token map for use in this mapping | {
"resource": ""
} | ||
c162186 | train | // AddCustomTokenFilter defines a custom token filter for use in this mapping | {
"resource": ""
} | ||
c162187 | train | // AddCustomDateTimeParser defines a custom date time parser for use in this mapping | {
"resource": ""
} | ||
c162188 | train | // NewIndexMapping creates a new IndexMapping that will use all the default indexing rules | {
"resource": ""
} | ||
c162189 | train | // Validate will walk the entire structure ensuring the following
// explicitly named and default analyzers can be built | {
"resource": ""
} | ||
c162190 | train | // AddDocumentMapping sets a custom document mapping for the specified type | {
"resource": ""
} | ||
c162191 | train | // AnalyzerNameForPath attempts to find the best analyzer to use with only a
// field name will walk all the document types, look for field mappings at the
// provided path, if one exists and it has an explicit analyzer that is
// returned. | {
"resource": ""
} | ||
c162192 | train | // Iterator returns an iterator for this postings list | {
"resource": ""
} | ||
c162193 | train | // Count returns the number of items on this postings list | {
"resource": ""
} | ||
c162194 | train | // readLocation processes all the integers on the stream representing a single
// location. | {
"resource": ""
} | ||
c162195 | train | // Advance returns the posting at the specified docNum or it is not present
// the next posting, or if the end is reached, nil | {
"resource": ""
} | ||
c162196 | train | // Next returns the next posting on the postings list, or nil at the end | {
"resource": ""
} | ||
c162197 | train | // nextBytes returns the docNum and the encoded freq & loc bytes for
// the next posting | {
"resource": ""
} | ||
c162198 | train | // DocNum1Hit returns the docNum and true if this is "1-hit" optimized
// and the docNum is available. | {
"resource": ""
} | ||
c162199 | train | // PostingsIteratorFromBitmap constructs a PostingsIterator given an
// "actual" bitmap. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.