Ejemplo n.º 1
0
 /// <summary>New deletions always result in a cache miss, specify the <paramref name="deletesMode"/></summary>
 /// <param name="filter">Filter to cache results of</param>
 /// <param name="deletesMode">See <see cref="CachingWrapperFilter.DeletesMode" /></param>
 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);
 }
Ejemplo n.º 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);
 }
 /**
 * @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 CachingWrapperFilter.FilterCache<SpanFilterResult>(deletesMode, 
         (r, value) =>
         {
             throw new System.ArgumentException("DeletesMode.DYNAMIC is not supported");
         });
 }
Ejemplo n.º 4
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 CachingWrapperFilter.FilterCache <SpanFilterResult>(deletesMode,
                                                                          (r, value) =>
     {
         throw new System.ArgumentException("DeletesMode.DYNAMIC is not supported");
     });
 }