Searched defs:base (Results 1 - 25 of 37) sorted by relevance

12

/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/util/
H A DFileUtils.java29 * 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 DTestSystemIdResolver.java31 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 DReaderUtil.java77 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 DDocSetCollector.java36 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 DScoredDocIdCollector.java219 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 DSegmentMergeInfo.java26 int base; field in class:SegmentMergeInfo
37 base = b;
H A DUpgradeIndexMergePolicy.java30 * 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 DCompoundFileReader.java239 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 DIndexFileNames.java174 * Computes the full file name from base, extension and generation. If the
176 * &lt;base&gt;.&lt;ext&gt;. If it's > 0, the file name is
177 * &lt;base&gt;_&lt;gen&gt;.&lt;ext&gt;.<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 DIndicNormalizer.java36 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 DAbstractSubTypeFieldType.java30 * 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 DSweetSpotSimilarity.java76 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 &lt;= min) &#63; 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 DTestCartesian.java90 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 DTopScoreDocCollector.java116 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 DCachingCollector.java59 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 DTimeLimitingCollector.java158 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 DTestCustomSearcherSort.java256 private Calendar base = new GregorianCalendar(1980, 1, 1); field in class:TestCustomSearcherSort.RandomGen
260 return DateTools.timeToString(base.getTimeInMillis() + random.nextInt()
H A DTestTopDocsCollector.java33 private int base = 0; field in class:TestTopDocsCollector.MyTopsDocCollector
59 pq.insertWithOverflow(new ScoreDoc(doc + base, scores[idx++]));
65 base = docBase;
H A DTestScorerPerf.java115 public void setNextReader(IndexReader reader, int base) { argument
116 docBase = base;
H A DTestTimeLimitingCollector.java342 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 DTestCustomSearcherSort.java256 private Calendar base = new GregorianCalendar(1980, 1, 1); field in class:TestCustomSearcherSort.RandomGen
260 return DateTools.timeToString(base.getTimeInMillis() + random.nextInt()
H A DTestTopDocsCollector.java33 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 DTestFunctionQuery.java50 String base = "external_foo_extf"; field in class:TestFunctionQuery
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestStressIndexing2.java170 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 DCheckHits.java131 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;

Completed in 283 milliseconds

12