Exemple #1
0
 /**
 * @param filter Filter to cache results of
 * @param deletesMode See {@link CachingWrapperFilter.DeletesMode}
 */
 public CachingSpanFilter(SpanFilter filter, CachingWrapperFilter.DeletesMode deletesMode)
 {
     this.filter = filter;
     if (deletesMode == CachingWrapperFilter.DeletesMode.DYNAMIC)
     {
         throw new System.ArgumentException("DeletesMode.DYNAMIC is not supported");
     }
     this.cache = new AnonymousFilterCache(deletesMode);
 }
Exemple #2
0
 /**
  * @param filter Filter to cache results of
  * @param deletesMode See {@link CachingWrapperFilter.DeletesMode}
  */
 public CachingSpanFilter(SpanFilter filter, CachingWrapperFilter.DeletesMode deletesMode)
 {
     this.filter = filter;
     if (deletesMode == CachingWrapperFilter.DeletesMode.DYNAMIC)
     {
         throw new System.ArgumentException("DeletesMode.DYNAMIC is not supported");
     }
     this.cache = new AnonymousFilterCache(deletesMode);
 }
Exemple #3
0
        /// <summary>
        /// New deletions always result in a cache miss, by default
        /// ({@link CachingWrapperFilter.DeletesMode#RECACHE}.
        /// <param name="filter">Filter to cache results of
		/// </param>
        /// </summary>
        public CachingSpanFilter(SpanFilter filter): this(filter, CachingWrapperFilter.DeletesMode.RECACHE)
		{
			
		}
Exemple #4
0
 /// <summary>
 /// New deletions always result in a cache miss, by default
 /// ({@link CachingWrapperFilter.DeletesMode#RECACHE}.
 /// <param name="filter">Filter to cache results of
 /// </param>
 /// </summary>
 public CachingSpanFilter(SpanFilter filter) : this(filter, CachingWrapperFilter.DeletesMode.RECACHE)
 {
 }