Searched defs:rand (Results 1 - 7 of 7) sorted by relevance
/lucene-3.6.0/solr/core/src/test/org/apache/solr/util/ |
H A D | BitSetPerf.java | 34 static Random rand = new Random(0); field in class:BitSetPerf 40 idx = rand.nextInt(maxSize);
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/search/ |
H A D | DocSetPerf.java | 39 static Random rand = new Random(); field in class:DocSetPerf 53 int id=rand.nextInt(maxSize); 89 generate(randSize ? rand.nextInt(bitSetSize) : bitSetSize, numBitsSet); 99 generate(randSize ? rand.nextInt(bitSetSize) : bitSetSize, numBitsSet); 103 generate(randSize ? rand.nextInt(bitSetSize) : bitSetSize, numBitsSet); 140 int idx1 = rand.nextInt(numSets); 141 int idx2 = rand.nextInt(numSets);
|
H A D | TestDocSet.java | 39 Random rand = random; field in class:TestDocSet 46 bs.fastSet(rand.nextInt(sz)); 92 switch(rand.nextInt(10)) { 136 int sz = rand.nextInt(maxSize+1); 137 int sz2 = rand.nextInt(maxSize); 138 OpenBitSet bs1 = getRandomSet(sz, rand.nextInt(sz+1)); 139 OpenBitSet bs2 = getRandomSet(sz, rand.nextInt(sz2+1)); 187 int idx = rand.nextInt(maxDoc); 212 sz = rand.nextInt(maxSetSize-minSetSize+1)+minSetSize; 214 // sz = (maxSetSize+1)/(rand [all...] |
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/ |
H A D | TestThreadSafe.java | 40 final Random rand; field in class:TestThreadSafe.Thr 44 public Thr(int iter, Random rand, AtomicBoolean failed) { argument 46 this.rand = rand; 59 switch(rand.nextInt(1)) { 73 Document doc = ir.document(rand.nextInt(ir.maxDoc()), 76 switch(rand.nextInt(2)) {
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/ |
H A D | TestThreadSafe.java | 40 final Random rand; field in class:TestThreadSafe.Thr 44 public Thr(int iter, Random rand, AtomicBoolean failed) { argument 46 this.rand = rand; 59 switch(rand.nextInt(1)) { 73 Document doc = ir.document(rand.nextInt(ir.maxDoc()), 76 switch(rand.nextInt(2)) {
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/store/ |
H A D | TestBufferedIndexInput.java | 296 Random rand; field in class:TestBufferedIndexInput.MockFSDirectory 300 public MockFSDirectory(File path, Random rand) throws IOException { argument 301 this.rand = rand; 315 int bufferSize = 1024+Math.abs(rand.nextInt() % 32768); 325 bufferSize = 1+Math.abs(rand.nextInt() % 10);
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/store/ |
H A D | TestBufferedIndexInput.java | 296 Random rand; field in class:TestBufferedIndexInput.MockFSDirectory 300 public MockFSDirectory(File path, Random rand) throws IOException { argument 301 this.rand = rand; 315 int bufferSize = 1024+Math.abs(rand.nextInt() % 32768); 325 bufferSize = 1+Math.abs(rand.nextInt() % 10);
|
Completed in 61 milliseconds