Searched refs:delta (Results 1 - 22 of 22) sorted by relevance

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/
H A DCounter.java31 * Adds the given delta to the counters current value
33 * @param delta
34 * the delta to add
37 public abstract long addAndGet(long delta); argument
69 public long addAndGet(long delta) { argument
70 return count += delta;
83 public long addAndGet(long delta) { argument
84 return count.addAndGet(delta);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DDefaultSkipListReader.java97 int delta;
100 // if the doc delta is odd then we have
104 delta = skipStream.readVInt();
105 if ((delta & 1) != 0) {
108 delta >>>= 1;
110 delta = skipStream.readVInt();
115 return delta;
H A DFormatPostingsPositionsWriter.java58 final int delta = position - lastPosition;
64 out.writeVInt((delta<<1)|1);
67 out.writeVInt(delta << 1);
71 out.writeVInt(delta);
H A DFormatPostingsDocsWriter.java81 final int delta = docID - lastDocID;
83 if (docID < 0 || (df > 0 && delta <= 0))
96 out.writeVInt(delta);
98 out.writeVInt((delta<<1) | 1);
100 out.writeVInt(delta<<1);
H A DDefaultSkipListWriter.java110 int delta = curDoc - lastSkipDoc[level];
114 skipBuffer.writeVInt(delta * 2);
118 skipBuffer.writeVInt(delta * 2 + 1);
H A DSegmentTermPositions.java76 int delta = proxStream.readVInt();
79 // the position delta is shifted one bit to the left.
82 if ((delta & 1) != 0) {
85 delta >>>= 1;
88 return delta;
H A DTermInfosReaderIndex.java156 int delta = compareTo(term, termBytesRef, mid, input, scratch);
157 if (delta < 0)
159 else if (delta > 0)
/lucene-3.6.0/lucene/contrib/spatial/src/java/org/apache/lucene/spatial/geometry/
H A DFixedLatLng.java115 int delta=0;
116 if (lng<0) delta=360*SCALE_FACTOR_INT;
117 if (lng>=0) delta=-360*SCALE_FACTOR_INT;
121 newLng+=delta;
H A DFloatLatLng.java95 double delta=0;
96 if (lng<0) delta=360;
97 if (lng>=0) delta=-360;
101 newLng+=delta;
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/analysis/
H A DMockCharFilter.java44 int delta = 0; field in class:MockCharFilter
55 addOffCorrectMap(currentOffset, delta-1);
56 delta--;
/lucene-3.6.0/lucene/contrib/analyzers/kuromoji/src/tools/java/org/apache/lucene/analysis/ja/util/
H A DConnectionCostsWriter.java66 int delta = (int)a[i] - last;
67 out.writeVInt((delta >> 31) ^ (delta << 1));
H A DBinaryDictionaryWriter.java258 final int val = targetMap[ofs], delta = val - prev;
259 assert delta >= 0;
261 out.writeVInt((delta << 1) | 0x01);
264 out.writeVInt((delta << 1));
266 prev += delta;
/lucene-3.6.0/solr/test-framework/src/java/org/apache/solr/
H A DJSONTestUtil.java29 * Default delta used in numeric equality comparisons for floats and doubles.
34 * comparison using default delta
43 * comparison using default delta
52 * comparison using default delta
63 * @param delta tollerance allowed in comparing float/double values
65 public static String match(String input, String pathAndExpected, double delta) throws Exception { argument
69 return match(path, input, expected, delta);
76 * @param delta tollerance allowed in comparing float/double values
78 public static String match(String path, String input, String expected, double delta) throws Exception { argument
81 return matchObj(path, inputObj, expectObj, delta);
90 matchObj(String path, Object input, Object expected, double delta) argument
111 public double delta; field in class:CollectionTester
115 CollectionTester(Object val, double delta) argument
[all...]
H A DSolrTestCaseJ4.java414 * Validates a query matches some JSON test expressions using the default double delta tollerance.
432 * @param delta tollerance allowed in comparing float/double values
435 public static void assertJQ(SolrQueryRequest req, double delta, String... tests) throws Exception { argument
463 String err = JSONTestUtil.match(response, testJSON, delta);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/request/
H A DUnInvertedField.java193 final byte[][] bytes = new byte[maxDoc][]; // list of term numbers for the doc (delta encoded vInts)
274 int delta = termNum - lastTerm[doc] + TNUM_OFFSET;
282 int ilen = vIntSize(delta);
298 pos = writeInt(delta, arr, pos);
316 int endPos = writeInt(delta, tempArr, ipos);
531 int delta = 0;
534 delta = (delta << 7) | (b & 0x7f);
537 if (delta == 0) break;
538 tnum += delta
[all...]
/lucene-3.6.0/lucene/contrib/misc/src/java/org/apache/lucene/store/
H A DDirectIOLinuxDirectory.java195 final int delta = (int) (pos - alignedPos);
196 buffer.position(delta);
197 bufferPos = delta;
296 final int delta = (int) (pos - alignedPos);
297 buffer.position(delta);
298 bufferPos = delta;
/lucene-3.6.0/solr/client/ruby/flare/public/javascripts/
H A Ddragdrop.js279 this.delta = this.currentDelta();
406 d[1]-this.delta[1], d[0]-this.delta[0]);
408 this.delta = d;
492 var delta = current - this.lastScrolled; variable
497 var d = delta / 1000;
502 this.options.scroll.scrollLeft += this.scrollSpeed[0] * delta / 1000;
503 this.options.scroll.scrollTop += this.scrollSpeed[1] * delta / 1000;
511 Draggables._lastScrollPointer[0] += this.scrollSpeed[0] * delta / 1000;
512 Draggables._lastScrollPointer[1] += this.scrollSpeed[1] * delta / 100
[all...]
H A Dprototype.js2435 var delta = [0, 0];
2437 // delta [0,0] will do fine with position: fixed elements,
2441 delta = Position.page(parent);
2446 delta[0] -= document.body.offsetLeft;
2447 delta[1] -= document.body.offsetTop;
2451 if(options.setLeft) target.style.left = (p[0] - delta[0] + options.offsetLeft) + 'px';
2452 if(options.setTop) target.style.top = (p[1] - delta[1] + options.offsetTop) + 'px';
H A Deffects.js554 this.delta = (offsets[1] > max ? max : offsets[1]) - this.scrollStart;
559 this.scrollStart + (position*this.delta));
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/
H A DStandardFacetsAccumulator.java281 int delta = nAccumulatedDocs + 1;
286 intArray[i] += delta;
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/fst/
H A DFST.java88 // If set, the target node is delta coded vs current
1004 // Address is delta-coded from current address:
1006 //System.out.println(" delta pos=" + pos + " delta=" + code + " target=" + arc.target);
1626 int delta = newNodeAddress[arc.target] + addressError - writer.posWrite - 2;
1627 if (delta < 0) {
1628 //System.out.println("neg: " + delta);
1630 delta = 0;
1633 if (delta < absPtr) {
1656 int delta
[all...]
/lucene-3.6.0/lucene/contrib/pruning/src/test/org/apache/lucene/index/
H A DTestPruningReader.java289 float delta = .0001f;
298 assertEquals("wrong score!", baseScores.get(term)[i].score, sd[i].score, delta);

Completed in 4861 milliseconds