Searched refs:sample (Results 1 - 5 of 5) sorted by relevance

/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/sampling/
H A DRandomSampler.java46 final int[] sample = new int[sampleSetSize];
51 // select sample docs with random skipStep, make sure to leave sufficient #docs for selection after last skip
52 while (i<sample.length && remaining>(sampleSetSize-maxStep-i)) {
59 sample[i++] = it.getDocID();
61 // Add leftover documents to the sample set
62 while (i<sample.length) {
64 sample[i++] = it.getDocID();
66 ScoredDocIDs sampleRes = ScoredDocIdsUtils.createScoredDocIDsSubset(docids, sample);
H A DRepeatableSampler.java68 * the <code>TRAVERSAL</code> algorithm. The sample values are not sorted.
69 * @param collection The values from which a sample is wanted.
70 * @param collectionSize The number of values (from the first) from which to draw the sample.
85 * @param collection The values from which a sample is wanted.
86 * @param collectionSize The number of values (from the first) from which to draw the sample.
89 * @param sorted Sorted.YES to sort the sample values in ascending order before returning;
106 int[] sample = new int[sampleSize];
109 sample1(collection, collectionSize, sample, times);
111 sample2(collection, collectionSize, sample, times);
116 Arrays.sort(sample);
148 sample1(ScoredDocIDs collection, int collectionSize, int[] sample, long[] times) argument
270 sample2(ScoredDocIDs collection, int collectionSize, int[] sample, long[] times) argument
[all...]
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/ru/
H A DTestRussianAnalyzer.java60 RussianLetterTokenizer sample =
65 CharTermAttribute sampleText = sample.getAttribute(CharTermAttribute.class);
72 boolean nextSampleToken = sample.incrementToken();
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestTermInfosReaderIndex.java91 sampleTerms = sample(reader,1000);
136 private static List<Term> sample(IndexReader reader, int size) throws IOException { method in class:TestTermInfosReaderIndex
137 List<Term> sample = new ArrayList<Term>();
141 if (sample.size() >= size) {
143 sample.set(pos, terms.term());
145 sample.add(terms.term());
149 Collections.shuffle(sample);
150 return sample;
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestTermInfosReaderIndex.java78 sampleTerms = sample(reader,1000);
120 private List<Term> sample(IndexReader reader, int size) throws IOException { method in class:TestTermInfosReaderIndex
121 List<Term> sample = new ArrayList<Term>();
125 if (sample.size() >= size) {
127 sample.set(pos, terms.term());
129 sample.add(terms.term());
133 Collections.shuffle(sample);
134 return sample;

Completed in 20 milliseconds