示例#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;
 }
			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;
				}
			}
示例#4
0
 public OptimizeTask(LuceneQueryable queryable)
 {
     this.queryable = queryable;
 }
示例#5
0
 public FinalFlushTask(LuceneQueryable queryable)
 {
     this.queryable = queryable;
 }
示例#6
0
 public override ResponseMessage Execute(RequestMessage req)
 {
     LuceneQueryable.OptimizeAll();
     return(new EmptyResponse());
 }
示例#7
0
			public OptimizeTask (LuceneQueryable queryable)
			{
				this.queryable = queryable;
			}
示例#8
0
			public FinalFlushTask (LuceneQueryable queryable)
			{
				this.queryable = queryable;

			}
示例#9
0
			public AddGeneratorTask (LuceneQueryable     queryable,
						 IIndexableGenerator generator)
			{
				this.queryable = queryable;
				this.generator = generator;
				this.Tag = generator.StatusName;
			}
示例#10
0
			public AddTask (LuceneQueryable    queryable,
					Indexable          indexable)
			{
				this.queryable = queryable;
				this.indexable = indexable;
				this.Tag = indexable.DisplayUri.ToString ();
				this.Weight = 1;
			}