MCPcopy Index your code

hub / github.com/BurntSushi/imdb-rename / functions

Functions335 in github.com/BurntSushi/imdb-rename

↓ 45 callersMethodpush
Add a new scored value to this collection. The score provided must be less than or equal to every other score in this collection, otherwise this meth
imdb-index/src/scored.rs:32
↓ 26 callersMethodmap
Consume this scored value and map its value using the function given, returning a new scored value with the result of the map and an unchanged score.
imdb-index/src/scored.rs:154
↓ 19 callersMethodis_none
Returns true if and only if no similarity function was selected.
imdb-index/src/search.rs:689
↓ 16 callersMethoditer
Execute the given function over each ngram in the text provided using the given size configuration. We don't use normal Rust iterators here because a
imdb-index/src/index/names.rs:1251
↓ 12 callersMethodkind
Return a reference to the kind of this error.
imdb-index/src/error.rs:18
↓ 12 callersMethodvalue
Return a reference to the underlying value.
imdb-index/src/scored.rs:168
↓ 11 callersMethodinsert
Associate the given identifier with the given integer. If the given key is not strictly lexicographically greater than the previous key, then an erro
imdb-index/src/index/id.rs:54
↓ 11 callersMethodlen
Returns the number of results in this collection.
imdb-index/src/scored.rs:77
↓ 11 callersMethodname
Set the name to query by. The name given here is normalized and broken down into components automatically to facilitate fuzzy searching. Note that i
imdb-index/src/search.rs:272
↓ 11 callersMethodtitle
Return a reference to the underlying `Title`.
imdb-index/src/index/mod.rs:68
↓ 9 callersMethodwith_score
Consume this scored value and return a new scored value that drops the existing score and replaces it with the given score. This panics if the given
imdb-index/src/scored.rs:146
↓ 8 callersMethodcontains
(&self, t: Option<&T>)
imdb-index/src/search.rs:776
↓ 8 callersMethodget
Return the integer associated with the given ID, if it exists.
imdb-index/src/index/id.rs:29
↓ 8 callersMethodindex_dir
Returns the directory containing this index's files.
imdb-index/src/index/mod.rs:325
↓ 8 callersMethodinto_iter
(self)
imdb-index/src/scored.rs:102
↓ 8 callersMethodis_empty
Returns true if and only if this collection is empty.
imdb-index/src/scored.rs:82
↓ 8 callersMethodscore
Return the score with the current document ID. If this iterator has been exhausted, then this returns `None`.
imdb-index/src/index/names.rs:800
↓ 8 callersMethodtrim
Trim this collection so that it contains at most the first `size` results.
imdb-index/src/scored.rs:70
↓ 7 callersMethodas_str
Return a string representation of this title kind. This string representation is intended to be the same string representation used in the IMDb data
imdb-index/src/record.rs:101
↓ 7 callersMethoddeserialize
(d: D)
imdb-index/src/search.rs:530
↓ 7 callersMethodinto_vec
Consume this collection and return the underlying sorted sequence of scored values.
imdb-index/src/scored.rs:93
↓ 7 callersMethodposting
Return the current posting. If this iterator has been exhausted, then this returns `None`.
imdb-index/src/index/names.rs:782
↓ 7 callersMethodsimilarity
(&self, query: &Query, name: &str)
imdb-index/src/search.rs:192
↓ 6 callersMethodcollect
Collect the top K results from the given searcher using the given index reader. Return the results with normalized scores sorted in order of best-to-w
imdb-index/src/index/names.rs:311
↓ 6 callersFunctioncsv_reader_builder
A function for creating a CSV reader builder that is pre-loaded with the correct settings for reading all IMDb CSV files.
imdb-index/src/util.rs:67
↓ 6 callersMethodfinish
Finish writing the index. This must be called, otherwise the index will likely be unreadable.
imdb-index/src/index/id.rs:62
↓ 6 callersMethodis_empty
Return true if and only if this query is empty. Searching with an empty query always yields no results.
imdb-index/src/search.rs:254
↓ 6 callersMethodlen
Returns the document frequency for the term corresponding to these postings.
imdb-index/src/index/names.rs:788
↓ 6 callersMethodmap_score
Consume this scored value and map its score using the function given, return a new `Scored` with an unchanged value. This panics if score returned by
imdb-index/src/scored.rs:162
↓ 6 callersMethodposition
Return the current position of this writer.
imdb-index/src/index/writer.rs:34
↓ 5 callersFunctioncsv_file
Builds a CSV reader (using `csv_reader_builder`) that is backed by a file. While this read can be seeked, it will be less efficient than using a memor
imdb-index/src/util.rs:90
↓ 5 callersMethoddata_dir
Returns the data directory that this index returns results for.
imdb-index/src/index/mod.rs:320
↓ 5 callersMethodflush
(&self)
src/logger.rs:45
↓ 5 callersMethodinsert
Inserts the given name to this index, and associates it with the provided `NameID`. Multiple names may be associated with the same `NameID`.
imdb-index/src/index/names.rs:1059
↓ 5 callersFunctionparse_many_lossy
Parse a sequence of values from clap.
imdb-eval/src/main.rs:329
↓ 5 callersMethodrescore
Recomputes the scores in this collection using the given function. The results are then re-sorted according to the new scores.
imdb-index/src/scored.rs:60
↓ 5 callersMethodscore
Return the score for this item. In general, no restrictions are placed on the range of scores, however most search APIs that use it will return score
imdb-index/src/scored.rs:130
↓ 4 callersMethodcmp
(&self, other: &PostingIter<'i>)
imdb-index/src/index/names.rs:893
↓ 4 callersFunctioncreate_file
Creates a file and truncates it.
imdb-index/src/util.rs:107
↓ 4 callersFunctioncreate_index
Creates a name index, where each name provided is assigned its own unique ID, starting at 0.
imdb-index/src/index/names.rs:1343
↓ 4 callersMethoddocid
Return the current document ID. If this iterator has been exhausted, then this returns `None`.
imdb-index/src/index/names.rs:794
↓ 4 callersMethodentity_from_title
Returns the `MediaEntity` for the given `Title`. This is like the `entity` method, except it takes a `Title` record as given.
imdb-index/src/index/mod.rs:235
↓ 4 callersMethodepisode
Return a reference to the underlying `Episode`, if it exists.
imdb-index/src/index/mod.rs:73
↓ 4 callersMethodfind
Return a (possibly empty) iterator over all AKA records for the given IMDb ID.
imdb-index/src/index/aka.rs:73
↓ 4 callersMethodflush
(&mut self)
imdb-index/src/index/writer.rs:61
↓ 4 callersFunctionfrom_optional_u32
( label: &'static str, bytes: &[u8], )
imdb-index/src/index/episode.rs:259
↓ 4 callersMethodinto_pair
Consume this scored value and return the underlying pair of score and `T`.
imdb-index/src/scored.rs:180
↓ 4 callersFunctionmmap_file
Builds a file-backed memory map.
imdb-index/src/util.rs:99
↓ 4 callersFunctionname_query
Build a name query, and disable the dynamic stop word detection. It would be nice to test the stop word detection, but it makes writing unit tests ve
imdb-index/src/index/names.rs:1358
↓ 4 callersMethodnext
(&mut self)
imdb-index/src/index/aka.rs:105
↓ 4 callersMethodread_record
Read the CSV `Title` record beginning at the given file offset. If no such record exists, then this returns `None`. If there was a problem reading t
imdb-index/src/index/mod.rs:338
↓ 4 callersMethodsearch
Execute a search.
imdb-index/src/index/names.rs:245
↓ 4 callersMethodset_score
Set the score, replacing the existing value with the given value. This panics if the given score is `NaN`.
imdb-index/src/scored.rs:137
↓ 3 callersMethodas_slice
Return a slice of search results in order.
imdb-index/src/scored.rs:87
↓ 3 callersMethodcmp
(&self, other: &Scored<T>)
imdb-index/src/scored.rs:201
↓ 3 callersMethodcreate_index
(&self)
src/main.rs:195
↓ 3 callersMethodentity
Returns the `MediaEntity` for the given IMDb ID. An entity includes an [`Episode`](struct.Episode.html) and [`Rating`](struct.Rating.html) records if
imdb-index/src/index/mod.rs:224
↓ 3 callersFunctionfst_set_builder_file
Creates an FST set builder for the given file path.
imdb-index/src/util.rs:121
↓ 3 callersFunctionfst_set_file
Open an FST set file for the given file path as a memory map.
imdb-index/src/util.rs:133
↓ 3 callersMethodindex
Return a mutable reference to the underlying index for this searcher.
imdb-index/src/search.rs:86
↓ 3 callersMethodinto_value
Consume this scored value, drop the score and return the underlying `T`.
imdb-index/src/scored.rs:174
↓ 3 callersMethodkind
Add a title kind to filter by. Multiple title kinds can be added to query, and search results must match at least one of them. Note that it is not p
imdb-index/src/search.rs:329
↓ 3 callersMethodmatches
Returns true if and only if the given entity matches this query. Note that this only applies filters in this query. e.g., The name aspect of the quer
imdb-index/src/search.rs:409
↓ 3 callersMethodnext
(&mut self)
imdb-index/src/index/names.rs:459
↓ 3 callersFunctionopen_file
Opens a file for reading.
imdb-index/src/util.rs:114
↓ 3 callersMethodsize
Set the maximum number of results to be returned by a search. Note that setting this number too high (e.g., `> 10,000`) can impact performance. This
imdb-index/src/search.rs:317
↓ 2 callersFunctionchoose
Make a choice among the search results given. If there is no clear winner, then a prompt is shown to the end user, where they must make a selection.
src/util.rs:16
↓ 2 callersMethodchoose_one
Execute a search against the given searcher with the given query and choose a single result from the search. If no obvious single result stands out, t
src/rename.rs:539
↓ 2 callersMethodcreate
Create a new index using default settings. Calling this method is expensive, and one should expect this to take dozens of seconds or more to complete
imdb-index/src/index/mod.rs:165
↓ 2 callersFunctioncsv_mmap
Builds a CSV reader (using `csv_reader_builder`) that is backed by a seekable memory map. We use memory maps for this even though we could use a norm
imdb-index/src/util.rs:79
↓ 2 callersFunctiondataset_path
Build the path on disk for a dataset, given the directory and the dataset name.
src/download.rs:83
↓ 2 callersMethoddocument_length
Return the length, in terms, of the given document. This panics if the given document id does not correspond to an indexed document.
imdb-index/src/index/names.rs:271
↓ 2 callersFunctiondownload_one
Downloads a single data set, decompresses it and writes it to the corresponding file path in the given directory.
src/download.rs:53
↓ 2 callersMethodflush
(&self)
imdb-eval/src/logger.rs:47
↓ 2 callersFunctionfst_map_builder_file
Creates an FST map builder for the given file path.
imdb-index/src/util.rs:144
↓ 2 callersFunctionfst_map_file
Open an FST map file for the given file path as a memory map.
imdb-index/src/util.rs:156
↓ 2 callersMethodindex
Either open or create an index suitable for this specification. If no index exists in the expected sub-directory of `eval_dir`, then a new index is c
imdb-eval/src/eval.rs:191
↓ 2 callersMethodmatches_title
Returns true if and only if the given title matches this query. This ignores non-title filters.
imdb-index/src/search.rs:418
↓ 2 callersMethodname_query
Build a query and seed it with the given name, after sanitizing the name.
src/rename.rs:526
↓ 2 callersMethodname_scorer
Set the scorer to use for name searches. The name scorer is used to rank results from searching the IMDb name index. If no name query is given, then
imdb-index/src/search.rs:290
↓ 2 callersMethodneeds_episode
Returns true if and only if this query has an episode filter.
imdb-index/src/search.rs:513
↓ 2 callersMethodneeds_rating
Returns true if and only if this query has a rating filter.
imdb-index/src/search.rs:508
↓ 2 callersMethodngram_size
Set the ngram size on this index. When creating an index, ngrams with this size will be used.
imdb-index/src/index/mod.rs:501
↓ 2 callersMethodngram_type
Set the type of ngram generation to use. The default type is `Window`.
imdb-index/src/index/mod.rs:493
↓ 2 callersMethodnormalize
Normalizes the scores in this collection such that all scores are in the range `[0, 1]` where the top result always has score `1.0`. This operation i
imdb-index/src/scored.rs:42
↓ 2 callersFunctionnormalize_query
(s: &str)
imdb-index/src/index/names.rs:1324
↓ 2 callersMethodnum_docs
Return the total number of documents have been assigned doc ids.
imdb-index/src/index/names.rs:1107
↓ 2 callersMethodpath
Return the underlying path to this temporary directory.
imdb-index/src/index/tests.rs:89
↓ 2 callersMethodrating
Return a reference to the underlying `Rating`, if it exists.
imdb-index/src/index/mod.rs:78
↓ 2 callersFunctionread_episode
(bytes: &[u8])
imdb-index/src/index/episode.rs:186
↓ 2 callersFunctionread_le_u32
(slice: &[u8])
imdb-index/src/index/names.rs:1330
↓ 2 callersMethodsearch
Execute a search with the given `Query`. Generally, the results returned are ranked in relevance order, where each result has a score associated with
imdb-index/src/search.rs:69
↓ 2 callersMethodsearch
Execute a search against the given searcher with the given query. If this exact query has been previously executed by this renamer, then a cache of r
src/rename.rs:558
↓ 2 callersMethodseason_ge
Set the lower inclusive bound on a title's season. This automatically limits all results to episodes.
imdb-index/src/search.rs:367
↓ 2 callersMethodseason_le
Set the upper inclusive bound on a title's season. This automatically limits all results to episodes.
imdb-index/src/search.rs:375
↓ 2 callersMethodserialize
(&self, s: S)
imdb-index/src/search.rs:521
↓ 2 callersMethodspecs
Build all evaluation specifications as indicated by command line options.
imdb-eval/src/main.rs:169
↓ 2 callersFunctionto_optional_epnum
(ep: &Episode)
imdb-index/src/index/episode.rs:284
↓ 2 callersFunctionto_optional_season
(ep: &Episode)
imdb-index/src/index/episode.rs:272
↓ 2 callersMethodversion
(expected: u64, got: u64)
imdb-index/src/error.rs:59
next →1–100 of 335, ranked by callers