/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/util/encoding/ |
H A D | SimpleIntDecoder.java | 32 * reusable buffer - allocated only once as this is not a thread-safe object 34 private byte[] buffer = new byte[4]; field in class:SimpleIntDecoder 42 int nRead = in.read(buffer, offset, 4 - offset); 53 int v = buffer[3] & 0xff; 54 v |= (buffer[2] << 8) & 0xff00; 55 v |= (buffer[1] << 16) & 0xff0000; 56 v |= (buffer[0] << 24) & 0xff000000;
|
/lucene-3.6.0/lucene/contrib/highlighter/src/java/org/apache/lucene/search/vectorhighlight/ |
H A D | BoundaryScanner.java | 27 * @param buffer scanned object 31 public int findStartOffset( StringBuilder buffer, int start ); argument 35 * @param buffer scanned object 39 public int findEndOffset( StringBuilder buffer, int start ); argument
|
H A D | BreakIteratorBoundaryScanner.java | 35 public int findStartOffset(StringBuilder buffer, int start) { argument 37 if( start > buffer.length() || start < 1 ) return start; 38 bi.setText(buffer.substring(0, start)); 43 public int findEndOffset(StringBuilder buffer, int start) { argument 45 if( start > buffer.length() || start < 0 ) return start; 46 bi.setText(buffer.substring(start));
|
H A D | SimpleBoundaryScanner.java | 55 public int findStartOffset(StringBuilder buffer, int start) { argument 57 if( start > buffer.length() || start < 1 ) return start; 61 if( boundaryChars.contains( buffer.charAt( offset - 1 ) ) ) return offset; 72 public int findEndOffset(StringBuilder buffer, int start) { argument 74 if( start > buffer.length() || start < 0 ) return start; 76 //for( offset = start; offset <= buffer.length() && count > 0; count-- ){ 77 for( offset = start; offset < buffer.length() && count > 0; count-- ){ 79 if( boundaryChars.contains( buffer.charAt( offset ) ) ) return offset;
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/ |
H A D | ToStringUtils.java | 36 public static void byteArray(StringBuilder buffer, byte[] bytes) { argument 38 buffer.append("b[").append(i).append("]=").append(bytes[i]); 40 buffer.append(',');
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/hi/ |
H A D | HindiStemmer.java | 32 public int stem(char buffer[], int len) { argument 34 if ((len > 6) && (endsWith(buffer, len, "ाएंगी") 35 || endsWith(buffer, len, "ाएंगे") 36 || endsWith(buffer, len, "ाऊंगी") 37 || endsWith(buffer, len, "ाऊंगा") 38 || endsWith(buffer, len, "ाइयाँ") 39 || endsWith(buffer, len, "ाइयों") 40 || endsWith(buffer, len, "ाइयां") 45 if ((len > 5) && (endsWith(buffer, len, "ाएगी") 46 || endsWith(buffer, le [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/payloads/ |
H A D | AbstractEncoder.java | 28 public Payload encode(char[] buffer) { argument 29 return encode(buffer, 0, buffer.length);
|
H A D | FloatEncoder.java | 30 public Payload encode(char[] buffer, int offset, int length) { argument 32 float payload = Float.parseFloat(new String(buffer, offset, length));//TODO: improve this so that we don't have to new Strings
|
H A D | IntegerEncoder.java | 31 public Payload encode(char[] buffer, int offset, int length) { argument 33 int payload = ArrayUtil.parseInt(buffer, offset, length);//TODO: improve this so that we don't have to new Strings
|
H A D | PayloadEncoder.java | 30 Payload encode(char[] buffer); argument 34 * @param buffer 39 Payload encode(char [] buffer, int offset, int length); argument
|
H A D | IdentityEncoder.java | 48 public Payload encode(char[] buffer, int offset, int length) { argument 49 final ByteBuffer bb = charset.encode(CharBuffer.wrap(buffer, offset, length));
|
/lucene-3.6.0/lucene/contrib/icu/src/java/org/apache/lucene/analysis/icu/ |
H A D | ICUNormalizer2Filter.java | 58 private final StringBuilder buffer = new StringBuilder(); field in class:ICUNormalizer2Filter 82 buffer.setLength(0); 83 normalizer.normalize(termAtt, buffer); 84 termAtt.setEmpty().append(buffer);
|
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/fst/ |
H A D | InMemorySorter.java | 32 private final BytesRefList buffer = new BytesRefList(); field in class:InMemorySorter 43 buffer.append(utf8); 49 return buffer.iterator(comparator);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/tokenattributes/ |
H A D | TermAttribute.java | 39 /** Copies the contents of buffer, starting at offset for 41 * @param buffer the buffer to copy 42 * @param offset the index in the buffer of the first character to copy 45 public void setTermBuffer(char[] buffer, int offset, int length); argument 47 /** Copies the contents of buffer into the termBuffer array. 48 * @param buffer the buffer to copy 50 public void setTermBuffer(String buffer); argument 52 /** Copies the contents of buffer, startin 58 setTermBuffer(String buffer, int offset, int length) argument [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/ |
H A D | CharBlockPool.java | 28 int bufferUpto = -1; // Which buffer we are upto 29 public int charUpto = DocumentsWriter.CHAR_BLOCK_SIZE; // Where we are in head buffer 31 public char[] buffer; // Current head buffer field in class:CharBlockPool 53 buffer = buffers[1+bufferUpto] = docWriter.getCharBlock();
|
H A D | IntBlockPool.java | 24 int bufferUpto = -1; // Which buffer we are upto 25 public int intUpto = DocumentsWriter.INT_BLOCK_SIZE; // Where we are in head buffer 27 public int[] buffer; // Current head buffer field in class:IntBlockPool 39 // Recycle all but the first buffer 42 // Reuse first buffer 46 buffer = buffers[0]; 56 buffer = buffers[1+bufferUpto] = docWriter.getIntBlock();
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/ |
H A D | Test2BPostings.java | 84 private final char buffer[]; field in class:Test2BPostings.MyTokenStream 89 buffer = termAtt.buffer(); 95 buffer[0] = (char) index++;
|
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/index/ |
H A D | MockIndexInput.java | 28 private byte[] buffer; field in class:MockIndexInput 34 buffer = bytes; 43 // int bufferNumber = start / buffer.length; 44 int bufferOffset = start % buffer.length; 45 int bytesInBuffer = buffer.length - bufferOffset; 47 System.arraycopy(buffer, bufferOffset, dest, destOffset, bytesToCopy);
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/analysis/ |
H A D | ReversedWildcardFilter.java | 73 char [] buffer = termAtt.resizeBuffer(oldLen + 1); 74 buffer[oldLen] = markerChar; 75 reverse(buffer, 0, oldLen + 1); 78 termAtt.copyBuffer(buffer, 0, oldLen +1); 84 * Partially reverses the given input buffer in-place from the given offset 86 * @param buffer the input char array to reverse 87 * @param start the offset from where to reverse the buffer 88 * @param len the length in the buffer up to where the 89 * buffer should be reversed 91 public static void reverse(final char[] buffer, fina argument [all...] |
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/ |
H A D | Test2BPostings.java | 84 private final char buffer[]; field in class:Test2BPostings.MyTokenStream 89 buffer = termAtt.buffer(); 95 buffer[0] = (char) index++;
|
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/index/ |
H A D | MockIndexInput.java | 23 private byte[] buffer; field in class:MockIndexInput 29 buffer = bytes; 38 // int bufferNumber = start / buffer.length; 39 int bufferOffset = start % buffer.length; 40 int bytesInBuffer = buffer.length - bufferOffset; 42 System.arraycopy(buffer, bufferOffset, dest, destOffset, bytesToCopy);
|
/lucene-3.6.0/lucene/contrib/analyzers/stempel/src/java/org/apache/lucene/analysis/stempel/ |
H A D | StempelStemmer.java | 41 private StringBuilder buffer = new StringBuilder(); field in class:StempelStemmer 91 buffer.setLength(0); 92 buffer.append(word); 94 Diff.apply(buffer, cmd); 96 if (buffer.length() > 0) 97 return buffer;
|
/lucene-3.6.0/solr/solrj/src/test/org/apache/solr/common/util/ |
H A D | TestFastInputStream.java | 58 public static void readChars(InputStream in, char[] buffer, int start, int length) argument 64 buffer[i] = (char) b; 66 buffer[i] = (char) (((b & 0x1F) << 6) 69 buffer[i] = (char) (((b & 0x0F) << 12)
|
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/index/params/ |
H A D | FacetIndexingParams.java | 68 * Note: Make sure <code>buffer</code> is large enough. 71 public int drillDownTermText(CategoryPath path, char[] buffer); argument
|
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/ |
H A D | PayloadIntDecodingIterator.java | 29 * A payload deserializer comes with its own working space (buffer). One need to 70 byte[] buffer) throws IOException { 71 pi = new PayloadIterator(indexReader, term, buffer); 69 PayloadIntDecodingIterator(IndexReader indexReader, Term term, IntDecoder decoder, byte[] buffer) argument
|