| 1 |
|
package org.apache.lucene.index; |
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
import org.apache.lucene.document.Document; |
| 20 |
|
import org.apache.lucene.document.FieldSelector; |
| 21 |
|
|
| 22 |
|
|
| 23 |
|
import java.io.IOException; |
| 24 |
|
import java.util.Collection; |
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
|
|
|
| 10.2% |
Uncovered Elements: 44 (49) |
Complexity: 24 |
Complexity Density: 0.96 |
|
| 35 |
|
public class FilterIndexReader extends IndexReader { |
| 36 |
|
|
| 37 |
|
@link |
|
|
|
| 33.3% |
Uncovered Elements: 12 (18) |
Complexity: 9 |
Complexity Density: 1 |
|
| 38 |
|
public static class FilterTermDocs implements TermDocs { |
| 39 |
|
protected TermDocs in; |
| 40 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 41 |
1
|
public FilterTermDocs(TermDocs in) { this.in = in; }... |
| 42 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 43 |
1
|
public void seek(Term term) throws IOException { in.seek(term); }... |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 44 |
0
|
public void seek(TermEnum termEnum) throws IOException { in.seek(termEnum); }... |
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 45 |
1
|
public int doc() { return in.doc(); }... |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 46 |
0
|
public int freq() { return in.freq(); }... |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 47 |
0
|
public boolean next() throws IOException { return in.next(); }... |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 48 |
0
|
public int read(int[] docs, int[] freqs) throws IOException {... |
| 49 |
0
|
return in.read(docs, freqs); |
| 50 |
|
} |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 51 |
0
|
public boolean skipTo(int i) throws IOException { return in.skipTo(i); }... |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 52 |
0
|
public void close() throws IOException { in.close(); }... |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
@link |
|
|
|
| 50% |
Uncovered Elements: 2 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
| 56 |
|
public static class FilterTermPositions |
| 57 |
|
extends FilterTermDocs implements TermPositions { |
| 58 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 59 |
1
|
public FilterTermPositions(TermPositions in) { super(in); }... |
| 60 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 61 |
0
|
public int nextPosition() throws IOException {... |
| 62 |
|