Base class aiming at testing StoredFieldsFormat. To test a new format, all you need is to register a new Codec which uses it and extend this class and override #getCodec(). @lucene.experimental
Наследование: BaseIndexFileFormatTestCase
Пример #1
0
            public ThreadAnonymousInnerClassHelper(BaseStoredFieldsFormatTestCase outerInstance, int numDocs, DirectoryReader rd, IndexSearcher searcher, int readsPerThread, AtomicReference <Exception> ex, int i)
            {
                this.OuterInstance  = outerInstance;
                this.NumDocs        = numDocs;
                this.Rd             = rd;
                this.Searcher       = searcher;
                this.ReadsPerThread = readsPerThread;
                this.Ex             = ex;
                this.i = i;

                queries = new int[ReadsPerThread];
                for (int j = 0; j < queries.Length; ++j)
                {
                    queries[j] = Random().NextIntBetween(0, NumDocs);
                }
            }
            public ThreadAnonymousInnerClassHelper(BaseStoredFieldsFormatTestCase outerInstance, int numDocs, DirectoryReader rd, IndexSearcher searcher, int readsPerThread, AtomicReference<Exception> ex, int i)
            {
                this.OuterInstance = outerInstance;
                this.NumDocs = numDocs;
                this.Rd = rd;
                this.Searcher = searcher;
                this.ReadsPerThread = readsPerThread;
                this.Ex = ex;
                this.i = i;

                queries = new int[ReadsPerThread];
                for (int j = 0; j < queries.Length; ++j)
                {
                    queries[j] = Random().NextIntBetween(0, NumDocs);
                }
            }