Searched refs:off (Results 1 - 25 of 43) sorted by relevance

12

/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/fa/
H A DPersianCharFilter.java36 public int read(char[] cbuf, int off, int len) throws IOException { argument
37 final int charsRead = super.read(cbuf, off, len);
39 final int end = off + charsRead;
40 while (off < end) {
41 if (cbuf[off] == '\u200C')
42 cbuf[off] = ' ';
43 off++;
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/util/
H A DFastWriter.java72 public void write(char cbuf[], int off, int len) throws IOException { argument
75 System.arraycopy(cbuf, off, buf, pos, len);
79 System.arraycopy(cbuf, off, buf, pos, space);
82 System.arraycopy(cbuf, off+space, buf, 0, pos);
87 sink.write(cbuf, off, len);
92 public void write(String str, int off, int len) throws IOException { argument
95 str.getChars(off, off+len, buf, pos);
99 str.getChars(off, off
[all...]
H A DFastInputStream.java78 public int read(byte b[], int off, int len) throws IOException { argument
83 System.arraycopy(buf, pos, b, off, r);
91 int ret = in.read(b, off+r, len-r);
102 System.arraycopy(buf, pos, b, off+r, toRead);
120 public void readFully(byte b[], int off, int len) throws IOException { argument
122 int ret = read(b, off, len);
126 off += ret;
H A DFastOutputStream.java68 public void write(byte arr[], int off, int len) throws IOException { argument
71 System.arraycopy(arr, off, buf, pos, len);
75 System.arraycopy(arr, off, buf, pos, space);
79 System.arraycopy(arr, off+space, buf, 0, pos);
87 out.write(arr, off, len);
/lucene-3.6.0/lucene/contrib/analyzers/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/
H A DDictionary.java61 public String getReading(int wordId, char surface[], int off, int len); argument
68 public String getBaseForm(int wordId, char surface[], int off, int len); argument
75 public String getPronunciation(int wordId, char surface[], int off, int len); argument
H A DUserDictionary.java133 * @param off offset into text
137 public int[][] lookup(char[] chars, int off, int len) throws IOException { argument
145 int end = off + len;
146 for (int startOffset = off; startOffset < end; startOffset++) {
158 result.put(startOffset-off, segmentations[finalOutput]);
214 public String getReading(int wordId, char surface[], int off, int len) { argument
224 public String getBaseForm(int wordId, char surface[], int off, int len) { argument
229 public String getPronunciation(int wordId, char surface[], int off, int len) { argument
H A DUnknownDictionary.java57 public String getReading(int wordId, char surface[], int off, int len) { argument
H A DBinaryDictionary.java169 public String getBaseForm(int wordId, char surfaceForm[], int off, int len) { argument
176 System.arraycopy(surfaceForm, off, text, 0, prefix);
187 public String getReading(int wordId, char surface[], int off, int len) { argument
196 char ch = surface[off+i];
213 public String getPronunciation(int wordId, char surface[], int off, int len) { argument
219 return getReading(wordId, surface, off, len); // same as the reading
253 readingLength = readingData & 0xfe; // UTF-16: mask off kana bit
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/function/
H A DTopValueSource.java58 final int off = offset;
65 return vals.floatVal(doc + off);
70 return vals.intVal(doc + off);
75 return vals.longVal(doc + off);
80 return vals.doubleVal(doc + off);
85 return vals.strVal(doc + off);
90 return vals.strVal(doc + off);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/
H A DBaseCharFilter.java117 * @param off The output stream offset at which to apply the correction
121 protected void addOffCorrectMap(int off, int cumulativeDiff) { argument
130 assert (size == 0 || off >= offsets[size])
131 : "Offset #" + size + "(" + off + ") is less than the last recorded offset "
134 if (size == 0 || off != offsets[size - 1]) {
135 offsets[size] = off;
H A DCharFilter.java61 public int read(char[] cbuf, int off, int len) throws IOException { argument
62 return input.read(cbuf, off, len);
H A DCharReader.java53 public int read(char[] cbuf, int off, int len) throws IOException { argument
54 return input.read(cbuf, off, len);
H A DMappingCharFilter.java121 public int read(char[] cbuf, int off, int len) throws IOException { argument
129 for(int i = off; i < off + len; i++) {
H A DCharArrayMap.java121 /** true if the <code>len</code> chars of <code>text</code> starting at <code>off</code>
123 public boolean containsKey(char[] text, int off, int len) { argument
124 return keys[getSlot(text, off, len)] != null;
142 * starting at <code>off</code> */
143 public V get(char[] text, int off, int len) { argument
144 return values[getSlot(text, off, len)];
161 private int getSlot(char[] text, int off, int len) { argument
162 int code = getHashCode(text, off, len);
165 if (text2 != null && !equals(text, off, len, text2)) {
171 } while (text2 != null && !equals(text, off, le
258 equals(char[] text1, int off, int len, char[] text2) argument
660 containsKey(char[] text, int off, int len) argument
681 get(char[] text, int off, int len) argument
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DReusableStringReader.java39 public int read(char[] c, int off, int len) { argument
41 s.getChars(upto, upto+len, c, off);
50 s.getChars(upto, upto+left, c, off);
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/
H A DStringBuilderReader.java116 public int read(char cbuf[], int off, int len) throws IOException { argument
121 if (off < 0 || off > cbuf.length || len < 0 || off + len > cbuf.length) {
122 throw new IndexOutOfBoundsException("off=" + off + " len=" + len + " cbuf.length=" + cbuf.length);
134 sb.getChars(next, next + n, cbuf, off);
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/analysis/
H A DMockCharFilter.java76 public int read(char[] cbuf, int off, int len) throws IOException { argument
78 for (int i = off; i < off + len; i++) {
95 protected void addOffCorrectMap(int off, int cumulativeDiff) { argument
96 corrections.put(off, cumulativeDiff);
H A DMockReaderWrapper.java60 public int read(char[] cbuf, int off, int len) throws IOException { argument
76 read = in.read(cbuf, off, Math.min(realLen, left));
80 read = in.read(cbuf, off, realLen);
H A DMockTokenizer.java57 int off = 0; field in class:MockTokenizer
97 int startOffset = off;
107 endOffset = off;
140 off++;
144 off++;
169 lastOffset = off = 0;
193 int finalOffset = correctOffset(off);
/lucene-3.6.0/solr/solrj/src/java/org/apache/noggit/
H A DCharArr.java88 public int read(char cbuf[], int off, int len) { argument
99 public void unsafeWrite(char b[], int off, int len) { argument
100 System.arraycopy(b, off, buf, end, len);
127 public void write(char b[], int off, int len) { argument
129 unsafeWrite(b, off, len);
217 public void unsafeWrite(char b[], int off, int len) {} argument
223 public void write(char b[], int off, int len) {} argument
313 public void write(char b[], int off, int len) { argument
316 unsafeWrite(b, off, len);
318 unsafeWrite(b, off, spac
[all...]
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/analysis/
H A DMockTokenizer.java56 int off = 0; field in class:MockTokenizer
95 int startOffset = off;
105 endOffset = off;
127 off++;
131 off++;
156 off = 0;
180 int finalOffset = correctOffset(off);
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/util/
H A DOpenStringBuilder.java86 public void unsafeWrite(char b[], int off, int len) { argument
87 System.arraycopy(b, off, buf, this.len, len);
114 public void write(char b[], int off, int len) { argument
116 unsafeWrite(b, off, len);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/internal/csv/
H A DExtendedBufferedReader.java106 * at bufferposition off.
116 public int read(char[] buf, int off, int len) throws IOException { argument
135 int cOff = off;
139 return cOff - off;
150 return cOff - off;
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/util/
H A DUnsafeByteArrayOutputStream.java128 * @param off
134 public void write(byte[] b, int off, int len) throws IOException { argument
147 System.arraycopy(b, off, buffer, index, len);
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/
H A DReadTokensTask.java129 public int read(char[] c, int off, int len) { argument
131 s.getChars(upto, upto+len, c, off);
138 s.getChars(upto, upto+left, c, off);

Completed in 1934 milliseconds

12