Searched defs:shift (Results 1 - 6 of 6) sorted by relevance

/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/util/
H A DTestBitUtil.java66 private long testArg(int shift) { argument
67 return (1L << shift) + (1L << (shift>>1));
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/util/
H A DTestBitUtil.java66 private long testArg(int shift) { argument
67 return (1L << shift) + (1L << (shift>>1));
/lucene-3.6.0/solr/core/src/java/org/apache/solr/util/
H A DBitSetIterator.java43 for shift in range(8,0,-1):
45 arr = (arr << 4) | shift
77 private void shift() { method in class:BitSetIterator
84 /***** alternate shift implementations
85 // 32 bit shifts, but a long shift needed at the end
102 shift();
120 // stick with the binary search in shift?
121 shift();
150 shift();
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/
H A DNumericTokenStream.java150 shift = 0;
163 shift = 0;
176 shift = 0;
189 shift = 0;
197 shift = 0;
204 if (shift >= valSize)
212 termAtt.setLength(NumericUtils.longToPrefixCoded(value, shift, buffer));
217 termAtt.setLength(NumericUtils.intToPrefixCoded((int) value, shift, buffer));
225 typeAtt.setType((shift == 0) ? TOKEN_TYPE_FULL_PREC : TOKEN_TYPE_LOWER_PREC);
226 posIncrAtt.setPositionIncrement((shift
248 private int shift = 0, valSize = 0; // valSize==0 means not initialized field in class:NumericTokenStream
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/
H A DOpenBitSetIterator.java66 for shift in range(8,0,-1):
68 arr = (arr << 4) | shift
100 private void shift() { method in class:OpenBitSetIterator
107 /***** alternate shift implementations
108 // 32 bit shifts, but a long shift needed at the end
125 shift();
146 // stick with the binary search in shift?
147 shift();
179 shift();
H A DNumericUtils.java38 * (in the first char) by the <code>shift</code> value (number of bits removed) used
73 * Expert: Longs are stored at lower precision by shifting off lower bits. The shift count is
74 * stored as <code>SHIFT_START_LONG+shift</code> in the first character
86 * Expert: Integers are stored at lower precision by shifting off lower bits. The shift count is
87 * stored as <code>SHIFT_START_INT+shift</code> in the first character
99 * Expert: Returns prefix coded bits after reducing the precision by <code>shift</code> bits.
102 * @param shift how many bits to strip from the right
107 public static int longToPrefixCoded(final long val, final int shift, final char[] buffer) { argument
108 if (shift>63 || shift<
130 longToPrefixCoded(final long val, final int shift) argument
155 intToPrefixCoded(final int val, final int shift, final char[] buffer) argument
178 intToPrefixCoded(final int val, final int shift) argument
441 addRange(final long min, final long max, final int shift) argument
467 addRange(final int min, final int max, final int shift) argument
[all...]

Completed in 261 milliseconds