public ThreadAnonymousInnerClassHelper(TestPayloads outerInstance, int numDocs, Lucene.Net.Index.TestPayloads.ByteArrayPool pool, IndexWriter writer, string field)
 {
     this.OuterInstance = outerInstance;
     this.NumDocs       = numDocs;
     this.Pool          = pool;
     this.Writer        = writer;
     this.Field         = field;
 }
Exemple #2
0
			private void  InitBlock(int numDocs, System.String field, Lucene.Net.Index.TestPayloads.ByteArrayPool pool, Lucene.Net.Index.IndexWriter writer, TestPayloads enclosingInstance)
			{
				this.numDocs = numDocs;
				this.field = field;
				this.pool = pool;
				this.writer = writer;
				this.enclosingInstance = enclosingInstance;
			}
Exemple #3
0
 public ThreadAnonymousInnerClassHelper(TestPayloads outerInstance, int numDocs, ByteArrayPool pool, IndexWriter writer, string field)
 {
     this.outerInstance = outerInstance;
     this.numDocs       = numDocs;
     this.pool          = pool;
     this.writer        = writer;
     this.field         = field;
 }
Exemple #4
0
 internal PoolingPayloadTokenStream(TestPayloads enclosingInstance, ByteArrayPool pool)
 {
     InitBlock(enclosingInstance);
     this.pool = pool;
     payload   = pool.Get();
     Enclosing_Instance.GenerateRandomData(payload);
     term       = pool.BytesToString(payload);
     first      = true;
     payloadAtt = AddAttribute <IPayloadAttribute>();
     termAtt    = AddAttribute <ITermAttribute>();
 }
Exemple #5
0
 internal PoolingPayloadTokenStream(TestPayloads outerInstance, ByteArrayPool pool)
 {
     this.outerInstance = outerInstance;
     this.pool          = pool;
     payload            = pool.Get();
     this.outerInstance.GenerateRandomData(payload);
     term       = Encoding.UTF8.GetString(payload);
     first      = true;
     payloadAtt = AddAttribute <IPayloadAttribute>();
     termAtt    = AddAttribute <ICharTermAttribute>();
 }
Exemple #6
0
 internal PoolingPayloadTokenStream(TestPayloads outerInstance, ByteArrayPool pool)
 {
     this.OuterInstance = outerInstance;
     this.Pool          = pool;
     Payload            = pool.Get();
     OuterInstance.GenerateRandomData(Payload);
     Term       = Encoding.UTF8.GetString((byte[])(Array)Payload);
     First      = true;
     PayloadAtt = AddAttribute <IPayloadAttribute>();
     TermAtt    = AddAttribute <ICharTermAttribute>();
 }
Exemple #7
0
 private void  InitBlock(TestPayloads enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
Exemple #8
0
 private void  InitBlock(int numDocs, System.String field, Lucene.Net.Index.TestPayloads.ByteArrayPool pool, Lucene.Net.Index.IndexWriter writer, TestPayloads enclosingInstance)
 {
     this.numDocs           = numDocs;
     this.field             = field;
     this.pool              = pool;
     this.writer            = writer;
     this.enclosingInstance = enclosingInstance;
 }
Exemple #9
0
 public AnonymousClassThread(int numDocs, System.String field, Lucene.Net.Index.TestPayloads.ByteArrayPool pool, Lucene.Net.Index.IndexWriter writer, TestPayloads enclosingInstance)
 {
     InitBlock(numDocs, field, pool, writer, enclosingInstance);
 }
Exemple #10
0
			internal PoolingPayloadTokenStream(TestPayloads enclosingInstance, ByteArrayPool pool)
			{
				InitBlock(enclosingInstance);
				this.pool = pool;
				payload = pool.Get();
				Enclosing_Instance.GenerateRandomData(payload);
				term = pool.BytesToString(payload);
				first = true;
				payloadAtt = (PayloadAttribute) AddAttribute(typeof(PayloadAttribute));
				termAtt = (TermAttribute) AddAttribute(typeof(TermAttribute));
			}
Exemple #11
0
			private void  InitBlock(TestPayloads enclosingInstance)
			{
				this.enclosingInstance = enclosingInstance;
			}
Exemple #12
0
			public AnonymousClassThread(int numDocs, System.String field, Lucene.Net.Index.TestPayloads.ByteArrayPool pool, Lucene.Net.Index.IndexWriter writer, TestPayloads enclosingInstance)
			{
				InitBlock(numDocs, field, pool, writer, enclosingInstance);
			}
Exemple #13
0
 internal PoolingPayloadTokenStream(TestPayloads outerInstance, ByteArrayPool pool)
 {
     this.OuterInstance = outerInstance;
     this.Pool = pool;
     Payload = pool.Get();
     OuterInstance.GenerateRandomData(Payload);
     Term = Encoding.UTF8.GetString((byte[])(Array)Payload);
     First = true;
     PayloadAtt = AddAttribute<IPayloadAttribute>();
     TermAtt = AddAttribute<ICharTermAttribute>();
 }
Exemple #14
0
 public ThreadAnonymousInnerClassHelper(TestPayloads outerInstance, int numDocs, Lucene.Net.Index.TestPayloads.ByteArrayPool pool, IndexWriter writer, string field)
 {
     this.OuterInstance = outerInstance;
     this.NumDocs = numDocs;
     this.Pool = pool;
     this.Writer = writer;
     this.Field = field;
 }