コード例 #1
0
 /// <summary>
 /// Apply the specified IndexAwareFilter to the specified keySet.
 /// </summary>
 /// <param name="filter">
 /// The IndexAwareFilter to apply an index to.
 /// </param>
 /// <param name="indexes">
 /// The available MapIndex objects keyed by the related
 /// IValueExtractor; read-only.
 /// </param>
 /// <param name="keys">
 /// The mutable set of keys that remain to be filtered.
 /// </param>
 /// <returns>
 /// A Filter object that can be used to process the remaining
 /// keys, or null if no additional filter processing is necessary
 ///</returns>
 protected virtual IFilter ApplyFilter(IIndexAwareFilter filter,
                                       IDictionary indexes, ICollection keys)
 {
     return(filter.ApplyIndex(indexes, keys));
 }
コード例 #2
0
 /// <summary>
 /// Construct a PriorityFilter.
 /// </summary>
 /// <param name="filter">
 /// The <see cref="IIndexAwareFilter"/> wrapped by this PriorityFilter.
 /// </param>
 public PriorityFilter(IIndexAwareFilter filter)
 {
     m_filter = filter;
 }