コード例 #1
0
 public AddGeneratorTask(LuceneQueryable queryable,
                         IIndexableGenerator generator)
 {
     this.queryable = queryable;
     this.generator = generator;
     this.Tag       = generator.StatusName;
 }
コード例 #2
0
 public AddTask(LuceneQueryable queryable,
                Indexable indexable)
 {
     this.queryable = queryable;
     this.indexable = indexable;
     this.Tag       = indexable.DisplayUri.ToString();
     this.Weight    = 1;
 }
コード例 #3
0
 public OptimizeTask(LuceneQueryable queryable)
 {
     this.queryable = queryable;
 }
コード例 #4
0
 public FinalFlushTask(LuceneQueryable queryable)
 {
     this.queryable = queryable;
 }
コード例 #5
0
 public override ResponseMessage Execute(RequestMessage req)
 {
     LuceneQueryable.OptimizeAll();
     return(new EmptyResponse());
 }
コード例 #6
0
			public OptimizeTask (LuceneQueryable queryable)
			{
				this.queryable = queryable;
			}
コード例 #7
0
			public FinalFlushTask (LuceneQueryable queryable)
			{
				this.queryable = queryable;

			}
コード例 #8
0
			public AddGeneratorTask (LuceneQueryable     queryable,
						 IIndexableGenerator generator)
			{
				this.queryable = queryable;
				this.generator = generator;
				this.Tag = generator.StatusName;
			}
コード例 #9
0
			public AddTask (LuceneQueryable    queryable,
					Indexable          indexable)
			{
				this.queryable = queryable;
				this.indexable = indexable;
				this.Tag = indexable.DisplayUri.ToString ();
				this.Weight = 1;
			}
コード例 #10
0
			public IndexableGenerator (ICollection to_add, ICollection to_remove_uris, LuceneQueryable submitter_queryable)
			{
				this.count = 0;
				this.submitter_queryable = submitter_queryable;

				if (to_add != null) {
					this.to_add_enumerator = to_add.GetEnumerator ();
					this.count += to_add.Count;
				}

				if (to_remove_uris != null) {
					this.to_remove_uris_enumerator = to_remove_uris.GetEnumerator ();
					this.count += to_remove_uris.Count;
				}
			}