Searched refs:gen (Results 1 - 19 of 19) sorted by relevance

/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/
H A DTestNRTManager.java78 final long gen = genWriter.updateDocuments(id, docs);
85 nrtDeletes.waitForGeneration(gen);
97 lastGens.set(gen);
102 final long gen = genWriter.addDocuments(docs);
108 nrtNoDeletes.waitForGeneration(gen);
119 lastGens.set(gen);
124 final long gen = genWriter.addDocument(doc);
131 nrtNoDeletes.waitForGeneration(gen);
142 lastGens.set(gen);
147 final long gen
247 addMaxGen(long gen) argument
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DIndexCommit.java131 long gen = getGeneration();
133 if (gen < comgen) {
135 } else if (gen > comgen) {
H A DFrozenBufferedDeletes.java48 final long gen; field in class:FrozenBufferedDeletes
50 public FrozenBufferedDeletes(BufferedDeletes deletes, long gen) { argument
71 this.gen = gen;
H A DBufferedDeletesStream.java87 assert packet.gen < nextGen;
92 message("push deletes " + packet + " delGen=" + packet.gen + " packetCount=" + deletes.size());
120 // Current gen, for the merged segment:
121 public final long gen; field in class:BufferedDeletesStream.ApplyDeletesResult
126 ApplyDeletesResult(boolean anyDeletes, long gen, List<SegmentInfo> allDeleted) { argument
128 this.gen = gen;
188 if (packet != null && segGen < packet.gen) {
195 } else if (packet != null && segGen == packet.gen) {
303 if (deletes.get(delIDX).gen >
[all...]
H A DBufferedDeletes.java75 long gen; field in class:BufferedDeletes
80 return "gen=" + gen + " numTerms=" + numTermDeletes + ", terms=" + terms
84 String s = "gen=" + gen;
H A DIndexFileNames.java39 public static final String SEGMENTS_GEN = "segments.gen";
93 /** Extension of gen file */
94 public static final String GEN_EXTENSION = "gen";
123 * (same as above, minus "del", "gen", "cfs"). */
177 * &lt;base&gt;_&lt;gen&gt;.&lt;ext&gt;.<br>
183 * @param gen generation
185 public static final String fileNameFromGeneration(String base, String ext, long gen) { argument
186 if (gen == SegmentInfo.NO) {
188 } else if (gen == SegmentInfo.WITHOUT_GEN) {
192 // to the gen lengt
[all...]
H A DSegmentInfos.java161 long gen = generationFromSegmentsFileName(file);
162 if (gen > max) {
163 max = gen;
500 * gen when loading the segments file. This only runs if
502 * segments.gen file) methods fail to find the segments
566 long gen = 0;
612 // Also open segments.gen and read its
623 message("segments.gen open: FileNotFoundException " + e);
627 message("segments.gen open: IOException " + e);
659 // Pick the larger of the two gen'
[all...]
H A DSegmentInfo.java494 long gen;
496 gen = CHECK_DIR;
498 gen = normGen[number];
503 return IndexFileNames.fileNameFromGeneration(name, "s" + number, gen);
698 long gen = normGen[i];
699 if (gen >= YES) {
701 filesSet.add(IndexFileNames.fileNameFromGeneration(name, IndexFileNames.SEPARATE_NORMS_EXTENSION + i, gen));
702 } else if (NO == gen) {
711 } else if (CHECK_DIR == gen) {
H A DDocumentsWriter.java492 message("flush: delGen=" + packet.gen);
495 newSegment.setBufferedDeletesGen(packet.gen);
H A DIndexWriter.java4070 merge.info.setBufferedDeletesGen(result.gen);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DExactPhraseScorer.java36 private int gen; field in class:ExactPhraseScorer
261 gen++;
263 if (gen == 0) {
266 gen++;
277 assert gens[posIndex] != gen;
278 gens[posIndex] = gen;
299 if (posIndex >= 0 && gens[posIndex] == gen && counts[posIndex] == t) {
334 if (posIndex >= 0 && gens[posIndex] == gen && counts[posIndex] == endMinus1) {
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestDeletionPolicy.java251 long gen = SegmentInfos.getLastCommitGeneration(dir);
255 gen);
260 while(gen > 0) {
266 gen);
281 dir.deleteFile(IndexFileNames.fileNameFromGeneration(IndexFileNames.SEGMENTS, "", gen));
282 gen--;
362 long gen = SegmentInfos.getLastCommitGeneration(dir);
363 while(gen > 0) {
366 dir.deleteFile(IndexFileNames.fileNameFromGeneration(IndexFileNames.SEGMENTS, "", gen));
367 gen
[all...]
H A DTestIndexWriterExceptions.java979 long gen = SegmentInfos.getLastCommitGeneration(dir);
980 assertTrue("segment generation should be > 0 but got " + gen, gen > 0);
984 IndexOutput out = dir.createOutput(IndexFileNames.fileNameFromGeneration(IndexFileNames.SEGMENTS, "", 1+gen));
1021 long gen = SegmentInfos.getLastCommitGeneration(dir);
1022 assertTrue("segment generation should be > 0 but got " + gen, gen > 0);
1027 1+gen);
1073 long gen = SegmentInfos.getLastCommitGeneration(dir);
1074 assertTrue("segment generation should be > 0 but got " + gen, ge
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/util/
H A DTestPriorityQueue.java40 public static void testPQ(int count, Random gen) { argument
46 int next = gen.nextInt();
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/util/
H A DTestPriorityQueue.java40 public static void testPQ(int count, Random gen) { argument
46 int next = gen.nextInt();
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/surround/parser/
H A DQueryParser.java565 if (c.gen < jj_gen) c.first = null;
706 if (p.gen > jj_gen) {
721 while (p.gen > jj_gen) {
725 p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
729 int gen; field in class:QueryParser.JJCalls
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/demohtml/
H A DHTMLParser.java569 if (c.gen < jj_gen) c.first = null;
710 if (p.gen > jj_gen) {
726 while (p.gen > jj_gen) {
730 p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
734 int gen; field in class:HTMLParser.JJCalls
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/
H A DStandardSyntaxParser.java722 if (c.gen < jj_gen) c.first = null;
863 if (p.gen > jj_gen) {
878 while (p.gen > jj_gen) {
882 p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
886 int gen; field in class:StandardSyntaxParser.JJCalls
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/queryParser/
H A DQueryParser.java1715 if (c.gen < jj_gen) c.first = null;
1859 if (p.gen > jj_gen) {
1874 while (p.gen > jj_gen) {
1878 p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
1882 int gen; field in class:QueryParser.JJCalls

Completed in 115 milliseconds