goog.ui.ac.CachingMatcher |
baseMatcher
: !Object
The underlying matcher to use. Must implement
requestMatchingRows.
|
![]()
Adds the specified rows to the cache.
|
code » | ||
![]()
Checks if the cache is larger than the maximum cache size. If so clears it.
|
code » | ||
![]()
Local matching function.
|
code » | ||
![]()
Handles a match response from the base matcher.
|
code » | ||
![]()
Function used to pass matches to the autocomplete.
|
code » | ||
![]()
Sets the maxMatches to use for the base matcher. If the base matcher makes
AJAX requests, it may help to make this a large number so that the local
cache gets populated quickly.
Default value: 100.
Arguments:
|
code » | ||
![]()
Sets the local matcher to use.
The local matcher should be a function with the same signature as
goog.ui.ac.ArrayMatcher.getMatchesForRows , i.e. its arguments are
searchToken, maxMatches, rowsToSearch; and it returns a list of matching
rows.
Default value: goog.ui.ac.ArrayMatcher.getMatchesForRows .
Arguments:
|
code » | ||
![]()
Sets the maximum size of the local cache. If the local cache grows larger
than this size, it will be emptied.
Default value: 1000.
Arguments:
|
code » | ||
![]()
Sets the number of milliseconds with which to throttle the match requests
on the underlying matcher.
Default value: 150.
Arguments:
|
code » | ||
![]()
Triggers a match request against the base matcher. This function is
unthrottled, so don't call it directly; instead use
this.throttledTriggerBaseMatch_.
|
code » |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
Maximum number of rows in the cache. If the cache grows larger than this,
the entire cache will be emptied.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
The set of rows which we last displayed.
NOTE(reinerp): The need for this is subtle. When a server result comes
back, we don't want to suddenly change the list of results without the user
doing anything. So we make sure to add the new server results to the end of
the currently displayed list.
We need to keep track of the last rows we displayed, because the "similar
matcher" we use locally might otherwise reorder results.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
Set of stringified rows, for fast deduping. Each element of this.rows_
is stored in rowStrings_ as (' ' + row) to ensure we avoid builtin
properties like 'toString'.
|
Code » | |
![]()
No description.
|
Code » | |
No description.
|
Code » |