/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/de/ |
H A D | GermanStemmer.java | 87 private void strip( StringBuilder buffer ) 90 while ( doMore && buffer.length() > 3 ) { 91 if ( ( buffer.length() + substCount > 5 ) && 92 buffer.substring( buffer.length() - 2, buffer.length() ).equals( "nd" ) ) 94 buffer.delete( buffer.length() - 2, buffer.length() ); 96 else if ( ( buffer [all...] |
H A D | GermanNormalizationFilter.java | 59 char buffer[] = termAtt.buffer(); 62 final char c = buffer[i]; 73 length = StemmerUtil.delete(buffer, i--, length); 82 buffer[i] = 'a'; 86 buffer[i] = 'o'; 90 buffer[i] = 'u'; 94 buffer[i++] = 's'; 95 buffer = termAtt.resizeBuffer(1+length); 97 System.arraycopy(buffer, [all...] |
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/util/ |
H A D | UnsafeByteArrayOutputStream.java | 25 * {@link OutputStream}. Data is written in the given byte[] buffer, until its 26 * length is insufficient. Than the buffer size is doubled and the data is 29 * This class is Unsafe as it is using a buffer which potentially can be changed 30 * from the outside. Moreover, when {@link #toByteArray()} is called, the buffer 37 private byte[] buffer; field in class:UnsafeByteArrayOutputStream 42 * Constructs a new output stream, with a default allocated buffer which can 50 * Constructs a new output stream, with a given buffer. Writing will start 53 * @param buffer 56 public UnsafeByteArrayOutputStream(byte[] buffer) { argument 57 reInit(buffer, 69 UnsafeByteArrayOutputStream(byte[] buffer, int startPos) argument 88 reInit(byte[] buffer, int startPos) argument 103 reInit(byte[] buffer) argument [all...] |
H A D | UnsafeByteArrayInputStream.java | 25 * This class, much like {@link ByteArrayInputStream} uses a given buffer as a 27 * "waste" memory by creating a local copy of the given buffer, but rather uses 28 * the given buffer as is. Hence the name Unsafe. While using this class one 29 * should remember that the byte[] buffer memory is shared and might be changed 33 * initialize the stream with a new buffer. 39 private byte[] buffer; field in class:UnsafeByteArrayInputStream 59 * the source of the stream. Default range is [0 , buffer.length) 61 * @param buffer 64 public UnsafeByteArrayInputStream(byte[] buffer) { argument 65 reInit(buffer, 80 UnsafeByteArrayInputStream(byte[] buffer, int startPos, int endPos) argument 101 reInit(byte[] buffer) argument 117 reInit(byte[] buffer, int startPos, int endPos) argument [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 | PayloadEncoder.java | 30 Payload encode(char[] buffer); argument 34 * @param buffer 39 Payload encode(char [] buffer, int offset, int length); argument
|
/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));
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/ |
H A D | PrefixFilter.java | 37 StringBuilder buffer = new StringBuilder(); 38 buffer.append("PrefixFilter("); 39 buffer.append(getPrefix().toString()); 40 buffer.append(")"); 41 return buffer.toString();
|
H A D | Explanation.java | 90 StringBuilder buffer = new StringBuilder(); 92 buffer.append(" "); 94 buffer.append(getSummary()); 95 buffer.append("\n"); 100 buffer.append(details[i].toString(depth+1)); 104 return buffer.toString(); 110 StringBuilder buffer = new StringBuilder(); 111 buffer.append("<ul>\n"); 113 buffer.append("<li>"); 114 buffer [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/reverse/ |
H A D | ReverseStringFilter.java | 143 termAtt.buffer()[len - 1] = marker; 145 reverse( matchVersion, termAtt.buffer(), 0, len ); 180 * Reverses the given input buffer in-place 181 * @param buffer the input char array to reverse 186 public static void reverse( final char[] buffer ){ 187 reverse( buffer, 0, buffer.length ); 191 * Reverses the given input buffer in-place 193 * @param buffer the input char array to reverse 195 public static void reverse(Version matchVersion, final char[] buffer) { argument 209 reverse( final char[] buffer, final int len ) argument 221 reverse(Version matchVersion, final char[] buffer, final int len) argument 237 reverse(char[] buffer, int start, int len ) argument 245 reverseUnicode3( char[] buffer, int start, int len ) argument 264 reverse(Version matchVersion, final char[] buffer, final int start, final int len) argument [all...] |
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/surround/parser/ |
H A D | FastCharStream.java | 27 char[] buffer = null; field in class:FastCharStream 32 int tokenStart = 0; // offset in buffer 33 int bufferStart = 0; // position in file of buffer 45 return buffer[bufferPosition++]; 51 if (tokenStart == 0) { // token won't fit in buffer 52 if (buffer == null) { // first time: alloc buffer 53 buffer = new char[2048]; 54 } else if (bufferLength == buffer.length) { // grow buffer [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/queryParser/ |
H A D | FastCharStream.java | 30 char[] buffer = null; field in class:FastCharStream 35 int tokenStart = 0; // offset in buffer 36 int bufferStart = 0; // position in file of buffer 48 return buffer[bufferPosition++]; 54 if (tokenStart == 0) { // token won't fit in buffer 55 if (buffer == null) { // first time: alloc buffer 56 buffer = new char[2048]; 57 } else if (bufferLength == buffer.length) { // grow buffer [all...] |
/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/core/src/test/org/apache/lucene/util/ |
H A D | TestCharacterUtils.java | 127 CharacterBuffer buffer = CharacterUtils.newCharacterBuffer(6); 128 assertTrue(instance.fill(buffer,reader)); 129 assertEquals(0, buffer.getOffset()); 130 assertEquals(6, buffer.getLength()); 131 assertEquals("hellow", new String(buffer.getBuffer())); 132 assertTrue(instance.fill(buffer,reader)); 133 assertEquals(4, buffer.getLength()); 134 assertEquals(0, buffer.getOffset()); 136 assertEquals("orld", new String(buffer.getBuffer(), buffer [all...] |
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/util/ |
H A D | TestCharacterUtils.java | 127 CharacterBuffer buffer = CharacterUtils.newCharacterBuffer(6); 128 assertTrue(instance.fill(buffer,reader)); 129 assertEquals(0, buffer.getOffset()); 130 assertEquals(6, buffer.getLength()); 131 assertEquals("hellow", new String(buffer.getBuffer())); 132 assertTrue(instance.fill(buffer,reader)); 133 assertEquals(4, buffer.getLength()); 134 assertEquals(0, buffer.getOffset()); 136 assertEquals("orld", new String(buffer.getBuffer(), buffer [all...] |
/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/core/src/java/org/apache/lucene/store/ |
H A D | BufferedIndexInput.java | 26 /** Default buffer size */ 31 protected byte[] buffer; field in class:BufferedIndexInput 33 private long bufferStart = 0; // position in file of buffer 41 return buffer[bufferPosition++]; 68 /** Change the buffer size used by this IndexInput */ 70 assert buffer == null || bufferSize == buffer.length: "buffer=" + buffer + " bufferSize=" + bufferSize + " buffer [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/ |
H A D | RollingCharBuffer.java | 25 * internally it uses a circular buffer to only hold the 28 * up-front the max size of the buffer, but you do have to 35 private char[] buffer = new char[32]; field in class:RollingCharBuffer 37 // Next array index to write to in buffer: 43 // How many valid chars (wrapped) are in the buffer: 74 if (count == buffer.length) { 78 System.arraycopy(buffer, nextWrite, newBuffer, 0, buffer.length - nextWrite); 79 System.arraycopy(buffer, 0, newBuffer, buffer [all...] |
H A D | CharacterUtils.java | 120 * the internal char buffer size, must be <code>>= 2</code> 134 * filling the buffer from offset <code>0</code> up to the length of the size 139 * supplementary character awareness when filling the given buffer. For all 142 * character as the last element in the buffer unless it is the last available 144 * always be preserved across buffer boarders. 147 * @param buffer 148 * the buffer to fill. 156 public abstract boolean fill(CharacterBuffer buffer, Reader reader) throws IOException; argument 178 public boolean fill(final CharacterBuffer buffer, final Reader reader) throws IOException { argument 179 final char[] charBuffer = buffer 252 fill(final CharacterBuffer buffer, final Reader reader) argument 269 private final char[] buffer; field in class:CharacterUtils.CharacterBuffer 276 CharacterBuffer(char[] buffer, int offset, int length) argument [all...] |
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/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/contrib/analyzers/common/src/java/org/apache/lucene/analysis/hunspell/ |
H A D | HunspellStemFilter.java | 41 private List<Stem> buffer; field in class:HunspellStemFilter 76 if (buffer != null && !buffer.isEmpty()) { 77 Stem nextStem = buffer.remove(0); 93 buffer = dedup ? stemmer.uniqueStems(termAtt.buffer(), termAtt.length()) : stemmer.stem(termAtt.buffer(), termAtt.length()); 95 if (buffer.isEmpty()) { // we do not know this word, return it unchanged 99 Stem stem = buffer.remove(0); 103 if (!buffer [all...] |
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/ |
H A D | PayloadIterator.java | 29 * its own working space (buffer). 35 protected byte[] buffer; field in class:PayloadIterator 47 public PayloadIterator(IndexReader indexReader, Term term, byte[] buffer) argument 49 this.buffer = buffer; 101 if (this.payloadLength > this.buffer.length) { 103 this.buffer = new byte[this.payloadLength * 2 + 1]; 106 tp.getPayload(this.buffer, 0); 112 * Get the buffer with the content of the last read payload. 115 return buffer; [all...] |