/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/util/ |
H A D | FileUtils.java | 29 * Resolves a path relative a base directory. 32 * This method does what "new File(base,path)" <b>Should</b> do, it wasn't 35 * of "base") 38 public static File resolvePath(File base, String path) { argument 40 return r.isAbsolute() ? r : new File(base, path);
|
/lucene-3.6.0/solr/solrj/src/test/org/apache/solr/common/util/ |
H A D | TestSystemIdResolver.java | 31 private void assertEntityResolving(SystemIdResolver resolver, String expectedSystemId, String base, String systemId) throws Exception { argument 32 final InputSource is = resolver.resolveEntity(null, null, base, systemId); 51 assertEquals("solrres:/test.xml", resolver.resolveRelativeURI("solrres:/base.xml", "test.xml").toASCIIString()); 53 resolver.resolveRelativeURI("solrres://@/usr/local/etc/base.xml", "../../../etc/test.xml").toASCIIString()); 55 assertEquals("solrres://@/a/test.xml", resolver.resolveRelativeURI("solrres:/base.xml", "/a/test.xml").toASCIIString()); 57 assertEquals(fileUri, resolver.resolveRelativeURI("solrres:/base.xml", fileUri).toASCIIString()); 58 assertEquals("solrres:/base.xml", resolver.resolveRelativeURI(fileUri, "solrres:/base.xml").toASCIIString());
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/ |
H A D | ReaderUtil.java | 77 private int run(int base, IndexReader reader) throws IOException { argument 81 add(base, reader); 82 base += reader.maxDoc(); 86 base = run(base, subReaders[i]); 90 return base; 93 protected abstract void add(int base, IndexReader r) throws IOException; argument
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/ |
H A D | DocSetCollector.java | 36 int base; field in class:DocSetCollector 51 doc += base; 88 this.base = docBase;
|
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/ |
H A D | ScoredDocIdCollector.java | 219 public void setNextReader(IndexReader reader, int base) throws IOException { argument 220 this.docBase = base;
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/ |
H A D | SegmentMergeInfo.java | 26 int base; field in class:SegmentMergeInfo 37 base = b;
|
H A D | UpgradeIndexMergePolicy.java | 30 * All other methods delegate to the base {@code MergePolicy} given to the constructor. 53 protected final MergePolicy base; field in class:UpgradeIndexMergePolicy 57 public UpgradeIndexMergePolicy(MergePolicy base) { argument 58 this.base = base; 73 base.setIndexWriter(writer); 78 return base.findMerges(segmentInfos); 97 MergeSpecification spec = base.findForcedMerges(segmentInfos, maxSegmentCount, oldSegments); 110 message("findForcedMerges: " + base.getClass().getSimpleName() + 130 return base [all...] |
H A D | CompoundFileReader.java | 239 IndexInput base; field in class:CompoundFileReader.CSIndexInput 243 CSIndexInput(final IndexInput base, final long fileOffset, final long length) { argument 244 this(base, fileOffset, length, BufferedIndexInput.BUFFER_SIZE); 247 CSIndexInput(final IndexInput base, final long fileOffset, final long length, int readBufferSize) { argument 249 this.base = (IndexInput)base.clone(); 257 clone.base = (IndexInput)base.clone(); 273 throw new EOFException("read past EOF: " + base); 274 base [all...] |
H A D | IndexFileNames.java | 174 * Computes the full file name from base, extension and generation. If the 176 * <base>.<ext>. If it's > 0, the file name is 177 * <base>_<gen>.<ext>.<br> 181 * @param base main part of the file name 185 public static final String fileNameFromGeneration(String base, String ext, long gen) { argument 189 return segmentFileName(base, ext); 194 StringBuilder res = new StringBuilder(base.length() + 6 + ext.length()) 195 .append(base).append('_').append(Long.toString(gen, Character.MAX_RADIX));
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/in/ |
H A D | IndicNormalizer.java | 36 final int base; field in class:IndicNormalizer.ScriptData 39 ScriptData(int flag, int base) { argument 41 this.base = base; 249 final int ch = text[i] - sd.base; 265 final int ch1 = text[pos + 1] - sd.base; 273 ch2 = text[pos + 2] - sd.base; 284 text[pos] = (char) (sd.base + decompositions[i][3]);
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/schema/ |
H A D | AbstractSubTypeFieldType.java | 30 * An abstract base class for FieldTypes that delegate work to another {@link org.apache.solr.schema.FieldType}. 119 protected SchemaField subField(SchemaField base, int i) { argument 120 return schema.getField(base.getName() + suffixes[i]);
|
/lucene-3.6.0/lucene/contrib/misc/src/java/org/apache/lucene/misc/ |
H A D | SweetSpotSimilarity.java | 76 public void setBaselineTfFactors(float base, float min) { argument 78 tf_base = base; 86 * @param base the base value to be used in the exponential for the hyperbolic function (default: 1.3) 91 double base, float xoffset) { 94 tf_hyper_base = base; 213 * (x <= min) ? base : sqrt(x+(base**2)-min) 217 * This degrates to <code>sqrt(x)</code> when min and base are both 0 236 * tf(x)=min+(max-min)/2*(((base**( 90 setHyperbolicTfFactors(float min, float max, double base, float xoffset) argument [all...] |
/lucene-3.6.0/lucene/contrib/spatial/src/test/org/apache/lucene/spatial/tier/ |
H A D | TestCartesian.java | 90 private void setUpPlotter(int base, int top) { argument 92 for (; base <= top; base ++){ 93 ctps.add(new CartesianTierPlotter(base,project,
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/ |
H A D | TopScoreDocCollector.java | 116 public void setNextReader(IndexReader reader, int base) { argument 117 super.setNextReader(reader, base); 211 public void setNextReader(IndexReader reader, int base) { argument 212 super.setNextReader(reader, base); 303 public void setNextReader(IndexReader reader, int base) { argument 304 docBase = base;
|
H A D | CachingCollector.java | 59 public final int base; field in class:CachingCollector.SegStart 62 public SegStart(IndexReader reader, int base, int end) { argument 64 this.base = base; 136 base += upto; 144 if (base + nextLength > maxDocsToCache) { 146 nextLength = maxDocsToCache - base; 184 other.setNextReader(seg.reader, seg.base); 210 return "CachingCollector (" + (base+upto) + " docs & scores cached)"; 240 base 324 protected int base; field in class:CachingCollector [all...] |
H A D | TimeLimitingCollector.java | 158 public void setNextReader(IndexReader reader, int base) throws IOException { argument 159 collector.setNextReader(reader, base); 160 this.docBase = base;
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/ |
H A D | TestCustomSearcherSort.java | 256 private Calendar base = new GregorianCalendar(1980, 1, 1); field in class:TestCustomSearcherSort.RandomGen 260 return DateTools.timeToString(base.getTimeInMillis() + random.nextInt()
|
H A D | TestTopDocsCollector.java | 33 private int base = 0; field in class:TestTopDocsCollector.MyTopsDocCollector 59 pq.insertWithOverflow(new ScoreDoc(doc + base, scores[idx++])); 65 base = docBase;
|
H A D | TestScorerPerf.java | 115 public void setNextReader(IndexReader reader, int base) { argument 116 docBase = base;
|
H A D | TestTimeLimitingCollector.java | 342 assert docId >= 0: " base=" + docBase + " doc=" + doc; 348 public void setNextReader(IndexReader reader, int base) { argument 349 docBase = base;
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/ |
H A D | TestCustomSearcherSort.java | 256 private Calendar base = new GregorianCalendar(1980, 1, 1); field in class:TestCustomSearcherSort.RandomGen 260 return DateTools.timeToString(base.getTimeInMillis() + random.nextInt()
|
H A D | TestTopDocsCollector.java | 33 private int base = 0; field in class:TestTopDocsCollector.MyTopsDocCollector 59 pq.insertWithOverflow(new ScoreDoc(doc + base, scores[idx++])); 65 base = docBase;
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/search/function/ |
H A D | TestFunctionQuery.java | 50 String base = "external_foo_extf"; field in class:TestFunctionQuery
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/ |
H A D | TestStressIndexing2.java | 170 th.base = 1000000*i; 219 th.base = 1000000*i; 527 int base; field in class:TestStressIndexing2.IndexingThread 605 return Integer.toString(base + nextInt(range)); 690 r = new Random(base+range+seed);
|
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/search/ |
H A D | CheckHits.java | 131 private int base = 0; field in class:CheckHits.SetCollector 136 bag.add(Integer.valueOf(doc + base)); 140 base = docBase; 472 private int base = 0; field in class:CheckHits.ExplanationAsserter 493 doc = doc + base; 509 base = docBase;
|